.competition-chart-modal__chart-wrap {
    scrollbar-width: thin;
    scrollbar-color: var(--theme) rgb(184 210 255 / 0.2);
}


.competition-chart-modal-open {
    overflow: hidden;
}

.competition-chart-modal {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(6px);
}

.competition-chart-modal.is-open {
    display: flex;
}

.competition-chart-modal__dialog {
    width: min(1200px, 100%);
    max-height: min(90vh, 920px);
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.25);
    overflow: hidden;
}

.competition-chart-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 20px 22px 16px;
    border-bottom: 1px solid rgba(100, 116, 139, 0.15);
    background: linear-gradient(125deg, color-mix(in srgb, var(--theme) 18%, #fff) 0%, #ffffff 70%);
}

.competition-chart-modal__title {
    margin: 0;
    font-size: 20px;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.competition-chart-modal__sub {
    margin: 6px 0 0;
    font-size: 13px;
    color: #475569;
}

.competition-chart-modal__close {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(100, 116, 139, 0.22);
    background: #fff;
    color: #334155;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, transform .15s ease;
}

.competition-chart-modal__close:hover {
    background-color: var(--theme);
    color: #fff;
    transform: scale(1.05);
}

.competition-chart-modal__body {
    padding: 16px 18px 18px;
}

.competition-chart-modal__chart-wrap {
    max-height: calc(90vh - 150px);
    overflow: auto;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 10px 8px;
    background:
            linear-gradient(to right, rgba(100, 116, 139, 0.04) 1px, transparent 1px) 0 0 / 52px 100%,
            #ffffff;
}

.competition-chart-modal__chart {
    width: 100%;
    min-height: 460px;
}

@media (max-width: 768px) {
    .competition-chart-modal {
        padding: 10px;
    }

    .competition-chart-modal__dialog {
        width: 100%;
        max-height: 94vh;
        border-radius: 14px;
    }

    .competition-chart-modal__header {
        padding: 14px 14px 12px;
    }

    .competition-chart-modal__title {
        font-size: 17px;
    }

    .competition-chart-modal__sub {
        font-size: 12px;
    }

    .competition-chart-modal__body {
        padding: 12px;
    }

    .competition-chart-modal__chart-wrap {
        max-height: calc(94vh - 132px);
    }
}
.name-and-badge-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}
.name-and-badge-wrap > .term-type-badge {
    position: static;

}