:root {
	font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
	color: #34392e;
	background: #fff;
	font-synthesis: none;
	--green: #52743c;
	--muted: #85897f;
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
	min-width: 320px;
	min-height: 620px;
	height: 100svh;
	position: relative;
}
button,
a {
	-webkit-tap-highlight-color: transparent;
}
button {
	font: inherit;
	cursor: pointer;
}
a {
	color: inherit;
	text-decoration: none;
}
button:focus-visible,
a:focus-visible {
	outline: 2px solid var(--green);
	outline-offset: 5px;
}
.header {
	position: absolute;
	inset: 30px 38px auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	z-index: 2;
}
.wordmark {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 8px;
	line-height: 1.9;
	letter-spacing: 1.8px;
}
.wordmark b {
	font-size: 16px;
	letter-spacing: 3px;
	font-weight: 500;
}
.ball-mark {
	font-size: 28px;
	filter: grayscale(1);
}
.text-button {
	background: transparent;
	border: 0;
	padding: 7px 0;
	font-size: 10px;
	color: var(--muted);
}
.text-button:hover,
a:hover {
	color: var(--green);
}
.stats {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 27px;
	align-items: center;
}
.stats > div {
	display: grid;
	gap: 7px;
	text-align: center;
	min-width: 38px;
}
.stats strong {
	font-size: 23px;
	font-weight: 400;
	font-variant-numeric: tabular-nums;
}
.stats span {
	font-size: 8px;
	letter-spacing: 1.5px;
	color: var(--muted);
}
.stats i {
	height: 23px;
	width: 1px;
	background: #eceee6;
}
#goals {
	color: var(--green);
}
#stage {
	position: absolute;
	inset: 90px 0 210px;
	display: grid;
	place-items: center;
	overflow: hidden;
}
canvas {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: block;
	image-rendering: pixelated;
	cursor: crosshair;
	touch-action: none;
	outline: none;
}
.shot-panel {
	position: absolute;
	bottom: 76px;
	width: 282px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
}
#feedback {
	margin: 0 0 21px;
	height: 14px;
	font-size: 10px;
	color: var(--muted);
	text-align: center;
}
#feedback.goal {
	color: var(--green);
}
.shot-types {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin-bottom: 21px;
}
.shot-types button {
	display: flex;
	align-items: center;
	gap: 18px;
	border: 1px solid transparent;
	background: none;
	padding: 8px 11px;
	font-size: 10px;
	color: var(--muted);
	border-radius: 3px;
}
.shot-types svg {
	display: block;
	width: 16px;
	height: 12px;
	overflow: visible;
}
.shot-types button[aria-pressed='true'] {
	background: #f1f5ed;
	border-color: #dae3d2;
	color: #496636;
}
.shot-types button:hover {
	color: var(--green);
}
.shot-types button:disabled {
	cursor: default;
}
.shot-types > kbd {
	margin-left: 6px;
}
.power-label {
	display: flex;
	justify-content: space-between;
	font-size: 8px;
	color: var(--muted);
	letter-spacing: 1.3px;
}
#power-value {
	color: #59604e;
	font-variant-numeric: tabular-nums;
}
#power-meter {
	height: 5px;
	background: #ecefe7;
	position: relative;
	margin-top: 9px;
	overflow: hidden;
}
#power-fill {
	height: 100%;
	width: 0;
	background: var(--green);
}
#power-meter > i {
	position: absolute;
	top: 0;
	height: 100%;
	width: 2px;
	background: #fff;
}
#power-meter > i:nth-of-type(1) {
	left: 25%;
}
#power-meter > i:nth-of-type(2) {
	left: 50%;
}
#power-meter > i:nth-of-type(3) {
	left: 75%;
}
kbd {
	font: inherit;
	font-size: 8px;
	color: #777d70;
	padding: 3px 5px;
	border: 1px solid #e0e5da;
	border-radius: 3px;
	background: white;
	white-space: nowrap;
}
#shoot {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 13px 0 0;
	border: 0;
	background: none;
	color: var(--muted);
	font-size: 9px;
	user-select: none;
	touch-action: none;
}
body.charging #shoot kbd {
	color: var(--green);
	border-color: var(--green);
}
#shoot:disabled {
	cursor: default;
}
.footer {
	position: absolute;
	inset: auto 38px 25px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 20px;
	align-items: center;
	color: var(--muted);
	font-size: 9px;
}
#controls,
.credits {
	display: flex;
	align-items: center;
	gap: 24px;
}
#controls > span {
	display: flex;
	gap: 7px;
	align-items: center;
}
.credits button {
	font-size: 9px;
}
.credits {
	flex-wrap: wrap;
	justify-content: flex-end;
}
.menu {
	position: relative;
}
.menu fieldset {
	position: absolute;
	bottom: calc(100% + 10px);
	left: -12px;
	z-index: 3;
	width: max-content;
	min-width: 170px;
	margin: 0;
	padding: 6px 0;
	border: 1px solid #e0e5da;
	background: white;
	box-shadow: 0 10px 30px #2823151a;
}
.menu fieldset[hidden] {
	display: none;
}
.menu legend {
	position: absolute;
	top: -20px;
	left: 12px;
	padding: 0;
	font-size: 8px;
	letter-spacing: 1.6px;
	color: var(--green);
}
.menu label {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	font-size: 10px;
	color: #4c5244;
	cursor: pointer;
}
.pitch-button {
	color: var(--green);
}
.menu label:hover {
	background: #f6f8f2;
}
.menu input {
	accent-color: var(--green);
	margin: 0;
	width: 12px;
	height: 12px;
}
.menu input:focus-visible {
	outline: 2px solid var(--green);
	outline-offset: 2px;
}
.creator-credit {
	justify-self: center;
	white-space: nowrap;
}
.credits a {
	white-space: nowrap;
}
.mouse {
	width: 9px;
	height: 13px;
	border: 1px solid #a1a797;
	border-radius: 5px;
}
#callout {
	position: absolute;
	top: 25%;
	left: 50%;
	transform: translateX(-50%);
	pointer-events: none;
	font-size: 22px;
	letter-spacing: 4px;
	text-align: center;
	color: var(--green);
	background: #fffffff0;
	padding: 14px 20px;
	z-index: 3;
}
#callout small {
	display: block;
	font-size: 7px;
	letter-spacing: 1px;
	margin-top: 10px;
}
#pause-overlay {
	position: absolute;
	inset: 110px 0 235px;
	display: grid;
	place-content: center;
	gap: 20px;
	background: #ffffffc9;
	z-index: 4;
	text-align: center;
	font-size: 12px;
	letter-spacing: 2px;
}
#pause-overlay button {
	background: white;
	border: 1px solid #dce4d5;
	color: var(--green);
	padding: 12px 16px;
	font-size: 10px;
	letter-spacing: 0;
}
[hidden] {
	display: none !important;
}
dialog {
	width: min(460px, calc(100% - 32px));
	max-height: calc(100svh - 40px);
	padding: 30px;
	border: 1px solid #e1e6da;
	background: white;
	color: #34392e;
	box-shadow: 0 25px 100px #28312115;
}
dialog::backdrop {
	background: #fffc;
	backdrop-filter: blur(4px);
}
.dialog-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 8px;
	letter-spacing: 1px;
	color: var(--green);
}
dialog h1 {
	font:
		400 36px/1.15 Georgia,
		serif;
	margin: 25px 0 16px;
}
dialog p {
	font-size: 11px;
	line-height: 1.8;
	color: #7d8475;
}
dialog dl {
	margin: 25px 0;
}
dialog dl > div {
	border-top: 1px solid #edf0e8;
	padding: 15px 0;
}
dialog dt {
	color: var(--green);
	font-size: 9px;
	letter-spacing: 1px;
}
dialog dd {
	margin: 9px 0 0;
	font-size: 11px;
	line-height: 1.8;
}
.play-button {
	display: flex;
	justify-content: space-between;
	width: 100%;
	border: 0;
	margin-top: 23px;
	padding: 15px 16px;
	color: white;
	background: var(--green);
	font-size: 11px;
}
@media (max-width: 1000px) {
	.footer {
		grid-template-columns: 1fr 1fr;
		gap: 10px 20px;
	}
	.creator-credit {
		grid-column: 1 / -1;
		grid-row: 2;
	}
}
@media (max-width: 760px) {
	.header {
		inset: 22px 22px auto;
		flex-wrap: wrap;
	}
	.wordmark b {
		font-size: 14px;
	}
	.stats {
		position: static;
		transform: none;
		order: 3;
		width: 100%;
		justify-content: center;
		gap: 24px;
		margin-top: 12px;
	}
	#stage {
		inset: 145px 0 240px;
	}
	.shot-panel {
		bottom: 110px;
	}
	.footer {
		inset: auto 16px 16px;
		grid-template-columns: 1fr;
		justify-items: center;
		gap: 10px;
	}
	.creator-credit {
		grid-row: 3;
		font-size: 8px;
	}
	#controls,
	.credits {
		gap: 20px;
		font-size: 8px;
	}
	.credits button {
		font-size: 8px;
	}
	.credits {
		gap: 10px 16px;
		justify-content: center;
	}
	#pause-overlay {
		inset: 150px 0 240px;
	}
}
@media (max-height: 700px) and (min-width: 761px) {
	.header {
		top: 20px;
	}
	#stage {
		inset: 80px 0 200px;
	}
	.shot-panel {
		bottom: 60px;
	}
	.shot-types {
		margin-bottom: 14px;
	}
	#feedback {
		margin-bottom: 12px;
	}
	.footer {
		bottom: 16px;
	}
}
