.fp {
	--fp-accent: #1f8a4c;
	--fp-accent-text: #ffffff;
	--fp-line: rgba(128, 128, 128, 0.3);
	--fp-soft: rgba(128, 128, 128, 0.09);
	--fp-soft-strong: rgba(128, 128, 128, 0.16);
	--fp-live: #d93a2f;
	--fp-warn: #c77c00;
	--fp-radius: 8px;
	--fp-gap: 12px;
	margin: 0 0 20px;
}

.fp *,
.fp *::before,
.fp *::after {
	box-sizing: border-box;
}

.fp a {
	text-decoration: none;
}

.fp a:hover,
.fp a:focus-visible {
	text-decoration: underline;
}

.fp .button1,
.fp .button2 {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid var(--fp-line);
	border-radius: 6px;
	background: var(--fp-soft);
	color: inherit;
	font: inherit;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
}

.fp .button1 {
	border-color: var(--fp-accent);
	background: var(--fp-accent);
	color: var(--fp-accent-text);
}

.fp .button1:hover,
.fp .button1:focus-visible {
	filter: brightness(1.08);
	text-decoration: none;
}

.fp .button2:hover,
.fp .button2:focus-visible {
	background: var(--fp-soft-strong);
	text-decoration: none;
}

.fp-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.fp-muted {
	opacity: 0.7;
}

.fp-lead {
	margin: 0 0 var(--fp-gap);
	font-size: 1.1em;
}

.fp-note {
	margin: 18px 0 0;
	font-size: 0.9em;
	opacity: 0.75;
}

.fp-header {
	margin: 0 0 var(--fp-gap);
}

.fp-title {
	margin: 0;
	font-size: 1.7em;
	line-height: 1.2;
}

.fp-subtitle {
	margin: 4px 0 10px;
	opacity: 0.8;
}

.fp-tabs,
.fp-subtabs {
	display: flex;
	gap: 4px;
	overflow-x: auto;
	border-bottom: 2px solid var(--fp-line);
	scrollbar-width: thin;
}

.fp-subtabs {
	margin: 0 0 var(--fp-gap);
}

.fp-tab,
.fp-subtab {
	flex: 0 0 auto;
	padding: 8px 14px;
	margin-bottom: -2px;
	border-bottom: 2px solid transparent;
	font-weight: 600;
	white-space: nowrap;
}

.fp-tab.is-active,
.fp-subtab.is-active {
	border-bottom-color: var(--fp-accent);
	color: var(--fp-accent);
}

.fp-tab:focus-visible,
.fp-subtab:focus-visible,
.fp-step:focus-visible,
.fp-goal:focus-visible {
	outline: 2px solid var(--fp-accent);
	outline-offset: 2px;
}

.fp-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: var(--fp-gap) 0;
	padding: 10px 14px;
	border: 1px solid var(--fp-line);
	border-left: 4px solid var(--fp-accent);
	border-radius: var(--fp-radius);
	background: var(--fp-soft);
}

.fp-banner p {
	margin: 0;
}

.fp-banner-muted {
	border-left-color: var(--fp-line);
}

.fp-chip {
	display: inline-block;
	padding: 1px 8px;
	border: 1px solid var(--fp-line);
	border-radius: 999px;
	font-size: 0.8em;
	line-height: 1.6;
	background: var(--fp-soft);
}

.fp-chip-done {
	border-color: var(--fp-accent);
	color: var(--fp-accent);
}

.fp-chip-warn {
	border-color: var(--fp-warn);
	color: var(--fp-warn);
}

.fp-grid {
	display: grid;
	gap: var(--fp-gap);
}

.fp-grid-cards {
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.fp-grid-two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fp-card,
.fp-section {
	min-width: 0;
}

.fp-card {
	padding: 14px;
	border: 1px solid var(--fp-line);
	border-radius: var(--fp-radius);
	background: var(--fp-soft);
}

.fp-card-title,
.fp-section-title {
	margin: 0 0 8px;
	font-size: 1.15em;
}

.fp-section {
	margin: 0 0 20px;
}

.fp-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin: 8px 0;
	padding: 0;
	list-style: none;
}

.fp-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0 0;
}

.fp-empty {
	padding: 16px;
	border: 1px dashed var(--fp-line);
	border-radius: var(--fp-radius);
	text-align: center;
	opacity: 0.85;
}

.fp-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 8px;
	margin: 0 0 var(--fp-gap);
}

.fp-stat {
	position: relative;
	padding: 10px 12px;
	border: 1px solid var(--fp-line);
	border-radius: var(--fp-radius);
	background: var(--fp-soft);
	text-align: center;
}

.fp-stat-value {
	display: block;
	font-size: 1.7em;
	font-weight: 700;
	line-height: 1.1;
}

.fp-stat-label {
	display: block;
	font-size: 0.8em;
	opacity: 0.75;
}

.fp-stat .fp-delta {
	position: absolute;
	top: 6px;
	right: 8px;
}

.fp-matchlist {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fp-row,
.fp-match {
	border: 1px solid var(--fp-line);
	border-radius: var(--fp-radius);
	background: var(--fp-soft);
}

.fp-row {
	display: grid;
	grid-template-columns: 7.5em minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
}

.fp-row.is-live,
.fp-match.is-live {
	border-color: var(--fp-live);
}

.fp-row-when {
	display: flex;
	flex-direction: column;
	font-size: 0.85em;
}

.fp-row-teams {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 8px;
}

.fp-row-pred {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 5em;
	justify-content: flex-end;
}

.fp-team {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.fp-row .fp-team-home,
.fp-match .fp-team-home {
	justify-content: flex-end;
	text-align: right;
}

.fp-team-name {
	overflow: hidden;
	text-overflow: ellipsis;
	font-weight: 600;
}

.fp-badge {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	overflow: hidden;
	border-radius: 50%;
	background: #666666;
	color: #ffffff;
	font-size: 0.75em;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.fp-badge img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #ffffff;
}

.fp-badge-small {
	width: 24px;
	height: 24px;
	font-size: 0.6em;
}

.fp-badge-large {
	width: 64px;
	height: 64px;
	font-size: 1.1em;
}

.fp-score {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 4.4em;
	padding: 4px 10px;
	border-radius: var(--fp-radius);
	background: var(--fp-soft-strong);
	font-size: 1.15em;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: inherit;
}

.fp-score-pending {
	font-size: 0.9em;
	font-weight: 400;
	opacity: 0.7;
}

.fp-score-sep {
	opacity: 0.6;
}

.fp-status {
	font-weight: 600;
}

.fp-status-live,
.fp-status-paused {
	color: var(--fp-live);
}

.fp-status-postponed,
.fp-status-suspended,
.fp-status-cancelled {
	color: var(--fp-warn);
}

.fp-live-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--fp-live);
	animation: fp-pulse 1.6s ease-in-out infinite;
}

@keyframes fp-pulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.25;
	}
}

.fp-match {
	padding: 10px 12px;
}

.fp-match.is-locked {
	background: transparent;
}

.fp-match.is-void {
	opacity: 0.75;
}

.fp-match-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	margin: 0 0 6px;
	font-size: 0.85em;
}

.fp-match-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 10px;
}

.fp-entry {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.fp-stepper {
	display: inline-flex;
	align-items: center;
}

.fp-goal {
	width: 3.2em;
	height: 2.6em;
	padding: 2px;
	border: 1px solid var(--fp-line);
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font-size: 1.25em;
	font-weight: 700;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.fp-goal::-webkit-outer-spin-button,
.fp-goal::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.fp-js .fp-goal {
	width: 2.6em;
	margin: 0 4px;
}

.fp-step {
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid var(--fp-line);
	border-radius: 50%;
	background: var(--fp-soft);
	color: inherit;
	font-size: 1.2em;
	line-height: 1;
	cursor: pointer;
}

.fp-step:hover {
	background: var(--fp-soft-strong);
}

.fp-fixed,
.fp-pred {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.fp-match-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin: 8px 0 0;
	font-size: 0.9em;
}

.fp-joker {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}

.fp-joker-badge {
	color: var(--fp-warn);
	font-weight: 700;
}

.fp-save-state {
	min-height: 1.2em;
	opacity: 0.8;
}

.fp-save-state.is-saved {
	color: var(--fp-accent);
}

.fp-save-state.is-error {
	color: var(--fp-live);
}

.fp-countdown {
	font-variant-numeric: tabular-nums;
	opacity: 0.85;
}

.fp-points-chip {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--fp-soft-strong);
	font-weight: 700;
	font-size: 0.85em;
	white-space: nowrap;
}

.fp-kind-exact {
	background: var(--fp-accent);
	color: var(--fp-accent-text);
}

.fp-kind-diff {
	background: #2f7fc4;
	color: #ffffff;
}

.fp-kind-outcome {
	background: #8a6bc4;
	color: #ffffff;
}

.fp-kind-miss {
	background: var(--fp-soft-strong);
}

.fp-kind-void,
.fp-kind-none {
	background: transparent;
	border: 1px dashed var(--fp-line);
}

.fp-notices {
	margin: 0 0 var(--fp-gap);
}

.fp-notice {
	margin: 0 0 6px;
	padding: 8px 12px;
	border-left: 4px solid var(--fp-line);
	border-radius: 4px;
	background: var(--fp-soft);
}

.fp-notice-success {
	border-left-color: var(--fp-accent);
}

.fp-notice-error {
	border-left-color: var(--fp-live);
}

.fp-notice-warning {
	border-left-color: var(--fp-warn);
}

.fp-submit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin: 14px 0 0;
}

.fp-roundnav {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 var(--fp-gap);
}

.fp-roundnav-form {
	flex: 1 1 auto;
	min-width: 0;
}

.fp-roundnav-form select {
	display: none;
	width: 100%;
}

.fp-js .fp-roundnav-form select {
	display: block;
}

.fp-roundlinks {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fp-js .fp-roundlinks {
	display: none;
}

.fp-roundnav-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border: 1px solid var(--fp-line);
	border-radius: 50%;
	font-size: 1.4em;
	line-height: 1;
}

.fp-roundnav-step.is-disabled {
	opacity: 0.35;
}

.fp-roundinfo {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 16px;
	margin: 0 0 8px;
}

.fp-roundinfo .fp-section-title {
	margin: 0;
}

.fp-bonuslist {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fp-bonus {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	padding: 10px 12px;
	border: 1px solid var(--fp-line);
	border-radius: var(--fp-radius);
	background: var(--fp-soft);
}

.fp-bonus-text {
	flex: 1 1 14em;
	font-weight: 600;
}

.fp-bonus-input {
	min-width: 12em;
}

.fp-table {
	width: 100%;
	border-collapse: collapse;
}

.fp-table th,
.fp-table td {
	padding: 7px 8px;
	border-bottom: 1px solid var(--fp-line);
	text-align: left;
	vertical-align: middle;
}

.fp-table th {
	font-size: 0.8em;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	opacity: 0.8;
}

.fp-table .fp-num {
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.fp-tablewrap {
	overflow-x: auto;
}

.fp-table tr.is-me td {
	background: rgba(31, 138, 76, 0.14);
	font-weight: 600;
}

.fp-sticky-me td {
	position: sticky;
	bottom: 0;
	border-top: 2px solid var(--fp-accent);
	background: rgba(31, 138, 76, 0.22);
}

.fp-rank {
	display: inline-block;
	min-width: 1.8em;
	font-weight: 700;
	text-align: center;
}

.fp-delta {
	font-size: 0.8em;
	font-weight: 700;
	white-space: nowrap;
}

.fp-up {
	color: var(--fp-accent);
}

.fp-down {
	color: var(--fp-live);
}

.fp-same {
	opacity: 0.4;
}

.fp-user {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.fp-avatar {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
}

.fp-avatar-initial {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--fp-soft-strong);
	font-size: 0.8em;
	font-weight: 700;
}

.fp-formchips {
	display: inline-flex;
	gap: 3px;
}

.fp-chipform {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	border-radius: 3px;
	background: var(--fp-soft-strong);
	color: #ffffff;
	font-size: 0.6em;
	font-weight: 700;
}

.fp-form-W {
	background: var(--fp-accent);
}

.fp-form-D {
	background: #8c8c8c;
}

.fp-form-L {
	background: var(--fp-live);
}

.fp-chipform.fp-kind-exact {
	background: var(--fp-accent);
}

.fp-chipform.fp-kind-diff {
	background: #2f7fc4;
}

.fp-chipform.fp-kind-outcome {
	background: #8a6bc4;
}

.fp-chipform.fp-kind-miss {
	background: var(--fp-soft-strong);
}

.fp-chipform.fp-kind-void,
.fp-chipform.fp-kind-none {
	background: transparent;
	border: 1px dashed var(--fp-line);
}

.fp-toplist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fp-toplist li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 4px;
	border-bottom: 1px solid var(--fp-line);
}

.fp-toplist li.is-me {
	background: rgba(31, 138, 76, 0.14);
	font-weight: 600;
}

.fp-toplist .fp-user {
	flex: 1 1 auto;
}

.fp-points {
	font-weight: 700;
}

.fp-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 14px;
	margin: 0 0 var(--fp-gap);
	padding: 18px 14px;
	border: 1px solid var(--fp-line);
	border-radius: var(--fp-radius);
	background: var(--fp-soft);
	text-align: center;
}

.fp-hero.is-live {
	border-color: var(--fp-live);
}

.fp-hero-team {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.fp-bigscore {
	font-size: 2.6em;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.fp-league-hero {
	grid-template-columns: minmax(0, 1fr) auto;
	text-align: left;
}

.fp-codebox {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}

.fp-code-value {
	padding: 4px 10px;
	border: 1px solid var(--fp-line);
	border-radius: 6px;
	background: var(--fp-soft-strong);
	font-size: 1.3em;
	letter-spacing: 0.12em;
}

.fp-code {
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.fp-kickform {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 12px 0;
}

.fp-distribution {
	display: flex;
	height: 16px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--fp-soft-strong);
}

.fp-dist {
	display: block;
	min-width: 0;
}

.fp-dist-home {
	background: #2f7fc4;
}

.fp-dist-draw {
	background: #8c8c8c;
}

.fp-dist-away {
	background: #d28a1f;
}

.fp-dist-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.fp-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.fp-subhead {
	margin: 14px 0 6px;
}

.fp-common,
.fp-breakdown,
.fp-ruleslist {
	margin: 0 0 12px;
	padding-left: 1.3em;
}

.fp-rules .fp-section-title {
	margin-top: 18px;
}

.fp-scope {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 var(--fp-gap);
}

.fp-pagination {
	margin: 10px 0 0;
}

.fp-index {
	margin: 0 0 12px;
	padding: 10px 14px;
	border: 1px solid var(--fp-line);
	border-left: 4px solid var(--fp-accent);
	border-radius: var(--fp-radius);
	background: var(--fp-soft);
}

.fp-index-head {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	margin: 0 0 6px;
}

.fp-index-matches {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 4px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fp-index-matches li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 10px;
}

.fp-index-teams {
	font-weight: 600;
}

.fp-index-foot {
	margin: 8px 0 0;
}

.fp-nav-icon {
	vertical-align: -3px;
	margin-right: 4px;
}

.fp-nav-live {
	margin-left: 6px;
	padding: 0 6px;
	border-radius: 4px;
	background: var(--fp-live, #d93a2f);
	color: #ffffff;
	font-size: 0.75em;
	font-weight: 700;
	letter-spacing: 0.04em;
}

@media (max-width: 700px) {
	.fp-grid-two,
	.fp-hero,
	.fp-league-hero {
		grid-template-columns: minmax(0, 1fr);
	}

	.fp-row {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.fp-row-when {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 2px 10px;
		grid-column: 1 / -1;
	}

	.fp-row-pred {
		justify-content: flex-end;
	}

	.fp-hide-small {
		display: none;
	}

	.fp-match-body {
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		gap: 6px;
	}

	.fp-team {
		flex-direction: column;
		gap: 4px;
		text-align: center;
	}

	.fp-row .fp-team,
	.fp-row .fp-team-home {
		flex-direction: row;
	}

	.fp-match .fp-team-home,
	.fp-match .fp-team-away {
		justify-content: center;
		text-align: center;
	}

	.fp-team-name {
		max-width: 100%;
		font-size: 0.85em;
	}

	.fp-title {
		font-size: 1.35em;
	}

	.fp-bigscore {
		font-size: 2.1em;
	}
}

@media (max-width: 420px) {
	.fp-goal {
		width: 2.4em;
	}

	.fp-js .fp-goal {
		width: 2.2em;
		margin: 0 2px;
	}

	.fp-step {
		width: 30px;
		height: 30px;
	}

	.fp-row-teams {
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		gap: 4px;
	}

	.fp-row .fp-team-name {
		font-size: 0.8em;
	}

	.fp-score {
		min-width: 3.6em;
		padding: 2px 6px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fp-live-dot {
		animation: none;
	}

	.fp * {
		scroll-behavior: auto;
		transition: none;
	}
}
