*,
*::after,
*::before {
	margin: 0;
	padding: 0;
}

html {
	background: #212121;
	font-size: 62.5%;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;

	font: 1.6rem/1.5 Inter Variable, Inter, Source Sans Pro, Ubuntu, Segoe UI Variable, Segoe UI, system-ui, ui-sans-serif, Calibri, sans-serif;
}

nav {
	ul {
		display: flex;
		align-items: center;
		justify-content: space-around;
		flex-wrap: wrap;

		list-style: none;

		li {
			a {
				display: flex;
				align-items: center;
				gap: 0.8rem;

				padding: 2.4rem;

				color: #fff;
				text-decoration: none;
				transition: opacity 0.3s ease;

				&:not(.--active):not(:active):not(:hover) {
					opacity: 0.5;
				}

				.name {
					margin: 0 0.8rem;
				}

				img {
					height: 1.5em;
				}
			}
		}
	}
}

main {
	flex: 1;
}

.buy {
	margin-bottom: 4.8rem;
	padding: 2.4rem 6.4rem;
	color: #000;

	&.--primary {
		background: rgb(var(--background-rgb));
	}

	&.--secondary {
		background: rgba(var(--background-rgb), 0.85);
	}

	&.--ct {
		--background-rgb: 15, 176, 230;
	}

	&.--t {
		--background-rgb: 241, 186, 4;
	}

	header,
	header h2,
	header .equipment {
		display: flex;
		align-items: center;
	}

	header {
		justify-content: space-around;
		gap: 2.4rem;
		margin-bottom: 2.4rem;

		h2 {
			gap: 1.6rem;

			img {
				height: 1.5em;
			}
		}

		.equipment {
			gap: 0.8rem;

			.price {
				margin-right: 0.8rem;
				line-height: 1;
			}

			img {
				height: 1.25em;
				filter: url(#white-to-black-filter);
			}

			&.--main .price {
				font-size: 2.1rem;
				font-weight: 700;
			}
		}
	}

	.levels {
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: minmax(0, 1fr);
		gap: 6.4rem;
	}

	.levels .level {
		.number-and-pips {
			display: flex;
			align-items: center;
			gap: 1.2rem;

			padding: 0 3.2rem;
		}

		.number {
			min-width: 2ch;
			text-align: center;
		}

		.pips {
			display: flex;
			flex: 1;
			gap: 0.8rem;

			.pip {
				flex: 1;
				height: 0.4rem;

				background: rgba(0, 0, 0, 0.4);

				&.--filled {
					background: #000;
				}
			}
		}

		.required-money-current-round {
			display: flex;
			align-items: center;
			justify-content: center;
			gap: 2rem;

			margin: 0.8rem 0;
		}

		.required-money-main {
			font-size: 3.2rem;
		}

		.required-money-minimum {
			font-size: 2.1rem;
		}

		.required-money-following-round {
			text-align: center;
		}
	}
}

footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.6rem;

	a {
		padding: 2.4rem 1.6rem;

		color: #fff;
		text-decoration: none;
		transition: opacity 0.3s ease;
		font-size: 1.3rem;

		&:not(:active):not(:hover) {
			opacity: 0.5;
		}
	}
}

svg.filters {
	display: none;
}
