.goals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
    gap: .35rem;
}

.goals div.goal {
    min-width: 0;
    position: relative;
    border-radius: .6rem;
    container-type: inline-size;
}

.pulsar-goal-card {
    display: block;
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: inherit;
    color: #fff;
}

.pulsar-goal-artwork {
    display: grid;
    grid-template-columns: repeat(var(--goal-columns), minmax(0, 1fr));
    width: 100%;
    min-height: 6.5rem;
    padding: .45rem .3rem 1rem;
    background: #490d2e url('../images/goal-tile.webp') center / 100% 100%;
    border-radius: .6rem;
    color: #fff;
}

.pulsar-goal-card:focus-visible {
    outline: 2px solid #93e9ef;
    outline-offset: 1px;
}

.pulsar-goal-stage {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: .15rem;
    min-width: 0;
    padding: 0 .2rem 0 1.3rem;
}

.pulsar-goal-stage + .pulsar-goal-stage {
    border-left: 1px solid #d690b480;
}

.pulsar-goal-stage + .pulsar-goal-stage::before {
    content: '›';
    position: absolute;
    left: -.25rem;
    top: 25%;
    color: #f3cde0;
    font-size: 1rem;
}

.pulsar-goal-icon {
    display: block;
    position: relative;
    width: 4.6rem;
    max-width: 100%;
    height: 3.4rem;
}

.pulsar-goal-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.pulsar-rule-detail .pulsar-goal-artwork {
    margin-bottom: .5rem;
}

.pulsar-rule-detail .pulsar-goal-artwork img {
    margin: 0;
}

.pulsar-rule-detail p + p {
    margin-top: .5rem;
}

.pulsar-goal-cubes {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 2.5rem;
}

.pulsar-goal-cubes img {
    width: min(1.1rem, 22%);
    height: auto;
}

.pulsar-goal-arrow {
    font-size: .65rem;
    line-height: 1;
}

.pulsar-goal-points {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1;
}

.pulsar-goal-points img {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
}

.goals .pulsar-goal-markers .marker {
    position: absolute;
    width: 1.1rem;
    height: 1.1rem;
    object-fit: contain;
    top: calc(.45rem + var(--goal-stack, 0) * 1.25rem);
    left: calc(.3rem + (100% - .6rem) / var(--goal-columns) * var(--goal-stage, 0) + .12rem);
    z-index: 10;
    pointer-events: none;
}

.goals .bonusIdx1 { --goal-stage: 1; }
.goals .bonusIdx2 { --goal-stage: 2; }

.goals div.goal .pin.bonusIdx1,
.goals div.goal .pin.bonusIdx2 {
    width: calc((100% - .6rem) / var(--goal-columns));
    height: 100%;
    left: calc(.3rem + (100% - .6rem) / var(--goal-columns) * var(--goal-stage));
    top: 0;
    z-index: 11;
}
