/* Shared styles for the server-rendered pages (Components/*.razor). */

@font-face {
	font-family: 'ShrapnelRunes';
	src: url('/ShrapnelRunes.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

html {
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

body {
	margin: 0;
	background: #000;
	color: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	padding: 1rem;
}

h1 {
	font-family: 'ShrapnelRunes', "Inter", system-ui, -apple-system, sans-serif;
	font-weight: normal;
	text-align: center;
	margin: 2rem 0 0.5rem;
	font-size: 3rem;
}

h1 a {
	color: inherit;
	text-decoration: none;
}

/* Page switcher under the title (Leaderboards | Recent scores). */
.site-nav {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	margin: 0 0 2rem;
	font-size: 1.25rem;
	font-weight: 600;
}

.site-nav a {
	color: #888;
	text-decoration: none;
}

.site-nav a.active {
	color: #fff;
}

a {
	color: #fff;
}

.container {
	max-width: 800px;
	margin: 0 auto;
}

.sequences {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.sequences a {
	padding: 0.4rem 0.8rem;
	border: 1px solid #444;
	text-decoration: none;
}

.sequences a.active {
	background: #fff;
	color: #000;
	font-weight: 600;
}

.table-wrapper {
	overflow-x: auto;
}

table {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

th, td {
	padding: 0.5rem;
	text-align: left;
	border-bottom: 1px solid #222;
	white-space: nowrap;
}

th {
	font-weight: 600;
	border-bottom-color: #444;
}

td.number, th.number {
	text-align: right;
}

/* Medal-tier scores: the in-game text textures clipped to the glyphs. */
.score-shrapnel, .score-sentinel {
	background-size: 100% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	font-weight: 800;
}

.score-shrapnel {
	background-image: url('/images/text_red.png');
}

.score-sentinel {
	background-image: url('/images/text_gold.png');
}

.enemy-icon {
	display: block;
	margin-left: auto;
	vertical-align: middle;
}

.player {
	white-space: normal;
	overflow-wrap: anywhere;
}

.summary, .empty {
	text-align: center;
	color: #aaa;
}

.pager {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1.5rem;
	margin: 1.5rem 0;
}

.pager .disabled {
	visibility: hidden;
}

@media (max-width: 600px) {
	.optional {
		display: none;
	}
}
