.deaths-page {
	--deaths-gold: #d8aa57;
	--deaths-gold-bright: #f3d28d;
	--deaths-red: #d5635d;
	--deaths-creature-accent: #78c2ad;
	--deaths-guild-accent: #b79ae2;
	--deaths-panel: rgba(18, 11, 9, 0.78);
	--deaths-border: rgba(216, 170, 87, 0.2);
	max-width: 100%;
	padding: 4px 0 20px;
}

.deaths-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 116px;
	margin-bottom: 12px;
	padding: 20px 24px;
	overflow: hidden;
	background:
		radial-gradient(circle at 84% 20%, rgba(213, 99, 93, 0.15), transparent 32%),
		linear-gradient(135deg, rgba(72, 31, 24, 0.88), rgba(20, 12, 10, 0.96) 68%);
	border: 1px solid var(--deaths-border);
	border-radius: 10px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.04);
}

.deaths-hero::after {
	content: "";
	position: absolute;
	right: -38px;
	bottom: -74px;
	width: 190px;
	height: 190px;
	border: 1px solid rgba(213, 99, 93, 0.12);
	border-radius: 50%;
}

.deaths-eyebrow {
	display: block;
	margin-bottom: 3px;
	color: var(--deaths-gold-bright);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.8px;
	text-transform: uppercase;
}

.deaths-hero h1 {
	margin: 0;
	color: #f1e9df;
	font-family: "Cinzel", Georgia, serif;
	font-size: 31px;
	font-weight: 650;
	letter-spacing: 0.5px;
	line-height: 1.15;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.deaths-hero p {
	max-width: 430px;
	margin: 7px 0 0;
	color: #b9aaa0;
	font-size: 12px;
	line-height: 1.5;
}

.deaths-status {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: auto auto;
	align-items: center;
	column-gap: 7px;
	min-width: 96px;
	padding: 12px 15px;
	background: rgba(5, 3, 3, 0.38);
	border: 1px solid rgba(213, 99, 93, 0.3);
	border-radius: 9px;
	box-shadow: 0 0 26px rgba(213, 99, 93, 0.07);
}

.deaths-status__mark {
	grid-row: 1 / span 2;
	width: 9px;
	height: 9px;
	background: var(--deaths-red);
	border: 2px solid rgba(255, 201, 196, 0.68);
	border-radius: 50%;
	box-shadow: 0 0 11px rgba(213, 99, 93, 0.72);
}

.deaths-status strong,
.deaths-status > span:last-child {
	display: block;
}

.deaths-status strong {
	color: #f2e3e1;
	font-size: 20px;
	line-height: 1;
}

.deaths-status > span:last-child {
	margin-top: 2px;
	color: #b38a87;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: 0.9px;
	text-transform: uppercase;
}

.deaths-summary {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin-bottom: 10px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 7px;
}

.deaths-summary__item {
	position: relative;
	min-width: 0;
	padding: 10px 13px;
}

.deaths-summary__item + .deaths-summary__item::before {
	content: "";
	position: absolute;
	top: 9px;
	bottom: 9px;
	left: 0;
	width: 1px;
	background: rgba(255, 255, 255, 0.07);
}

.deaths-summary__item span,
.deaths-summary__item strong {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.deaths-summary__item span {
	margin-bottom: 2px;
	color: #7f746e;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: 0.9px;
	text-transform: uppercase;
}

.deaths-summary__item strong {
	color: #cfc2b8;
	font-size: 11px;
	font-weight: 600;
}

.deaths-summary__item--pvp strong {
	color: #dda09c;
}

.deaths-sort-hint {
	margin: 4px 2px 8px;
	color: #82766f;
	font-size: 9px;
}

.deaths-table-wrap {
	overflow-x: auto;
	background: rgba(8, 5, 4, 0.48);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 8px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
	-webkit-overflow-scrolling: touch;
}

.deaths-table {
	width: 100%;
	min-width: 650px;
	margin: 0;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: auto;
}

.deaths-table thead th {
	padding: 0;
	background: rgba(63, 31, 25, 0.74);
	border: 0;
	border-bottom: 1px solid rgba(216, 170, 87, 0.18);
	text-align: left;
}

.content .deaths-sort {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	min-height: 38px;
	padding: 10px 11px;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: #bfa78d;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 1px;
	text-align: left;
	text-transform: uppercase;
}

.content .deaths-sort:hover,
.content .deaths-sort:focus-visible,
.content .deaths-sort.is-active {
	background: rgba(216, 170, 87, 0.08);
	color: #f0cf8a;
	outline: none;
}

.deaths-sort__indicator {
	position: relative;
	width: 8px;
	height: 10px;
	margin-left: 6px;
	opacity: 0.35;
}

.deaths-sort__indicator::before,
.deaths-sort__indicator::after {
	content: "";
	position: absolute;
	left: 1px;
	border-right: 3px solid transparent;
	border-left: 3px solid transparent;
}

.deaths-sort__indicator::before {
	top: 0;
	border-bottom: 4px solid currentColor;
}

.deaths-sort__indicator::after {
	bottom: 0;
	border-top: 4px solid currentColor;
}

.deaths-sort[data-direction="asc"] .deaths-sort__indicator,
.deaths-sort[data-direction="desc"] .deaths-sort__indicator {
	opacity: 1;
}

.deaths-sort[data-direction="asc"] .deaths-sort__indicator::after {
	opacity: 0.2;
}

.deaths-sort[data-direction="desc"] .deaths-sort__indicator::before {
	opacity: 0.2;
}

.deaths-table tbody td {
	padding: 10px 11px;
	background: rgba(255, 255, 255, 0.018);
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.055);
	color: #aaa09a;
	font-size: 11px;
	vertical-align: middle;
	transition: background 0.16s ease, color 0.16s ease;
}

.deaths-table tbody tr:last-child td {
	border-bottom: 0;
}

.deaths-table tbody tr:nth-child(even) td {
	background: rgba(255, 255, 255, 0.032);
}

.deaths-table tbody tr:hover td {
	background: rgba(200, 71, 65, 0.095);
}

.deaths-table tbody tr.is-pvp td:first-child {
	box-shadow: inset 2px 0 rgba(213, 99, 93, 0.7);
}

.deaths-character,
.deaths-cause {
	display: flex;
	align-items: center;
	gap: 7px;
}

.deaths-character {
	min-width: 155px;
}

.deaths-cause {
	min-width: 175px;
}

.deaths-character > a:first-child,
.deaths-killer,
.deaths-guild-tag {
	font-weight: 650;
	text-decoration: none;
}

.deaths-character > a:first-child,
.deaths-killer {
	color: #d7c7ba;
}

.deaths-character > a:first-child:hover,
.deaths-killer:hover {
	color: #fff0de;
	text-decoration: underline;
	text-decoration-color: rgba(216, 170, 87, 0.5);
	text-underline-offset: 3px;
}

.deaths-guild-tag {
	color: var(--deaths-guild-accent);
	font-size: 9px;
	text-shadow: 0 0 8px rgba(183, 154, 226, 0.2);
	white-space: nowrap;
}

.deaths-guild-tag:hover {
	color: #e1d4f5;
	text-decoration: underline;
	text-decoration-color: rgba(183, 154, 226, 0.58);
	text-underline-offset: 3px;
}

.deaths-type {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	padding: 3px 5px;
	border: 1px solid;
	border-radius: 9px;
	font-size: 7px;
	font-weight: 800;
	letter-spacing: 0.6px;
	line-height: 1;
	text-transform: uppercase;
}

.deaths-type--pvp {
	background: rgba(213, 99, 93, 0.11);
	border-color: rgba(213, 99, 93, 0.28);
	color: #e29a95;
}

.deaths-type--creature {
	background: rgba(120, 194, 173, 0.08);
	border-color: rgba(120, 194, 173, 0.24);
	color: #8dccba;
}

.deaths-creature {
	color: var(--deaths-creature-accent);
	font-weight: 650;
	text-shadow: 0 0 9px rgba(120, 194, 173, 0.16);
}

.deaths-number-column .deaths-sort {
	justify-content: flex-end;
}

.deaths-number-cell {
	color: #c4b8ae !important;
	font-weight: 600;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.deaths-time {
	color: #958a83 !important;
	font-size: 10px !important;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.deaths-empty {
	padding: 40px 14px;
	background: var(--deaths-panel);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 8px;
	text-align: center;
}

.deaths-empty strong,
.deaths-empty span {
	display: block;
}

.deaths-empty strong {
	margin-bottom: 4px;
	color: #cbbdb2;
	font-family: "Cinzel", Georgia, serif;
	font-size: 15px;
}

.deaths-empty span {
	color: #80756f;
	font-size: 10px;
}

@media (max-width: 700px) {
	.deaths-summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.deaths-summary__item:nth-child(3)::before {
		display: none;
	}

	.deaths-summary__item:nth-child(n+3) {
		border-top: 1px solid rgba(255, 255, 255, 0.07);
	}
}

@media (max-width: 480px) {
	.deaths-hero {
		align-items: flex-start;
		padding: 17px;
	}

	.deaths-hero h1 {
		font-size: 25px;
	}

	.deaths-hero p {
		max-width: 230px;
	}

	.deaths-status {
		min-width: 76px;
		padding: 10px;
	}
}
