/* emeraldcolor.com: one stylesheet for every page. System fonts only (nothing is fetched from
   another site). Colours are tokens; dark is the default look, light follows the system. */
:root {
	--bg: #0d1712;
	--bg2: #12211a;
	--card: #162a20;
	--line: #24402f;
	--fg: #e8f1ea;
	--muted: #a2b8a9;
	--accent: #3ddc84;
	--accent2: #1fa865;
	--accent-fg: #062012;
	--warn: #f2c14e;
	--bad: #ff8a7a;
	--ok: #6be59d;
	--code: #0a120e;
	--radius: 12px;
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	color-scheme: dark;
}
@media (prefers-color-scheme: light) {
	:root:not([data-theme='dark']) {
		--bg: #f4f8f5;
		--bg2: #e9f2ec;
		--card: #ffffff;
		--line: #cfe0d5;
		--fg: #10241a;
		--muted: #4b6355;
		--accent: #138a4e;
		--accent2: #0f6e3e;
		--accent-fg: #ffffff;
		--warn: #8a5a00;
		--bad: #b3261e;
		--ok: #12723f;
		--code: #eef4f0;
		--shadow: 0 8px 24px rgba(16, 36, 26, 0.12);
		color-scheme: light;
	}
}
* {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font: 17px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
a {
	color: var(--accent);
}
a:hover {
	text-decoration-thickness: 2px;
}
code {
	font-family: var(--mono);
	font-size: 0.88em;
	background: var(--code);
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 0.05em 0.35em;
	overflow-wrap: anywhere;
}
.wrap {
	max-width: 980px;
	margin: 0 auto;
	padding: 0 16px;
}

/* header */
.top {
	border-bottom: 1px solid var(--line);
	background: var(--bg2);
}
.top .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 60px;
	flex-wrap: wrap;
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--fg);
	font-weight: 800;
	letter-spacing: 0.14em;
	font-size: 15px;
	padding: 10px 0;
}
.brand svg {
	width: 26px;
	height: 26px;
	flex: none;
}
.brand em {
	font-style: normal;
	color: var(--accent);
}
.topnav {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}
.topnav a {
	color: var(--muted);
	text-decoration: none;
	padding: 8px 10px;
	border-radius: 8px;
	font-size: 15px;
}
.topnav a:hover,
.topnav a[aria-current='page'] {
	color: var(--fg);
	background: var(--card);
}

/* sections */
main {
	padding-bottom: 32px;
	overflow-wrap: break-word;
}
section {
	padding: 36px 0 8px;
}
h1 {
	font-size: clamp(30px, 6vw, 46px);
	line-height: 1.12;
	margin: 0 0 14px;
	letter-spacing: -0.01em;
}
h2 {
	font-size: clamp(22px, 4vw, 28px);
	line-height: 1.2;
	margin: 0 0 14px;
}
h3 {
	font-size: 18px;
	margin: 0 0 6px;
}
.lede {
	font-size: clamp(17px, 2.4vw, 20px);
	color: var(--fg);
	max-width: 46em;
	margin: 0 0 18px;
}
.muted {
	color: var(--muted);
}
.small {
	font-size: 14px;
	color: var(--muted);
}

/* hero */
.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 28px;
	align-items: center;
	padding-top: 44px;
}
.hero .art {
	width: 100%;
	height: auto;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	display: block;
}
@media (max-width: 760px) {
	.hero {
		grid-template-columns: minmax(0, 1fr);
		padding-top: 28px;
	}
	.hero .art {
		max-width: 420px;
	}
}
.status {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	background: var(--card);
	border: 1px solid var(--line);
	border-left: 4px solid var(--warn);
	border-radius: 10px;
	padding: 10px 14px;
	margin: 0 0 20px;
	font-size: 15px;
}
.status b {
	color: var(--warn);
	white-space: nowrap;
}

/* buttons */
.btn,
button.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--accent);
	color: var(--accent-fg);
	border: 0;
	border-radius: 10px;
	padding: 12px 20px;
	font: inherit;
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
	cursor: pointer;
	min-height: 46px;
}
.btn:hover {
	filter: brightness(1.06);
}
.btn.ghost {
	background: transparent;
	color: var(--fg);
	border: 1px solid var(--line);
}
.btn:disabled,
.btn[aria-disabled='true'] {
	opacity: 0.45;
	cursor: default;
	filter: none;
}
.btns {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 6px 0 4px;
}

/* cards and grids */
.steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	counter-reset: step;
	padding: 0;
	margin: 0;
	list-style: none;
}
@media (max-width: 760px) {
	.steps {
		grid-template-columns: minmax(0, 1fr);
	}
}
.card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 18px;
}
.steps .card::before {
	counter-increment: step;
	content: counter(step);
	display: inline-grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--accent-fg);
	font-weight: 800;
	margin-bottom: 10px;
}
.steps p {
	margin: 0;
	color: var(--muted);
	font-size: 15px;
}
.cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}
@media (max-width: 760px) {
	.cols {
		grid-template-columns: minmax(0, 1fr);
	}
}
.cols ul {
	margin: 0;
	padding-left: 1.2em;
	font-size: 15px;
}
.cols li {
	margin: 4px 0;
}
.works h3 {
	color: var(--ok);
}
.notyet h3 {
	color: var(--warn);
}
.shots {
	display: grid;
	place-items: center;
	text-align: center;
	min-height: 160px;
	border: 2px dashed var(--line);
	border-radius: var(--radius);
	color: var(--muted);
	padding: 18px;
	font-size: 15px;
}

/* FAQ */
details {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 10px;
	margin: 8px 0;
	padding: 0 16px;
}
summary {
	cursor: pointer;
	font-weight: 700;
	padding: 14px 0;
	list-style-position: outside;
}
details[open] summary {
	border-bottom: 1px solid var(--line);
	margin-bottom: 10px;
}
details p {
	margin: 0 0 14px;
	font-size: 16px;
}
.table-wrap {
	overflow-x: auto;
	margin: 0 0 14px;
}
table {
	border-collapse: collapse;
	font-size: 14px;
	min-width: 520px;
	width: 100%;
}
th,
td {
	text-align: left;
	border-bottom: 1px solid var(--line);
	padding: 6px 8px;
	vertical-align: top;
}
th {
	color: var(--muted);
	font-weight: 600;
}

/* footer */
footer {
	border-top: 1px solid var(--line);
	background: var(--bg2);
	padding: 24px 0 36px;
	font-size: 14px;
	color: var(--muted);
}
footer p {
	margin: 0 0 10px;
	max-width: 60em;
}
footer .links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
}
footer .links a {
	color: var(--fg);
}

/* patch page */
.slots {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}
@media (max-width: 760px) {
	.slots {
		grid-template-columns: minmax(0, 1fr);
	}
}
.slot {
	position: relative;
	border: 2px dashed var(--line);
	border-radius: var(--radius);
	padding: 18px;
	background: var(--card);
	transition: border-color 0.15s;
}
.slot.over {
	border-color: var(--accent);
}
.slot.good {
	border-style: solid;
	border-color: var(--accent2);
}
.slot.badfile {
	border-style: solid;
	border-color: var(--bad);
}
.num {
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--accent-fg);
	font-weight: 800;
	font-size: 15px;
	margin-right: 8px;
}
.slot h2 {
	font-size: 19px;
	display: flex;
	align-items: center;
	margin: 0 0 8px;
}
.slot .want {
	font-size: 14px;
	color: var(--muted);
	margin: 0 0 12px;
	overflow-wrap: anywhere;
}
.slot input[type='file'] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}
.msg {
	margin: 12px 0 0;
	font-size: 15px;
	overflow-wrap: anywhere;
}
.msg p {
	margin: 2px 0;
}
.msg.good {
	color: var(--ok);
}
.msg.bad {
	color: var(--bad);
}
.msg.note {
	color: var(--warn);
}
.build {
	margin-top: 14px;
}
.choice {
	display: grid;
	gap: 8px;
	margin: 0 0 14px;
}
.choice label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 15px;
	cursor: pointer;
}
.choice input {
	margin-top: 5px;
	accent-color: var(--accent);
}
.bar {
	height: 14px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 999px;
	overflow: hidden;
	margin: 14px 0 8px;
}
.bar > span {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--accent2), var(--accent));
	transition: width 0.5s;
}
.log {
	font-family: var(--mono);
	font-size: 12px;
	line-height: 1.45;
	background: var(--code);
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 10px;
	max-height: 280px;
	overflow: auto;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	margin: 8px 0 0;
}
.result {
	border-left: 4px solid var(--accent);
}
.hidden {
	display: none !important;
}

/* player page */
.player {
	padding-top: 20px;
}
.screen-wrap {
	display: grid;
	place-items: center;
	background: #000;
	border-radius: var(--radius);
	padding: 12px;
	position: relative;
}
.screen-wrap canvas {
	width: 100%;
	max-width: 640px;
	aspect-ratio: 160 / 144;
	image-rendering: pixelated;
	image-rendering: crisp-edges;
	display: block;
	background: #000;
	touch-action: none;
}
.screen-wrap:fullscreen {
	border-radius: 0;
	padding: 0;
	width: 100vw;
	height: 100vh;
}
.screen-wrap:fullscreen canvas {
	max-width: 100vw;
	max-height: 100vh;
	width: auto;
	height: 100vh;
	margin: auto;
}
.overlay {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-weight: 700;
	border: 0;
	font: inherit;
	font-size: 18px;
	cursor: pointer;
	border-radius: var(--radius);
}
.pbar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0;
}
.pbar .btn {
	padding: 9px 14px;
	min-height: 40px;
	font-size: 15px;
}
.pad {
	display: none;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
	margin: 14px 0 0;
	user-select: none;
	-webkit-user-select: none;
	touch-action: none;
}
@media (pointer: coarse) {
	.pad {
		display: grid;
	}
}
.pad.on {
	display: grid;
}
.dpad {
	position: relative;
	width: 150px;
	height: 150px;
	touch-action: none;
}
.dpad span {
	position: absolute;
	background: #2b3b33;
	border-radius: 8px;
}
.dpad .v {
	left: 50px;
	top: 0;
	width: 50px;
	height: 150px;
}
.dpad .h {
	top: 50px;
	left: 0;
	width: 150px;
	height: 50px;
}
.mid {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.ab {
	display: flex;
	gap: 14px;
	justify-content: flex-end;
	align-items: center;
}
.key {
	border: 0;
	font: inherit;
	font-weight: 800;
	color: #fff;
	background: #2b3b33;
	touch-action: none;
	cursor: pointer;
}
.key.round {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #1f8f57;
	font-size: 20px;
}
.key.round.b {
	margin-top: 36px;
}
.key.small {
	padding: 8px 12px;
	border-radius: 999px;
	font-size: 12px;
	letter-spacing: 0.08em;
}
.key.down {
	filter: brightness(1.5);
}
.say {
	min-height: 1.6em;
	font-size: 15px;
	margin: 6px 0;
}
.say.bad {
	color: var(--bad);
}
.keys-help {
	font-size: 14px;
	color: var(--muted);
}
.empty {
	text-align: center;
	color: #cfe0d5;
	padding: 30px 14px;
	max-width: 520px;
}
.empty p {
	margin: 0 0 14px;
}
.steph {
	display: flex;
	align-items: center;
	font-size: 19px;
}
.btns.center {
	justify-content: center;
}
@media (max-width: 420px) {
	.pad {
		gap: 8px;
	}
	.dpad {
		width: 132px;
		height: 132px;
	}
	.dpad .v {
		left: 44px;
		width: 44px;
		height: 132px;
	}
	.dpad .h {
		top: 44px;
		width: 132px;
		height: 44px;
	}
	.key.round {
		width: 58px;
		height: 58px;
	}
	.ab {
		gap: 10px;
	}
}

/* the coming-soon page (soon/): the title screen GIF scales by whole pixels' look, the tag */
.hero .art.pixel {
	image-rendering: pixelated;
	background: #000;
}
@media (max-width: 760px) {
	/* on a phone the title screen leads the page */
	.hero .art.pixel {
		order: -1;
		margin: 0 auto;
	}
}
.soon-tag {
	display: inline-block;
	margin: 0 0 8px;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--accent);
	color: var(--accent-fg);
	font-weight: 700;
	letter-spacing: 0.02em;
}
