.punishment {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1em;
margin-top: 0.5em;
}
.punishment-label {
text-align: center;
font-weight: bold;
margin-bottom: 0.2em;
}
.punishment-grid {
display: grid;
grid-template-columns: auto 1fr;
align-items: center;
gap: 0 0.2em;
}
.punishment-startup {
grid-column: 1;
}
.punishment-bars,
.punishment-scale {
grid-column: 2;
}
.punishment-bars {
position: relative;
height: 2em;
}
.punishment-bar {
position: absolute;
color: transparent;
display: flex;
justify-content: center;
align-items: center;
user-select: none;
height: 100%;
}
.punishment-median {
position: absolute;
top: 50%;
}
.punishment-median:after {
content: "";
display: block;
height: 0.8em;
width: 2px;
background-color: currentColor;
position: absolute;
right: -1px;
top: -0.4em;
}
.punishment-bar:hover {
z-index: 2;
color: inherit;
}
.punishment-scale {
position: relative;
height: 1px;
background-color: currentColor;
margin-bottom: 1.2em;
}
.punishment-scale:after {
content: 'Damage';
display: block;
text-align: center;
position: relative;
top: 1rem;
font-size: 0.8em;
}
.punishment-scalepip {
position: absolute;
font-size: 0.7em;
}
.punishment-piplabel {
position: absolute;
color: transparent;
right: 0;
top: 0.4rem;
transform: translateX(50%);
}
.punishment-scalepip.minor .punishment-piplabel,
.punishment-scalepip.major .punishment-piplabel {
color: inherit;
}
.punishment-scalepip.minor:after,
.punishment-scalepip.major:after {
height: 8px;
}
.punishment-scalepip:after {
content: '';
position: absolute;
right: -1px;
width: 1px;
height: 4px;
background-color: currentColor;
}