.arch-link a:hover{
    text-decoration: none;
}
.tournament-badge-img-crop {
    display: inline-block;
    flex-shrink: 0;
    min-width: 57%;
    max-width: 50px;
    margin-right: 5px;
}

#tournament_overview {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    overflow-y: hidden;
    justify-content: space-evenly;
    position: relative;
    flex-wrap: wrap;
    gap: 16px;
}

#tournament_overview.collapsed {
    max-height: 430px;
}

#tournament_expand_btn {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 400px;
    overflow: hidden;
    cursor: pointer;
    
    background: linear-gradient(to bottom, transparent, var(--background-color) 50%, var(--background-color));
    
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: center;
    font-size: 60%;
    font-weight: bold;
}
#tournament_overview:not(.collapsed) #tournament_expand_btn { display: none; }

#tournament_archetypes { border: 2px solid #dee2e6; border-radius: 5px; border-collapse: collapse; }
#tournament_archetypes_header { border-bottom: 2px solid #dee2e6; font-weight: bold; }
#tournament_archetypes_header .as-tablecell:not(:empty) { cursor: pointer; }
#tournament_archetypes .tournament_archetypes_row.odd { background-color: rgba(0,0,0,0.05); }
#tournament_archetypes .as-tablecell { border: 1px solid #dee2e6; padding: .3rem; align: right; }
.tournament_archetypes_row { color: #212529; }
[data-bs-theme="dark"] .tournament_archetypes_row { color: #d4d1d0; }

#tournament_piechart {
    width: 400px;
    height: 400px;
    border: 2px solid #000;
    --piechart-size: 394px;
}

#tournament_piechart .slice-other { opacity: .25; }

@media screen and (max-width: 750px)
{
    #tournament_archetypes { display: none; }
    #tournament_piechart {
        width: 300px;
        height: 300px;
        --piechart-size: 294px;
    }
}

#tournament_table { border: 2px solid #dee2e6; border-radius: 5px; border-collapse: collapse; }
#tournament_table_header { border-bottom: 2px solid #dee2e6; font-weight: bold; }
#tournament_table .tournament_table_row.odd { background-color: rgba(0,0,0,0.05); }
#tournament_table .tournament_table_row[href]:hover { background-color: rgba(0,0,0,0.25); }
#tournament_table .as-tablecell { border: 1px solid #dee2e6; padding: .3rem; vertical-align: middle; }
.tournament_table_row { color: #212529; transition: background .2s; }
[data-bs-theme="dark"] .tournament_table_row { color: #d4d1d0; }
.tournament_table_row:hover { color: unset; text-decoration: unset; }
.player-name.unknown { opacity: .6; }
.font-size-lg {
    font-size: 1.3rem;
}
.archetype-tournament-img {
    width: 30px;
    border: 2px solid #7d3e12;
    border-radius: 35px;
    margin-right: auto;
    text-align: center;
    display: block;
    margin-left: 10px;
}

.archetype-img {
    max-width: 26px;
    border: 1px solid #431c00;
    border-radius: 20px;
}
.badge-ygoprodeck {
    background-color: #E6BDA1;
    max-height: 31px;
    padding: 5px;
    display: flex;
    justify-content: right;
    align-items: center;
    overflow: hidden;
    color: black;
    font-weight: bold;    
    border: 2px solid #7d3e12;
}
a.badge-ygoprodeck:hover { color: black; }
figure {
    margin: 0;
}
figcaption {
    text-align: center;
    font-size: 0.8em;
}