* {
	box-sizing: border-box;
}

html,
body {
	min-height: 100%;
	margin: 0;
}

body {
	display: flex;
	min-height: 100vh;
	flex-direction: column;
	background: #eef1f4;
	color: #26313b;
	font-family: Arial, Helvetica, sans-serif;
}

[hidden] {
	display: none !important;
}

.page-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	background: #343a40;
	color: #fff;
	font-weight: 700;
}

.brand-link {
	color: #fff;
	font-size: 21px;
	text-decoration: none;
}

.page-main {
	display: flex;
	width: 100%;
	max-width: 980px;
	flex: 1;
	align-items: flex-start;
	justify-content: center;
	margin: 0 auto;
	padding: 32px 16px;
}

.card {
	width: 100%;
	padding: 28px;
	border: 1px solid #c7ced4;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(38, 49, 59, 0.12);
}

.login-card {
	max-width: 460px;
}

h1 {
	margin: 0 0 8px;
	font-size: 27px;
}

.intro-text,
.account-name,
.matchday-status,
.secondary-action {
	color: #52606d;
	line-height: 1.5;
}

.intro-text {
	margin: 0 0 24px;
}

label {
	display: block;
	margin-bottom: 7px;
	font-weight: 700;
}

input,
select,
button {
	font: inherit;
}

input,
select {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #8a959e;
	border-radius: 6px;
	background: #fff;
	color: #26313b;
}

input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
	outline: 3px solid rgba(0, 91, 143, 0.3);
	outline-offset: 2px;
}

#login-form input {
	margin-bottom: 18px;
}

button {
	padding: 11px 18px;
	border: 1px solid #005b8f;
	border-radius: 6px;
	background: #005b8f;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

button:hover:not(:disabled) {
	border-color: #004369;
	background: #004369;
}

button:disabled {
	cursor: wait;
	opacity: 0.65;
}

.secondary-button {
	border-color: #59636c;
	background: #fff;
	color: #343a40;
}

.secondary-button:hover:not(:disabled) {
	border-color: #343a40;
	background: #edf0f2;
}

.secondary-action {
	margin: 20px 0 0;
	text-align: center;
}

a {
	color: #005b8f;
}

.message {
	margin: 18px 0 0;
	padding: 12px 14px;
	border: 1px solid #83909a;
	border-radius: 6px;
	background: #f2f5f7;
	line-height: 1.45;
}

.message.error {
	border-color: #b33a3a;
	background: #fff0f0;
	color: #8a2929;
}

.message.success {
	border-color: #2f7d49;
	background: #eaf6ee;
	color: #245f38;
}

.tips-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
}

.account-name {
	margin: 0;
}

.selector-grid {
	display: grid;
	grid-template-columns: minmax(150px, 1fr) minmax(130px, 1fr) auto;
	align-items: end;
	gap: 14px;
}

.matchday-status {
	margin: 20px 0 14px;
	font-weight: 700;
}

.matches {
	display: grid;
	gap: 12px;
}

.match-card {
	padding: 16px;
	border: 1px solid #c7ced4;
	border-radius: 7px;
	background: #fafbfc;
}

.match-meta {
	margin: 0 0 8px;
	color: #66727c;
	font-size: 14px;
}

.fixture {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
}

.score-inputs {
	display: flex;
	align-items: end;
	gap: 10px;
	margin-top: 14px;
}

.score-inputs label {
	margin: 0;
	font-size: 14px;
}

.score-inputs input {
	width: 82px;
	margin-top: 6px;
	text-align: center;
}

.score-separator {
	padding-bottom: 11px;
	font-weight: 700;
}

.result-lines {
	display: grid;
	gap: 4px;
	margin-top: 12px;
}

.result-lines p {
	margin: 0;
	line-height: 1.45;
}

.submit-tips-button {
	width: 100%;
	margin-top: 20px;
}

.empty-state,
.loading-state {
	margin: 0;
	padding: 24px 10px;
	color: #52606d;
	text-align: center;
}

.page-footer {
	padding: 18px 16px;
	background: #343a40;
	text-align: center;
}

.page-footer a {
	display: inline-block;
	margin: 4px 10px;
	color: #fff;
}

@media (max-width: 620px) {
	.page-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
	}

	.page-main {
		padding: 18px 10px;
	}

	.card {
		padding: 20px 16px;
	}

	.tips-heading,
	.selector-grid {
		align-items: stretch;
		grid-template-columns: 1fr;
	}

	.tips-heading {
		display: grid;
	}

	.score-inputs {
		align-items: center;
	}

	.score-inputs label {
		flex: 1;
	}

	.score-inputs input {
		width: 100%;
	}

	.score-separator {
		padding: 24px 0 0;
	}
}
