:root {
	--bg: #eff2ea;
	--card: rgba(255, 255, 255, 0.9);
	--card-strong: rgba(255, 255, 255, 0.98);
	--text: #12202a;
	--muted: #63717b;
	--line: rgba(18, 32, 42, 0.1);
	--accent: #0b6e4f;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: "Avenir Next", "Segoe UI", sans-serif;
	color: var(--text);
	background:
		radial-gradient(circle at top right, rgba(11, 110, 79, 0.18), transparent 20rem),
		linear-gradient(180deg, #f8faf5 0%, var(--bg) 100%);
}

.page {
	max-width: 980px;
	margin: 0 auto;
	padding: 32px 16px 56px;
}

.hero {
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: 28px;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 242, 232, 0.94)),
		#fff;
	box-shadow: 0 22px 48px rgba(18, 32, 42, 0.08);
}

.hero-top,
.team-hero,
.account-links,
.account-user,
.opponent,
.result-meta,
.result-main,
.site-footer {
	display: flex;
}

.hero-top {
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.back-link,
.account-link,
.venue-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 16px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--card-strong);
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
}

.back-link,
.account-link {
	color: var(--accent);
}

.account-links {
	gap: 10px;
	flex-wrap: wrap;
}

.account-user {
	align-items: center;
	gap: 10px;
	min-height: 42px;
	padding: 0 18px 0 12px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(226, 241, 235, 0.92));
}

.account-user-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 999px;
	background: linear-gradient(135deg, #0b6e4f, #0e8d65);
	color: #fff;
	font-size: 0.7rem;
	line-height: 1;
}

.account-user-name {
	font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
	font-size: 1rem;
	font-weight: 700;
}

.account-link-strong {
	background: linear-gradient(135deg, #0b6e4f, #0e8d65);
	border-color: transparent;
	color: #fff;
}

.team-hero {
	align-items: center;
	gap: 22px;
	margin-top: 24px;
}

.team-logo {
	width: 96px;
	height: 96px;
	object-fit: contain;
	flex: 0 0 auto;
}

.eyebrow {
	margin: 0;
	color: var(--accent);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

h1 {
	margin: 8px 0 0;
	font-size: clamp(2.3rem, 5vw, 4rem);
	line-height: 0.94;
	letter-spacing: -0.05em;
}

.subhead {
	margin: 14px 0 0;
	color: var(--muted);
	font-size: 1rem;
}

.results {
	margin-top: 22px;
}

.results-list {
	display: grid;
	gap: 14px;
}

.result-card,
.empty-state {
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: 24px;
	background: var(--card);
	backdrop-filter: blur(12px);
	box-shadow: 0 12px 28px rgba(18, 32, 42, 0.06);
}

.result-card {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr) 90px;
	align-items: center;
	gap: 16px;
}

.result-date {
	font-weight: 700;
	color: var(--muted);
}

.result-main {
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	min-width: 0;
}

.result-meta {
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.opponent {
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.opponent-logo {
	width: 48px;
	height: 48px;
	object-fit: contain;
	flex: 0 0 auto;
}

.opponent-name {
	font-size: 1.05rem;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.result-score {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 96px;
	padding: 10px 14px;
	border-radius: 999px;
	background: var(--card-strong);
	border: 1px solid var(--line);
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.result-outcome {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 74px;
	padding: 10px 14px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.outcome-win {
	background: rgba(11, 110, 79, 0.12);
	border-color: rgba(11, 110, 79, 0.18);
	color: #0b6e4f;
}

.outcome-draw {
	background: rgba(99, 113, 123, 0.12);
	border-color: rgba(99, 113, 123, 0.16);
	color: #51616b;
}

.outcome-loss {
	background: rgba(168, 62, 52, 0.12);
	border-color: rgba(168, 62, 52, 0.16);
	color: #9e372d;
}

.venue-badge {
	color: var(--text);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.empty-state {
	color: var(--muted);
	text-align: center;
}

.site-footer {
	gap: 14px;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 22px;
	font-weight: 700;
}

.site-footer a {
	color: var(--accent);
}

@media (max-width: 780px) {
	.hero-top,
	.team-hero,
	.result-main {
		flex-direction: column;
		align-items: flex-start;
	}

	.result-card {
		grid-template-columns: 1fr;
	}

	.team-logo,
	.opponent-logo {
		align-self: center;
	}
}
