.game_King {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 440px;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

[data-theme="dark"] .game_King {
    background: #0f121d !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4) !important;
}

.king_avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid #f59e0b;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8fafc;
    margin: 20px auto;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .king_avatar {
    background: #141a2e;
}

.king_avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.king_bets {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    z-index: 2;
}

.king_bets img {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .king_bets img {
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.king_bets .currentBet {
    width: 36px;
    height: 36px;
    border: 2px solid #f59e0b !important;
}

.king_progress {
    user-select: none;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    margin-bottom: 20px;
    z-index: 2;
}

.king_avatar.winner {
    animation: winnerRotate 0.8s ease-out forwards;
}

@keyframes winnerRotate {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.15) rotate(180deg); }
    100% { transform: scale(1.05) rotate(360deg); }
}

.king_avatar.newBet {
    animation: newBetPulse 0.25s ease-out;
}

@keyframes newBetPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* King Bets Table - Consistent Standard Layout */
.bets-section .game-stats {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    width: 100%;
}

[data-theme="dark"] .bets-section .game-stats {
    background: #0f121d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.bets-section .table-heading {
    display: table;
    width: 100%;
    table-layout: fixed;
    background: #f8fafc;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .bets-section .table-heading {
    background: #151a28;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bets-section .table-heading .th {
    padding: 12px 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    vertical-align: middle;
}

.bets-section .table-heading .th:nth-child(2) {
    text-align: center;
}

.bets-section .table-heading .th:last-child {
    text-align: right;
}

.bets-section .table-stats-wrap {
    overflow-y: auto;
}

.bets-section .table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 0;
}

.bets-section .table tbody tr {
    height: 54px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.15s ease;
}

[data-theme="dark"] .bets-section .table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.bets-section .table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .bets-section .table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.bets-section .table tbody tr td {
    padding: 10px 20px;
    font-size: 13px;
    color: #0f172a;
    vertical-align: middle;
}

[data-theme="dark"] .bets-section .table tbody tr td {
    color: #cbd5e1;
}

.bets-section .table tbody tr td:nth-child(2) {
    text-align: center;
}

.bets-section .table tbody tr td:last-child {
    text-align: right;
}

.bets-section .username .btn-link {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: none;
    padding: 0;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.bets-section .sanitize-user {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.bets-section .sanitize-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.bets-section .sanitize-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bets-section .sanitize-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 13px;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

[data-theme="dark"] .bets-section .sanitize-name {
    color: #f1f5f9;
}

.bets-section .bet-number {
    display: inline-flex;
    align-items: center;
}

.bets-section .bet-wrap {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    font-size: 13px;
    color: #0f172a;
}

[data-theme="dark"] .bets-section .bet-wrap {
    color: #f8fafc;
}

.bets-section .bet-wrap svg.icon-coin {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.bets-section .bet-wrap .win {
    color: #10b981 !important;
    font-weight: 800;
}

.bets-section .bet-wrap .lose {
    color: #64748b !important;
    font-weight: 600;
}