.fightStats .result-members {
	width: 90%;
}

.fightStats .result-duel {
	width: 100%;
}

/* Keep the numeric columns at their natural width; only the name may shrink. */
.fightStats .result-members .result-player {
	width: 100%;
	max-width: 0;
}

.fightStats .result-members td,
.fightStats .result-members th {
	vertical-align: middle;
	white-space: nowrap;
}

.fightStats .result-duel {
	table-layout: fixed;
}

.fightStats .fll > .result-duel tr:first-child > th {
	padding-left: 50px;
}

.fightStats .flr > .result-duel tr:first-child > th {
	padding-right: 50px;
}

.fightStats .result-pers {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	min-width: 0;
	vertical-align: middle;
	white-space: nowrap;
}

.fightStats .result-pers__nick {
	display: block;
	flex: 0 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fightStats .result-pers__nick--bot {
	font-weight: bold;
}

.fightStats .result-pers__icon,
.fightStats .result-pers__level,
.fightStats .result-pers__info {
	flex: 0 0 auto;
	margin: 0;
}

/* Margins also work in browsers without support for gap in flex layouts. */
.fightStats .result-pers > * + * {
	margin-left: 3px;
}

.fightStats .result-pers__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	vertical-align: middle;
}

.fightStats .result-pers__icon img {
	display: block;
}

.fightStats .result-pers__level {
	line-height: normal;
}

.fightStats .result-pers__info {
	position: relative;
	top: 1px;
}

.fightStats .profile-avatar .result-avatar-level,
.fightStats .profile-avatar .result-avatar-rank,
.fightStats .profile-avatar .result-avatar-title {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 26px;
	height: 26px;
	padding: 0;
	margin: 0;
	left: auto;
	bottom: auto;
	background-position: center;
	background-repeat: no-repeat;
	font-style: normal;
	line-height: normal;
}

.fightStats .profile-avatar .result-avatar-level {
	top: 44px;
	right: -3px;
	background-image: url(../img/fight-results/back_level.png);
	z-index: 3;
}

.fightStats .profile-avatar .result-avatar-rank {
	top: 59px;
	right: 12px;
	background-image: url(../img/fight-results/back_rank.png);
	z-index: 2;
}

.fightStats .profile-avatar .result-avatar-title {
	top: 68px;
	right: 31px;
	background-image: url(../img/fight-results/back_title.png);
	z-index: 1;
}

.fightStats .profile-avatar.r .result-avatar-level {
	left: -3px;
	right: auto;
}

.fightStats .profile-avatar.r .result-avatar-rank {
	left: 12px;
	right: auto;
}

.fightStats .profile-avatar.r .result-avatar-title {
	left: 31px;
	right: auto;
}

.fightStats .result-avatar-title img {
	width: 18px;
	height: 18px;
	object-fit: contain;
}

.fightStats .profile-avatar .icon-loot {
	top: 98px;
}

.fightStats .clan-battle-team-name,
.fightStats th.clan-battle-team-name {
	white-space: normal;
	overflow-wrap: anywhere;
}

.fightStats .clan-battle-rounds {
	/* Each roster leaves 5% of its half-width column at each edge. */
	width: 95%;
}

.fightStats .clan-battle-team-red {
	color: #ce0000;
}

.fightStats .clan-battle-team-blue {
	color: #0058cf;
}

@media (max-width: 640px) {
	.fightStats .size1of2 {
		float: none;
		width: 100%;
		margin-bottom: 20px;
	}

	.fightStats .result-duel tr:first-child > th {
		padding-left: 50px;
		padding-right: 50px;
	}

	.fightStats .clan-battle-rounds {
		width: 90%;
	}

	.clan-battle-summary > .size2of5,
	.clan-battle-summary > .size1of5 {
		float: none !important;
		width: 100%;
		margin-bottom: 20px;
	}
}

/* Sea results share the same parchment, table borders and typography as fights. */
.sea-results .sea-results-outcome {
	margin-top: 20px;
}

.sea-results .sea-results-title {
	margin: 24px 0 18px;
}

.sea-results .sea-results-scroll {
	overflow-x: auto;
	padding-bottom: 6px;
	margin-bottom: 14px;
}

.fightStats .sea-results .sea-results-table--role {
	width: 95%;
	table-layout: fixed;
}

.sea-results .sea-role-statistic {
	width: 26%;
}

.fightStats .sea-results .sea-results-table--role th,
.fightStats .sea-results .sea-results-table--role td {
	text-align: center;
	white-space: normal;
	overflow-wrap: break-word;
}

.sea-results .sea-role-player .result-pers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	max-width: 100%;
}

.sea-results .sea-role-player .result-pers__nick {
	order: -1;
	flex-basis: 100%;
	margin-left: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sea-results .sea-results-primary th,
.sea-results .sea-results-primary td,
.sea-results .sea-results-table tfoot {
	font-weight: bold;
}

.sea-results .sea-role-tabs {
	box-sizing: border-box;
	width: 95%;
	height: auto;
	margin: 0 auto 18px;
	padding: 0 20px;
	text-align: center;
}

.sea-results .sea-role-tabs ul {
	padding: 0 15px;
	margin: 0;
	list-style: none;
	overflow: visible;
}

.sea-results .sea-role-tabs .nav-tabs_item {
	margin: 0 12px;
}

.sea-results .sea-role-tab {
	display: block;
	position: relative;
	z-index: 2;
	color: inherit;
	text-decoration: none;
}

.sea-results .sea-role-tab img {
	margin-right: 3px;
}

.sea-results .sea-role-tab:focus,
.sea-results .sea-results-scroll:focus,
.sea-results .b-button:focus {
	outline: 2px solid #7d491d;
	outline-offset: 2px;
}

.sea-results .sea-role-caption {
	margin: 16px 0;
}

.sea-results .sea-role-panel[hidden],
.sea-results .sea-results-shootout.is-enhanced .sea-role-caption {
	display: none;
}

.sea-results .sea-results-action {
	margin: 0 0 18px;
	text-align: center;
}

/* Native portal danger button, scoped to this report (no portal CSS reset). */
.sea-results .b-button {
	position: relative;
	display: inline-block;
	vertical-align: middle;
	text-align: center;
	min-width: 46px;
	text-decoration: none;
	cursor: pointer;
	border-radius: 3px;
	padding: 2px;
	border: 1px solid;
	border-color: rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.4);
}

.sea-results .b-button__element {
	height: 29px;
	line-height: 31px;
	font-size: 12px;
	border-radius: 2px;
	display: block;
	padding: 0 12px;
}

.sea-results .b-button--danger {
	background: #ffffc7;
	background: linear-gradient(to bottom, #ffecb3 0%, #ffdaa5 67%, #f8d4a1 100%);
	box-shadow: inset 0 0 0 1px #ffffc7;
}

.sea-results .b-button--danger .b-button__element {
	color: #ffdc39;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
	background: #c72d2d;
	background: linear-gradient(to bottom, #c72d2d 0%, #bd2b2b 20%, #982222 76%, #902020 100%);
}

.sea-results .b-button--danger:hover {
	background: #b93535;
	border-color: #bd3936;
	box-shadow: inset 0 0 0 1px #982b2b;
}

.sea-results .b-button--danger:hover .b-button__element {
	background: #9b2323;
	background: linear-gradient(to bottom, #9b2323 0%, #a32525 36%, #ba2a2a 100%);
	box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.4);
}

@media (max-width: 640px) {
	.sea-results .sea-results-summary > .fll,
	.sea-results .sea-results-summary > .flr {
		width: 50%;
		text-align: center;
	}

	.sea-results .sea-results-outcome {
		margin: 20px 0 0;
		font-size: 20px;
	}

	.sea-results .fight-type {
		clear: both;
		width: auto;
	}

	.sea-results .sea-role-tabs {
		padding: 0;
	}

	.sea-results .sea-role-tabs ul {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 0;
	}

	.sea-results .sea-role-tabs .nav-tabs_item {
		margin: 0;
	}

	.fightStats .sea-results .sea-results-table--role {
		min-width: 600px;
	}
}
