/* Class combos: three steps in a row with the allowed time on the arrows, the
   third one (the combo hit) lit in gold. On /class-change every class is a tab;
   on a class page the class's own combo spans the reference grid. The row turns
   into a column with downward arrows on a phone. */

.class-reference__combo {
    grid-column: 1 / -1;
}

.class-combos__intro {
    margin: 0 0 14px;
    color: #c9d2ea;
    line-height: 1.6;
    max-width: 900px;
}

.class-combos__more {
    margin: 12px 0 0;
    font-size: 13px;
}

.class-combos__more a {
    color: #f0c674;
}

/* Tabs */
.combo-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

.combo-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.combo-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px 5px 6px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: rgba(0, 0, 0, .3);
    color: #c9d2ea;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .03em;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}

.combo-tab:hover {
    border-color: rgba(240, 198, 116, .4);
    color: #fff;
}

.combo-tab img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

.combo-panel {
    display: none;
}

.combo-panel__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.combo-panel__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(240, 198, 116, .3);
}

.combo-panel__name {
    display: block;
    color: #fff;
    font-size: 17px;
}

.combo-panel__from {
    color: #9fb2c8;
    font-size: 13px;
}

/* The chain */
.combo-chain {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 0;
}

.combo-step {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 12px 14px;
    border: 1px solid rgba(240, 198, 116, .14);
    border-radius: 10px;
    background: rgba(0, 0, 0, .3);
}

.combo-step--3 {
    position: relative;
    border-color: rgba(240, 198, 116, .55);
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(255, 196, 64, .2), rgba(255, 196, 64, 0) 65%),
        rgba(20, 12, 0, .5);
    box-shadow: 0 0 0 1px rgba(240, 198, 116, .12), 0 0 24px rgba(255, 184, 48, .16);
}

.combo-step__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.combo-step__num {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    flex: none;
}

.combo-step--3 .combo-step__num {
    background: linear-gradient(180deg, #f7d98e, #c48b31);
    color: #1a1208;
}

.combo-step__label {
    color: #ffcc19;
    font-size: 14px;
    font-weight: 700;
}

.combo-step__burst {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 4px;
    background: linear-gradient(180deg, #ffde7a, #e08a1e);
    color: #2a1500;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
    animation: combo-burst 2.4s ease-in-out infinite;
}

@keyframes combo-burst {
    0%, 100% { box-shadow: 0 0 0 rgba(255, 190, 60, 0); }
    50% { box-shadow: 0 0 14px rgba(255, 190, 60, .55); }
}

@media (prefers-reduced-motion: reduce) {
    .combo-step__burst { animation: none; }
}

.combo-step__hint {
    margin-bottom: 8px;
    color: #9fb2c8;
    font-size: 12px;
}

.combo-step__hint--foot {
    margin: 8px 0 0;
    font-style: italic;
}

.combo-step__skills {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
    gap: 8px 6px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.combo-skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    text-align: center;
}

.combo-skill__icon {
    width: 40px;
    height: 56px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .5);
    object-fit: cover;
    transition: transform .15s;
}

.combo-skill:hover .combo-skill__icon {
    transform: translateY(-2px);
}

.combo-step--3 .combo-skill__icon {
    border-color: rgba(255, 214, 120, .6);
    box-shadow: 0 0 10px rgba(255, 184, 48, .35), 0 2px 6px rgba(0, 0, 0, .5);
}

.combo-skill__icon--empty {
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #2a2f3c, #151820);
    color: #c9d2ea;
    font-size: 18px;
    font-weight: 800;
}

.combo-skill__name {
    color: #e7ecf8;
    font-size: 11.5px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

/* The arrow between two steps, the time allowed beneath it. */
.combo-link {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 64px;
}

.combo-link__arrow {
    position: relative;
    width: 44px;
    height: 2px;
    background: linear-gradient(90deg, rgba(240, 198, 116, .2), #f0c674);
}

.combo-link__arrow::after {
    content: "";
    position: absolute;
    right: -1px;
    top: -5px;
    border: 6px solid transparent;
    border-left: 8px solid #f0c674;
    border-right: 0;
}

.combo-link__time {
    color: #f0c674;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .combo-chain {
        flex-direction: column;
    }

    .combo-link {
        flex-direction: row;
        width: auto;
        height: 38px;
        gap: 10px;
    }

    .combo-link__arrow {
        width: 2px;
        height: 24px;
        background: linear-gradient(180deg, rgba(240, 198, 116, .2), #f0c674);
    }

    .combo-link__arrow::after {
        right: auto;
        top: auto;
        left: -5px;
        bottom: -1px;
        border: 6px solid transparent;
        border-top: 8px solid #f0c674;
        border-bottom: 0;
    }
}
