#ag2TournamentView .ag4-tournament-backend {
    margin: 16px 0;
    padding: 14px;
    border: 1px solid rgba(245, 198, 91, 0.2);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(28, 24, 40, 0.92),
            rgba(12, 11, 20, 0.94)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 12px 30px rgba(0, 0, 0, 0.22);
}

#ag2TournamentView .ag4-tournament-server-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin-bottom: 12px;
    padding: 6px 9px;
    border: 1px solid rgba(56, 217, 150, 0.22);
    border-radius: 999px;
    background: rgba(56, 217, 150, 0.08);
    color: #8ff0c6;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

#ag2TournamentView .ag4-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38d996;
    box-shadow: 0 0 10px rgba(56, 217, 150, 0.75);
}

#ag2TournamentView .ag4-tournament-status {
    margin-bottom: 12px;
    padding: 11px 12px;
    border-radius: 13px;
    font-size: 13px;
    line-height: 1.45;
}

#ag2TournamentView .ag4-idle {
    background: rgba(255, 255, 255, 0.045);
    color: rgba(247, 243, 255, 0.72);
}

#ag2TournamentView .ag4-joining,
#ag2TournamentView .ag4-waiting {
    border: 1px solid rgba(69, 168, 255, 0.18);
    background: rgba(69, 168, 255, 0.09);
    color: #9dd2ff;
}

#ag2TournamentView .ag4-success {
    border: 1px solid rgba(56, 217, 150, 0.22);
    background: rgba(56, 217, 150, 0.1);
    color: #8ff0c6;
}

#ag2TournamentView .ag4-completed {
    border: 1px solid rgba(245, 198, 91, 0.22);
    background: rgba(245, 198, 91, 0.09);
    color: #ffe09a;
}

#ag2TournamentView .ag4-error {
    border: 1px solid rgba(255, 95, 112, 0.22);
    background: rgba(255, 95, 112, 0.1);
    color: #ffadb6;
}

#ag2TournamentView .ag4-tournament-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

#ag2TournamentView .ag4-summary-item {
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.035);
}

#ag2TournamentView .ag4-summary-item span {
    display: block;
    margin-bottom: 4px;
    color: rgba(247, 243, 255, 0.52);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

#ag2TournamentView .ag4-summary-item strong {
    display: block;
    overflow: hidden;
    color: #f7f3ff;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#ag2TournamentView .ag4-tournament-progress {
    height: 7px;
    margin: 2px 0 14px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
}

#ag2TournamentView .ag4-tournament-progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(
            90deg,
            #8b5cf6,
            #45a8ff,
            #38d996
        );
    box-shadow: 0 0 15px rgba(69, 168, 255, 0.35);
    transition: width 0.4s ease;
}

#ag2TournamentView .ag4-tournament-players {
    display: grid;
    gap: 8px;
}

#ag2TournamentView .ag4-player {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.035);
}

#ag2TournamentView .ag4-player-you {
    border-color: rgba(139, 92, 246, 0.35);
    background: rgba(139, 92, 246, 0.11);
}

#ag2TournamentView .ag4-player-empty {
    opacity: 0.55;
    border-style: dashed;
}

#ag2TournamentView .ag4-player-place {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffe09a;
    font-size: 14px;
    font-weight: 800;
}

#ag2TournamentView .ag4-player-main {
    min-width: 0;
}

#ag2TournamentView .ag4-player-main strong {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    color: #f7f3ff;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#ag2TournamentView .ag4-player-main strong em {
    padding: 2px 5px;
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.18);
    color: #c7adff;
    font-size: 9px;
    font-style: normal;
}

#ag2TournamentView .ag4-player-main span {
    display: block;
    margin-top: 3px;
    color: rgba(247, 243, 255, 0.48);
    font-size: 10px;
}

#ag2TournamentView .ag4-player-score {
    color: #ffe09a;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

#ag2TournamentView .ag4-tournament-result {
    margin-top: 13px;
    padding: 16px 13px;
    border-radius: 16px;
    text-align: center;
}

#ag2TournamentView .ag4-result-win {
    border: 1px solid rgba(56, 217, 150, 0.28);
    background:
        linear-gradient(
            145deg,
            rgba(56, 217, 150, 0.15),
            rgba(245, 198, 91, 0.08)
        );
}

#ag2TournamentView .ag4-result-loss {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

#ag2TournamentView .ag4-result-icon {
    margin-bottom: 6px;
    font-size: 30px;
}

#ag2TournamentView .ag4-tournament-result strong {
    display: block;
    color: #f7f3ff;
    font-size: 15px;
}

#ag2TournamentView .ag4-tournament-result span {
    display: block;
    margin-top: 5px;
    color: rgba(247, 243, 255, 0.67);
    font-size: 12px;
}

#ag2TournamentView #ag2TournamentAction:disabled,
#ag2TournamentView .ag2-action:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

@media (max-width: 390px) {
    #ag2TournamentView .ag4-tournament-summary {
        grid-template-columns: 1fr 1fr;
    }

    #ag2TournamentView .ag4-player {
        grid-template-columns: 30px minmax(0, 1fr) auto;
        gap: 7px;
        padding: 9px;
    }
}
