:root {
    --tier-col-dark: #1a1a17;
    --tier-col-s: #ff7f7f;
    --tier-col-a: #ffbf7f;
    --tier-col-b: #ffdf7f;
    --tier-col-c: #ffff7f;
    --tier-col-d: #bfff7f;
    --tier-col-f: #858585;
}

.tier-list {
    width: 800px;
    margin-block: 40px;
    padding: 1px;

    display: flex;
    flex-direction: column;
    gap: 1px;

    background-color: rgb(0, 0, 0);
    overflow: hidden;
}

.tier-row{
    display: flex;
    gap: 1px;
}

.tier-row[data-type="S"]{ --tier-col: var(--tier-col-s); }
.tier-row[data-type="A"]{ --tier-col: var(--tier-col-a); }
.tier-row[data-type="B"]{ --tier-col: var(--tier-col-b); }
.tier-row[data-type="C"]{ --tier-col: var(--tier-col-c); }
.tier-row[data-type="D"]{ --tier-col: var(--tier-col-d); }
.tier-row[data-type="F"]{ --tier-col: var(--tier-col-f); }

.tier-name{ 
    min-height: 70px;
    width: 90px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: var(--tier-col);

    font-family: 'Noto Sans JP';
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    color: var(--tier-col-dark);

    user-select: none;
}

.tier-sort {
    flex: 1;

    display: flex;
    gap: 1px;
    flex-wrap: wrap;

    background: var(--tier-col-dark);
}

.tier-item {
    height: 70px;
    aspect-ratio: 1 / 1;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #eaeaea;
    color: var(--tier-col-dark);

    cursor: pointer;
    transition: 30ms ease-in-out;
}

.tier-item:hover span,
.tier-item:hover .MathJax {
    width: fit-content;
    background: var(--gradient);
    background-clip: text;
    color: transparent !important;
}

.tier-item:active {
    transform: scale(0.97);
}

.tier-item .MathJax{
    font-size: 50px !important;
    font-weight: 400 !important;
    color: var(--tier-col-dark);
}

.tier-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
}

.troll {
    font-size: 50px;
    font-weight: 600;
    line-height: 1;
    color: var(--tier-col-dark);
}

.tier-text {
    margin-top: -50px;
    margin-bottom: 20px !important;
}

.tier-text:not(.active) {
    display: none;
    visibility: hidden;
}