* {
	box-sizing: border-box;
	letter-spacing: 0;
}

html {
	background: #07110a;
	color-scheme: dark;
	overflow-x: clip;
}

body {
	margin: 0;
	min-width: 300px;
	overflow-x: clip;
	background: #07110a;
	color: #f2fff5;
	font-family: "Open Sans", Arial, ui-sans-serif, system-ui, sans-serif;
	font-size: 12px;
}

.landing-body {
	background: #ffffff;
	color: #07110a;
}

.landing-body .page {
	min-height: 100vh;
	background: #ffffff;
}

.page {
	width: 100%;
	max-width: 1680px;
	margin: 0 auto;
	padding: 4px;
}

.topbar {
	position: relative;
	isolation: isolate;
	margin: -4px -4px 0;
	padding: 0 0 0 6px;
	background: transparent;
}

.topbar::before,
.league-nav::before {
	position: absolute;
	z-index: -1;
	top: 0;
	left: 50%;
	width: 100vw;
	height: 100%;
	content: "";
	background: #ffffff;
	transform: translateX(-50%);
}

.topbar-main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 47px;
	padding-top: 4px;
	padding-right: 6px;
}

.landing-main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 92px;
	padding-right: 6px;
}

.landing-form-slot {
	min-width: 0;
}

.landing-form-slot .add-league-form {
	margin: 0;
	padding-top: 7px;
}

.landing-topbar .title-block {
	margin-right: auto;
	text-align: left;
}

h1 {
	margin: 0;
	color: #07110a;
	font-size: 20px;
	font-weight: 850;
	line-height: 1.1;
	overflow-wrap: break-word;
}

.title-block {
	min-width: max-content;
}

.league-nav {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: stretch;
	margin: 0 -4px;
	padding-left: 6px;
	background: transparent;
	min-width: 0;
	overflow: visible;
}

.landing-nav {
	display: none;
}

.league-tab-list {
	display: flex;
	min-width: 0;
	overflow: hidden;
}

.league-tab {
	display: block;
	align-self: stretch;
	max-width: 20ch;
	padding: 7px 10px 8px;
	color: #315b3a;
	font-size: 16.25px;
	font-weight: 800;
	line-height: 1.1;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
}

.league-tab-active {
	background: #07110a;
	color: #ffffff;
	font-weight: 850;
}

.league-tab-inactive {
	font-weight: 700;
}

.league-tab-inactive:hover,
.league-tab-inactive:focus-visible {
	background: #e5eee6;
	color: #07110a;
}

.league-tab:focus-visible,
.add-league-toggle:focus-visible,
.add-league-submit:focus-visible,
.add-league-help:focus-visible,
.add-league-form input:focus-visible {
	outline: 3px solid #d18b00;
	outline-offset: 2px;
}

.add-league-control {
	min-width: max-content;
	padding: 0;
}

.add-league-toggle {
	min-height: 39px;
	padding: 8px 13px;
	border: 0;
	background: #07110a;
	color: #ffffff;
	font: inherit;
	font-size: 15px;
	font-weight: 900;
	line-height: 1.1;
	cursor: pointer;
}

.add-league-toggle:hover {
	background: #315b3a;
}

.add-league-panel {
	margin: 0 0 0 -6px;
	padding: 17px 6px 17px 6px;
	background: #ffffff;
	color: #07110a;
}

.add-league-form {
	max-width: 520px;
	margin: 0 0 0 auto;
}

.add-league-label-row {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 9px;
	margin-bottom: 7px;
	text-align: right;
}

.add-league-form label {
	font-size: 12px;
	font-weight: 800;
}

.add-league-fields {
	display: grid;
	grid-template-columns: minmax(180px, 360px) auto;
	gap: 8px;
	align-items: stretch;
}

.add-league-form input {
	min-width: 0;
	min-height: 38px;
	padding: 8px 10px;
	border: 2px solid #07110a;
	border-radius: 0;
	background: #ffffff;
	color: #07110a;
	font: inherit;
	font-size: 13px;
}

.add-league-form input::placeholder {
	color: #a9b8ac;
	text-align: right;
}

.add-league-submit,
.add-league-help {
	min-height: 38px;
	border: 0;
	border-radius: 0;
	font: inherit;
	font-weight: 900;
	cursor: pointer;
}

.add-league-submit {
	padding: 8px 13px;
	background: #07110a;
	color: #ffffff;
	font-size: 11px;
	white-space: nowrap;
}

.add-league-submit:hover:not(:disabled) {
	background: #315b3a;
}

.add-league-submit:disabled {
	opacity: 0.58;
	cursor: wait;
}

.add-league-help {
	min-height: 30px;
	padding: 4px 7px;
	background: #dfeae1;
	color: #07110a;
	font-size: 13px;
	white-space: nowrap;
}

.add-league-help span {
	font-size: 10px;
	font-weight: 900;
}

.add-league-status {
	min-height: 1.2em;
	margin: 8px 0 0;
	font-size: 11px;
	font-weight: 700;
}

.add-league-status.is-loading {
	color: #315b3a;
}

.add-league-status.is-error {
	color: #9c2f23;
}

.league-help {
	max-width: 62ch;
	margin: 12px 0 0 auto;
	padding: 0;
	color: #07110a;
	background: transparent;
	font-size: 11px;
	line-height: 1.5;
	text-align: right;
}

.league-help strong {
	display: block;
	margin-bottom: 4px;
	font-size: 12px;
}

.league-help p {
	margin: 0;
}

.event-line {
	margin-top: 2px;
	color: #a8b8aa;
	font-size: 10px;
	font-weight: 650;
	line-height: 1.1;
	overflow-wrap: anywhere;
}

.teams-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px;
	align-items: start;
}

.team-card {
	position: relative;
	min-width: 0;
	background: #0e1711;
}

.team-head {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) minmax(54px, auto);
	align-items: center;
	gap: 3px;
	min-width: 0;
	min-height: 42px;
	padding: 4px;
	background: #082313;
}

.rank-cell {
	display: inline-grid;
	grid-template-columns: 1.25em 0.7em;
	align-items: center;
	justify-content: start;
	column-gap: 0.5em;
	width: 100%;
	padding-left: 1px;
	min-width: 0;
	color: #e2f3e5;
	line-height: 1;
}

.rank-number {
	justify-self: end;
	font-size: 12px;
	font-weight: 900;
	text-align: center;
}

.rank-movement {
	justify-self: start;
	width: 0;
	height: 0;
	font-size: 11px;
	line-height: 1;
}

.rank-movement[data-direction="up"] {
	border-right: 0.34em solid transparent;
	border-bottom: 0.58em solid #84e894;
	border-left: 0.34em solid transparent;
}

.rank-movement[data-direction="down"] {
	border-top: 0.58em solid #ff8f7b;
	border-right: 0.34em solid transparent;
	border-left: 0.34em solid transparent;
}

.team-copy {
	min-width: 0;
}

.team-copy h2 {
	margin: 0;
	color: #ffffff;
	font-size: 12.5px;
	font-weight: 850;
	line-height: 1.05;
	overflow-wrap: anywhere;
}

.team-copy p {
	margin: 2px 0 0;
	color: #a9b8ac;
	font-size: 9px;
	font-weight: 750;
	line-height: 1.05;
	overflow-wrap: anywhere;
}

.team-meta {
	display: grid;
	justify-items: end;
	align-content: center;
	min-width: 0;
}

.chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 13px;
	padding: 1px 4px;
	background: #f7d94b;
	color: #161306;
	font-size: 8px;
	font-weight: 900;
	line-height: 1;
}

.chip-float {
	position: absolute;
	top: 3px;
	right: 5px;
	z-index: 5;
}

.points-stack {
	color: #9fac9f;
	font-size: 8px;
	font-weight: 900;
	line-height: 1.05;
	text-align: right;
	white-space: nowrap;
}

.event-points strong {
	color: #ffffff;
	font-size: 14px;
	font-weight: 950;
	line-height: 1;
}

.total-points,
.total-points strong,
.total-points span {
	color: #a9b8ac;
}

.total-points strong {
	font-size: 11px;
	font-weight: 900;
	line-height: 1;
}

.total-points span {
	font-size: 7px;
}

.pitch-shell {
	position: relative;
	min-width: 0;
	padding: 0 3px 3px;
}

.pitch {
	display: grid;
	grid-template-rows: repeat(4, minmax(0, 1fr));
	gap: 2px;
	min-width: 0;
	height: 252px;
	padding: 5px 3px;
	background: #0b803a;
}

.pitch-line {
	display: grid;
	grid-template-columns: repeat(var(--count), minmax(0, 1fr));
	align-items: center;
	justify-items: center;
	gap: 2px;
	width: min(100%, calc(var(--count) * 43px));
	min-width: 0;
	margin: 0 auto;
}

.pick {
	display: grid;
	grid-template-rows: 14px 48px;
	justify-items: stretch;
	align-items: end;
	width: 100%;
	max-width: 43px;
	min-width: 0;
}

.pick-marker {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 14px;
	overflow: visible;
	color: #ffe768;
	font-size: 12px;
	font-weight: 950;
	line-height: 1;
	text-align: center;
}

.captain-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: #000000;
	color: #ffffff;
	font-size: 9px;
	font-weight: 950;
	line-height: 1;
	text-transform: uppercase;
	transform: translateY(7px);
}

.shirt {
	position: relative;
	display: grid;
	grid-template-rows: minmax(0, 1fr) 13px;
	align-items: center;
	min-width: 0;
	height: 48px;
	padding: 5px 2px 2px;
	isolation: isolate;
}

.shirt::before {
	position: absolute;
	z-index: -1;
	inset: 0;
	content: "";
	border: 1px solid rgba(0, 0, 0, 0.44);
	background: var(--shirt-a);
	clip-path: polygon(23% 0, 77% 0, 100% 17%, 87% 39%, 82% 100%, 18% 100%, 13% 39%, 0 17%);
}

.shirt::after {
	position: absolute;
	top: 1px;
	left: 50%;
	width: 13px;
	height: 6px;
	content: "";
	border-radius: 0 0 8px 8px;
	background: rgba(0, 0, 0, 0.23);
	transform: translateX(-50%);
}

.player-name {
	z-index: 1;
	align-self: center;
	justify-self: center;
	display: -webkit-box;
	width: calc(100% - 3px);
	min-width: 0;
	max-height: calc(2.2em + 2px);
	padding: 1px;
	background: #000000;
	color: #ffffff;
	font-size: 9px;
	font-weight: 400;
	line-height: 9.1px;
	text-align: center;
	overflow-wrap: break-word;
	word-break: normal;
	text-wrap: balance;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.pick-points {
	z-index: 1;
	align-self: end;
	justify-self: center;
	min-width: 18px;
	height: 13px;
	padding: 0 2px;
	background: #f8fff8;
	color: #07100b;
	font-size: 10px;
	font-weight: 950;
	line-height: 13px;
	text-align: center;
}

.pick-points.is-empty {
	color: transparent;
}

.is-captain .pick-points {
	background: #ffe768;
}

.is-subbed-out .shirt {
	opacity: 0.58;
	filter: grayscale(0.55);
}

.is-active-bench .shirt::before {
	outline: 2px solid #ffe768;
	outline-offset: -2px;
}

.bench-wrap {
	min-width: 0;
	margin-top: 2px;
}

.bench {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	justify-items: center;
	gap: 2px;
	min-width: 0;
}

.bench .pick {
	grid-template-rows: 9px 40px;
	max-width: 39px;
}

.bench .pick-marker {
	height: 9px;
	font-size: 8px;
	line-height: 1;
}

.bench .shirt {
	height: 40px;
	padding: 4px 2px 2px;
	grid-template-rows: minmax(0, 1fr) 12px;
}

.bench .shirt::after {
	width: 11px;
	height: 5px;
}

.bench .pick-points {
	min-width: 15px;
	height: 10px;
	padding: 0 1px;
	font-size: 8px;
	line-height: 10px;
}

.no-picks {
	min-height: 294px;
	padding: 12px 8px;
	color: #d4e6d7;
	font-size: 10px;
	font-weight: 800;
	overflow-wrap: anywhere;
}

.picks-share {
	width: 100%;
	margin: 18px 0;
	padding: 0 1px;
}

.picks-share-card {
	display: block;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 12px;
	border: 3px dashed #78d98b;
	border-radius: 0;
	background: #07110a;
	color: #78d98b;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.picks-share-card:hover {
	border-color: #a6f2b3;
}

.picks-share-card:focus-visible {
	outline: 3px solid #ffe768;
	outline-offset: 3px;
}

.picks-share-capture {
	border: 0;
	outline: 0;
	box-shadow: none;
	cursor: default;
	padding: 0;
}

.picks-share-capture .picks-share-cta {
	color: #78d98b;
	font-size: 16.25px;
}

.picks-share-capture-header {
	width: 100%;
	padding: 8px 12px 9px;
	background: #ffffff;
	color: #07110a;
	font-size: 20px;
	font-weight: 850;
	line-height: 1;
	overflow-wrap: anywhere;
}

.picks-share-capture .picks-share-head {
	padding: 12px 12px 0;
}

.picks-share-capture .picks-share-lines {
	width: max-content;
	min-width: 100%;
	margin-right: 12px;
	margin-bottom: 12px;
	margin-left: 12px;
}

.picks-share-capture .picks-share-line,
.picks-share-capture .picks-share-detail {
	white-space: nowrap;
}

.picks-share-capture .picks-share-heading {
	font-size: 16.25px;
}

.picks-share-capture .picks-share-line {
	font-size: 15px;
}

.picks-share-lines {
	display: grid;
	gap: 3px;
	margin-top: 12px;
	min-width: 0;
}

.picks-share-line {
	display: flex;
	align-items: baseline;
	min-width: 0;
	margin: 0 -4px;
	padding: 3px 4px;
	color: #78d98b;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.25;
	overflow-wrap: normal;
	word-break: normal;
}

.picks-share-line:nth-child(odd) {
	background: rgba(120, 217, 139, 0.045);
}

.picks-share-manager {
	display: inline-flex;
	flex: 0 0 var(--manager-width);
	width: var(--manager-width);
	min-width: 0;
	color: #78d98b;
	overflow-wrap: normal;
}

.picks-share-detail {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: normal;
	word-break: normal;
}

.picks-share-manager-name {
	color: #ffffff;
}

.picks-share-chip {
	margin-right: 0.35em;
	color: #78d98b;
}

.picks-share-head {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.picks-share-heading {
	min-width: 0;
	color: #78d98b;
	font-size: 16.25px;
	font-weight: 850;
	line-height: 1.1;
	overflow-wrap: anywhere;
}

.picks-share-league {
	color: #ffffff;
}

.picks-share-gameweek {
	color: #78d98b;
}

.picks-share-cta {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex: 0 0 auto;
	gap: 5px;
	color: #78d98b;
	font-size: 16.25px;
	font-weight: 950;
	line-height: 1;
	text-transform: uppercase;
}

.share-icon {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.picks-share-cta-label {
	display: inline-block;
	min-width: 6.8em;
	text-align: left;
	transition: opacity 0.25s ease;
}

.picks-share-captain {
	margin-right: 0.45em;
	font-weight: 850;
}

.picks-share-transfers {
	font-weight: 500;
}

.picks-share-transfer {
	white-space: nowrap;
}

.picks-share-transfer-in {
	color: #78d98b;
}

.picks-share-transfer-out {
	color: #d98585;
}

.picks-share-transfer-raw {
	color: #d98585;
}

.picks-share-cta-label.is-fading {
	opacity: 0;
}

@media (min-width: 900px) {
	.topbar {
		margin: -5px -5px 0;
	}

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

	.page {
		padding: 5px;
	}

	.pitch {
		height: 292px;
	}

	.pitch-line {
		width: min(100%, calc(var(--count) * 50px));
	}

	.pick {
		grid-template-rows: 14px 52px;
		max-width: 50px;
	}

	.pick-marker {
		height: 14px;
		font-size: 13px;
		line-height: 1;
	}

	.captain-badge {
		width: 14px;
		height: 14px;
		font-size: 9.5px;
		transform: translateY(7px);
	}

	.shirt {
		height: 52px;
		grid-template-rows: minmax(0, 1fr) 14px;
	}

	.player-name {
		font-size: 11px;
		line-height: 11.1px;
	}

	.pick-points {
		height: 14px;
		font-size: 11px;
		line-height: 14px;
	}

	.bench .pick {
		max-width: 44px;
	}

	.picks-share {
		margin: 18px 0;
	}
}

@media (max-width: 620px) {
	.topbar {
		padding-left: 5px;
	}

	.topbar-main {
		min-height: 45px;
		gap: 6px;
	}

	.title-block {
		min-width: 0;
	}

	.title-block h1 {
		font-size: 18px;
	}

	.add-league-panel {
		padding-top: 15px;
		padding-bottom: 15px;
	}

	.add-league-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	.add-league-submit {
		grid-column: 1;
		grid-row: 2;
	}

	.add-league-form {
		max-width: none;
	}

	.add-league-toggle {
		padding-right: 9px;
		padding-left: 9px;
		font-size: 13px;
	}

	.add-league-label-row {
		gap: 6px;
	}

	.add-league-help span {
		font-size: 9px;
	}
}

@media (max-width: 380px) {
	.page {
		padding: 3px;
	}

	.topbar {
		margin: -3px -3px 0;
		padding-left: 3px;
	}

	h1 {
		font-size: 18px;
	}

	.event-line {
		font-size: 9px;
	}

	.teams-grid {
		gap: 3px;
	}

	.team-head {
		grid-template-columns: 36px minmax(0, 1fr) minmax(48px, auto);
		gap: 2px;
		padding: 3px;
	}

	.rank-number {
		font-size: 11px;
	}

	.rank-movement {
		font-size: 10px;
	}

	.team-copy h2 {
		font-size: 10.8px;
	}

	.team-copy p {
		font-size: 8px;
	}

	.chip {
		min-height: 11px;
		padding: 1px 3px;
		font-size: 7px;
	}

	.points-stack {
		font-size: 7px;
	}

	.event-points strong {
		font-size: 12.5px;
	}

	.total-points strong {
		font-size: 10.5px;
	}

	.pitch-shell {
		padding: 0 2px 2px;
	}

	.pitch {
		height: 238px;
		padding: 4px 2px;
	}

	.pitch-line {
		width: min(100%, calc(var(--count) * 39px));
	}

	.pick {
		grid-template-rows: 11px 43px;
		max-width: 39px;
	}

	.pick-marker {
		height: 11px;
		font-size: 10px;
		line-height: 1;
	}

	.captain-badge {
		width: 11px;
		height: 11px;
		font-size: 7.5px;
		transform: translateY(6px);
	}

	.shirt {
		height: 43px;
		grid-template-rows: minmax(0, 1fr) 12px;
	}

	.player-name {
		font-size: 9px;
		line-height: 9.1px;
	}

	.pick-points {
		min-width: 16px;
		height: 12px;
		font-size: 9px;
		line-height: 12px;
	}

	.bench .pick {
		grid-template-rows: 7px 37px;
		max-width: 35px;
	}

	.bench .shirt {
		height: 37px;
	}

	.picks-share {
		margin-top: 6px;
	}

	.picks-share-card {
		padding: 8px 9px 10px;
	}

	.picks-share-line {
		font-size: 15px;
		line-height: 1.24;
	}

	.picks-share-cta {
		font-size: 16.25px;
	}

	.picks-share-heading {
		font-size: 16.25px;
	}
}

@media (min-width: 900px) {
	.picks-share {
		width: calc(50% - 2.5px);
	}
}
