:root {
	--bg: #986027;
	--card: #fce0a8;
	--border: #f8d878;
	--text: #3D2000;
	--container: #d5a74b;

	--font: courier, monospace;
	--font-size-sm: 1.15rem;
	--font-size-base: 1rem;
	--letter-spacing: 0.1px;

	--gap-xs: 0rem;
	--gap-sm: 0.75rem;
	--gap-md: 0.75rem;

	--profile-img-width: 100px;
	--profile-img-height: 75px;

	--progress-width: 9rem;
	--progress-height: 0.71rem;
}

* {
  cursor: url(https://unpkg.com/nes.css@latest/assets/cursor-click.png), auto;
}

html,
body {
	height: 100%;
	margin: 0;
	background-color: var(--bg);
}

body {
	display: flex;
	flex-direction: column;
	padding: var(--gap-sm);
	box-sizing: border-box;
	gap: var(--gap-sm);
	color: var(--text);
	font-family: var(--font);
	font-weight: bold;
}

p,
h1 {
	color: var(--text);
}

img {
	image-rendering: pixelated;
}

header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

main {
	flex: 1;
	display: flex;
}

.content-container {
	width: 100%;
	padding: var(--gap-sm);
	box-sizing: border-box;
}

.profile {
	display: flex;
	align-items: center;
	gap: var(--gap-sm);
}

/* THIS is the fix */
.profile > .nes-container {
	display: flex;
	align-items: center;
	gap: var(--gap-sm);
}

.profile img {
	width: var(--profile-img-width);
	height: var(--profile-img-height);
	image-rendering: pixelated;
	flex-shrink: 0;
}

.profile-stats {
	display: flex;
	flex-direction: column;
	gap: var(--gap-xs);
}

.profile-stats p {
	margin: 0;
	color: var(--text);
}

.profile-stats .nes-progress {
	width: var(--progress-width);
	height: var(--progress-height);
}

#clock {
	font-family: monospace;
	font-size: var(--font-size-sm);
	letter-spacing: var(--letter-spacing);
}

footer .nes-container {
	display: flex;
	justify-content: center;
	gap: var(--gap-sm);
	flex-wrap: wrap;
	width: 100%;
	box-sizing: border-box;
}

.nes-container.is-dark {
	background: var(--container);
}

.nes-container.with-title>.title {
	background-color: var(--bg) !important;
	color: var(--text);
}

.nes-dialog {
	background: var(--card);
}

.joke-mario {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

marquee {
	display: block;
	width: 100%;
	min-height: 1.2em;
}

.content-container>.nes-btn {
	display: block;
	margin: 0 auto var(--gap-md);
}

@media (prefers-reduced-motion: reduce) {
	marquee {
		display: none;
	}

	.animate__animated {
		animation: none !important;
		opacity: 1 !important;
	}
}


.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.footer-text {
  margin: 0;
}
a:focus-visible,
button:focus-visible {
	outline: 3px solid var(--text);
	outline-offset: 2px;
}

.notice-text {
	font-size: 0.6rem;
}

@media (max-width: 600px) {
	:root {
		--gap-xs: 0.1rem;
		--gap-sm: 0.35rem;
		--gap-md: 0.75rem;

		--font-size-sm: 0.75rem;
		--font-size-base: 0.65rem;

		--profile-img-width: 64px;
		--profile-img-height: 48px;

		--progress-width: 5rem;
	}

	body {
		padding: 0.35rem;
		gap: 0.35rem;
	}

	/* Huge win */
	.nes-container {
		padding: 0.35rem !important;
	}

	header {
		flex-wrap: wrap;
		justify-content: center;
		gap: 0.35rem;
		text-align: center;
	}

	h1 {
		width: 100%;
		order: -1;
		font-size: 0.9rem;
		margin: 0;
		line-height: 1;
	}

	.profile {
		gap: 0.35rem;
	}

	.profile > .nes-container {
		gap: 0.35rem;
		padding: 0.35rem !important;
	}

	.profile-stats {
		gap: 0;
	}

	.profile-stats p {
		line-height: 1;
		font-size: 0.65rem;
	}

	#joke-text {
		font-size: 0.7rem;
		line-height: 1.1;
		margin: 0;
	}

	marquee {
		font-size: 0.65rem;
		min-height: 1em;
	}

	.content-container > .nes-btn {
		margin-bottom: 0.5rem;
	}

	footer .nes-container {
		gap: 0.25rem;
		padding: 0.35rem !important;
	}

	.nes-btn {
		transform: scale(0.82);
		transform-origin: center;
		margin: -0.15rem;
	}

	.nes-balloon {
		padding: 0.5rem !important;
	}
}