.ml2d {
	width: 100%;
}

.ml2d__pitch {
	position: relative;
	overflow: hidden;
	aspect-ratio: 105 / 68;
	min-height: 360px;
	border: 2px solid rgba(232, 246, 218, 0.78);
	border-radius: 8px;
	background:
		linear-gradient(90deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 12.5%),
		linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.16)),
		#377b2b;
	box-shadow: inset 0 0 38px rgba(0, 0, 0, 0.35);
}

.ml2d__stripe {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 12.5%;
	background: rgba(255, 255, 255, 0.045);
}

.ml2d__stripe--1 { left: 12.5%; }
.ml2d__stripe--2 { left: 37.5%; }
.ml2d__stripe--3 { left: 62.5%; }
.ml2d__stripe--4 { left: 87.5%; }

.ml2d__line,
.ml2d__circle,
.ml2d__box,
.ml2d__six,
.ml2d__goal {
	position: absolute;
	pointer-events: none;
	border-color: rgba(232, 246, 218, 0.78);
}

.ml2d__line--half {
	top: 0;
	bottom: 0;
	left: 50%;
	width: 2px;
	background: rgba(232, 246, 218, 0.72);
}

.ml2d__circle--center {
	left: 50%;
	top: 50%;
	width: 18%;
	aspect-ratio: 1;
	border: 2px solid rgba(232, 246, 218, 0.72);
	border-radius: 50%;
	transform: translate(-50%, -50%);
}

.ml2d__circle--center::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: rgba(232, 246, 218, 0.72);
	transform: translate(-50%, -50%);
}

.ml2d__box {
	top: 22%;
	width: 13%;
	height: 56%;
	border: 2px solid rgba(232, 246, 218, 0.72);
}

.ml2d__box--left {
	left: -2px;
	border-left: 0;
}

.ml2d__box--right {
	right: -2px;
	border-right: 0;
}

.ml2d__six {
	top: 35%;
	width: 5%;
	height: 30%;
	border: 2px solid rgba(232, 246, 218, 0.72);
}

.ml2d__six--left {
	left: -2px;
	border-left: 0;
}

.ml2d__six--right {
	right: -2px;
	border-right: 0;
}

.ml2d__goal {
	top: 43%;
	width: 1.3%;
	height: 14%;
	border: 2px solid rgba(232, 246, 218, 0.62);
	background: repeating-linear-gradient(90deg, rgba(255,255,255,0.18) 0 1px, transparent 1px 4px);
}

.ml2d__goal--left { left: -1.3%; }
.ml2d__goal--right { right: -1.3%; }

.ml2d__players,
.ml2d__ball {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
}

.ml2d__player {
	position: absolute;
	left: 50%;
	top: 50%;
	width: clamp(22px, 2.6vw, 32px);
	height: clamp(22px, 2.6vw, 32px);
	border: 2px solid rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	display: grid;
	place-items: center;
	transform: translate(-50%, -50%);
	background: var(--team-color, #c62828);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	text-shadow: 0 1px 2px rgba(0,0,0,0.45);
	box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.ml2d__player--guest {
	--team-color: var(--ml2d-guest);
}

.ml2d__player--home {
	--team-color: var(--ml2d-home);
}

.ml2d__player.is-inactive {
	opacity: 0.45;
}

.ml2d__ball {
	width: 13px;
	height: 13px;
	right: auto;
	bottom: auto;
	border-radius: 50%;
	background: #fff;
	border: 1px solid rgba(0,0,0,0.35);
	transform: translate(-50%, -50%);
	box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

@media (max-width: 760px) {
	.ml2d__pitch {
		min-height: 250px;
	}
}
