

.treasureScores {
    margin: 30px 0 0 0;
}

.treasureScores .gradient {
    background: linear-gradient(
        90deg, rgba(4,255,0,1) 0%,
        rgba(184,205,5,1) 30%,
        rgba(240,199,8,1) 50%,
        rgba(228,143,7,1) 70%,
        rgba(208,8,8,1) 100%
    );
}

.treasureScores .scale_display {
    display: flex;
    align-items: center;
    gap: 0.1em;
}

.treasureScores .scale_container .title {
    font-size: 1.1em;
    font-weight: bold;
    margin: 1em 0 0.2em 0;
    display: flex;
    align-items: center;
    gap: 0.2em;
}

.treasureScores .bar {
    height: 1em;
    flex-grow: 1;
    display: flex;
    overflow: hidden;
}

.treasureScores .value {
    font-size: 1.3em;
    font-weight: bold;
    margin: 0;
    text-align: center;
    padding: 0.1em;
    min-width: 1.3em;
}

.treasureScores .bar .cell {
    flex-grow: 1;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.treasureScores .bar .cell .color {
    background-color: transparent;
    height: 100%;
    width: 100%;
    box-shadow: 0 0 0 99px #FFF;
    border-radius: 2em;
    box-sizing: border-box;
    margin: 0 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.treasureScores .bar .cell .color:not(.selected):hover:before {
    position: absolute;
    height: 100%;
    width: 100%;
    border: 2px solid #000;
    border-radius: 7px;
    content: "";
    box-sizing: border-box;
    background: repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.4),
            rgba(255,255,255,0.4) 5px,
            transparent 5px,
            transparent 10px
    );
}

.treasureScores .bar .cell .color.selected {
    pointer-events: none;
}

.treasureScores .bar .cell .color.selected {
    border: 2px solid #000;
}
.treasureScores .bar .cell .color.selected:before {
    position: absolute;
    height: 100%;
    width: 100%;
    border-radius: 6px;
    border: 2px solid #FFF;
    content: "";
    pointer-events: none;
    box-sizing: border-box;
    background: repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.4),
            rgba(255,255,255,0.4) 5px,
            transparent 5px,
            transparent 10px
    );
}






.treasureScores .explanation_container {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
}
.treasureScores .explanation_container .tooltip {
    font-style: italic;
    opacity: 0.5;
    width: 100%;
    margin: 0;
}
.treasureScores .explanation_container.hidden {
    display: none;
}
.treasureScores .explanation_container .collapsible_content h3 {
    margin-top: 0;
}

.treasureScores .collapsible_explanation .button {
    line-height: 1em;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

.treasureScores .collapsible_explanation span.hidden {
    display: none;
}
.treasureScores .collapsible_explanation .button span {
    white-space: nowrap;
    opacity: 0.5;
}

.treasureScores .explanation_container table tr.selected {
    color: var(--psmlist-primary);
    font-weight: bold;
    background-color: rgba(0,0,0,0.04);
}

.treasureScores .explanation_container table td {
    line-height: 1em;
    padding: 0.3em 0;
}

.treasureScores .explanation_container table td:first-child {
    text-align: right;
    font-weight: bold;
    font-size: 1.1em;
    padding: 0 0.7em;
}




