:root {
	--gold: #f8bc1b;
	--dark: #2b3035;

	--ball-size: 120px;
	--ball-text: #111;

	--draw-gap: 40px;
}

/* global */
main {
	margin-top: 86px;
}

/* signin */
.form-signin {
	max-width: 320px;
}

/* ez2 */
.ez2hero {
	position: absolute;
	opacity: 10%;
}

.lotto-ball {
	background:
		radial-gradient(100% 100% at 30% 30%, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, 0) 40%),
		radial-gradient(100% 100% at 70% 75%, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, 0) 45%),
		var(--gold);
	border-radius: 50%;
	box-shadow: 0 10px 22px rgba(0, 0, 0, .45);
	color: var(--ball-text);
	cursor: pointer;

	font-weight: 800;
	font-size: 60px;

	width: var(--ball-size);
	height: var(--ball-size);
	position: relative;
	display: grid;
	align-content: center;
	place-items: center;
}

.number-list {
	width: 142px;
	height: 180px;
	overflow: auto;
	scroll-snap-type: y mandatory;
	border-radius: 71px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
	padding: 10px;
	margin: 0;
	border: var(--gold) solid 1px;

}

.number-list[role="list"] {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.number-list input {
	display: none;
}

.number-list.no-snap {
	scroll-snap-type: none !important;
}

.number-item {
	-webkit-user-select: none;
	user-select: none;
	min-width: 0;
	outline: none;
	scroll-snap-align: center;
}

/* keyboard focus style for accessibility */
.number-item:focus {
	box-shadow: 0 0 0 3px rgba(11, 116, 222, 0.18);
	border: 1px solid rgba(11, 116, 222, 0.18);
	border-radius: 50%;
}

/* optional: nice thin scrollbar for WebKit */
.number-list::-webkit-scrollbar {
	width: 10px;
}

.number-list::-webkit-scrollbar-track {
	background: transparent;
}

.lotto-wrap {
	max-width: 780px;
	margin: 20px auto;
	padding: 0 12px
}

.lotto-track {
	display: flex;
	gap: var(--draw-gap);
	justify-content: center;
	padding: 50px 20px;
	border-radius: 100px;
	background: linear-gradient(180deg, #0f1220 0%, #0a0d18 100%);
	min-height: calc(var(--ball-size) + 100px);
	box-shadow: inset 0 4px 20px rgba(0, 0, 0, .35);
}

.lotto-ball::after {
	content: attr(data-number);
	display: grid;
	place-items: center;
	border-radius: 50%;
}

.lotto-ball.rolling {
	animation: spin 600ms linear infinite, bob 700ms ease-in-out infinite alternate;
}

@keyframes spin {
	from {
		transform: rotate(0)
	}

	to {
		transform: rotate(1turn)
	}
}

@keyframes bob {
	from {
		translate: 0 -3px
	}

	to {
		translate: 0 3px
	}
}

.lotto-ball.pop {
	animation: pop .5s ease-out both
}

@keyframes pop {
	0% {
		transform: scale(1)
	}

	60% {
		transform: scale(1.2)
	}

	100% {
		transform: scale(1)
	}
}

.lotto-controls {
	margin: 14px auto 6px;
	text-align: center
}

.lotto-controls button {
	padding: 10px 14px;
	margin: 0 5px;
	border-radius: 999px;
	border: none;
	cursor: pointer;
	font: 700 14px/1 ui-sans-serif, system-ui;
	color: #fff;
	background: #31a24c;
}

/* footer */
footer {
	background-color: var(--dark);
	width: 100%;
}

footer div>a {
	color: #fff;
	font-size: 40px;
	flex: 1;
	list-style-type: none;
	text-align: center;
}

footer div>span {
	width: 8rem;
}

footer .big-button {
	background: var(--gold);
	border: #4d4d4d solid 10px;
	border-radius: 50%;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	color: var(--dark);
	height: 7rem;
	width: 7rem;
	transform: translateX(-50%);

	display: flex;
	justify-content: center;
	align-items: center;

	position: absolute;
	bottom: 3px;
	left: 50%;
}

@media (max-width: 768px) {
	.ez2hero {
		top: -100px;
		left: -120px
	}
}

@media (min-width: 768px) {
	.ez2hero {
		top: -80px;
		left: -100px
	}
}

@media (min-width: 992px) {
	.ez2hero {
		top: -80px;
		left: -100px
	}
}