/* Конец боя над логом (templates/fight/_end.mtpl.php), на странице лога со стилями сайта вокруг. */

.fight-end {
    --end-ink: #1e2430;
    --end-muted: #5d584c;
    --end-soft: #f3eddc;
    max-width: 760px;
    margin: 8px auto 24px;
    overflow: hidden;
    border-radius: 20px;
    background: #f7f2e4;
    color: var(--end-ink);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.fight-end *,
.fight-end *::before,
.fight-end *::after {
    box-sizing: border-box;
}

.fight-end p {
    margin: 0;
}

.fight-end__hero {
    padding: 24px 20px 20px;
    background: #ffc914;
    text-align: center;
}

.fight-end.is-loss .fight-end__hero {
    background: #d9d2bf;
}

.fight-end.is-draw .fight-end__hero,
.fight-end.is-watch .fight-end__hero {
    background: #ece6d6;
}

.fight-end__scene {
    display: block;
    width: 200px;
    max-width: 60%;
    height: auto;
    margin: 0 auto 8px;
    border-radius: 20px;
}

.fight-end .fight-end__title {
    font-size: 30px;
    font-weight: 900;
    line-height: 1.2;
}

.fight-end .fight-end__sub {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 700;
}

.fight-end__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.fight-end__card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff;
}

.fight-end .fight-end__label {
    width: auto;
    margin: 0;
    color: #6b6556;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.4;
    text-transform: uppercase;
}

.fight-end__gains {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    text-align: center;
}

.fight-end__gain {
    padding: 10px 4px;
    border-radius: 12px;
    background: #fff6e0;
}

.fight-end__gain b {
    display: block;
    font-size: 22px;
    font-weight: 900;
}

.fight-end__gain span {
    color: var(--end-muted);
    font-size: 12px;
}

.fight-end .fight-end__extra {
    font-size: 14px;
}

.fight-end .fight-end__note {
    color: var(--end-muted);
    font-size: 13px;
}

.fight-end__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.fight-end__best {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 8px;
    background: var(--end-ink);
    color: #ffc914;
    font-size: 11px;
    font-weight: 900;
}

.fight-end__row {
    display: grid;
    grid-template-columns: minmax(70px, 140px) minmax(0, 1fr) 56px;
    gap: 8px;
    align-items: center;
    font-size: 13px;
}

.fight-end__name {
    overflow: hidden;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fight-end__bar {
    display: block;
    height: 12px;
    overflow: hidden;
    border-radius: 6px;
    background: var(--end-soft);
}

.fight-end__bar > span {
    display: block;
    height: 100%;
    background: #0b6fa4;
}

.fight-end__bar > .is-theirs,
.fight-end__bar > .is-team2 {
    background: #c2412a;
}

.fight-end__damage {
    font-weight: 700;
    text-align: right;
}

.fight-end__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fight-end .fight-end__button {
    display: flex;
    flex: 1 1 200px;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 2px solid #d9d2bf;
    border-radius: 14px;
    background: #fff;
    color: var(--end-ink);
    font-weight: 800;
    text-decoration: none;
}

.fight-end .fight-end__button.is-main {
    border-color: #ffc914;
    background: #ffc914;
    box-shadow: 0 3px 0 #d9a400;
    font-size: 18px;
    font-weight: 900;
}

@media (max-width: 767px) {
    .fight-end {
        margin: 8px 16px 20px;
    }
}
