/* IdleDing landing page. System fonts only, no external requests. */

:root {
	--ink: #140e08;
	--ink-soft: #2a1d10;
	--gold: #f6c445;
	--gold-hi: #ffe28c;
	--gold-deep: #c98a16;
	--text: #fbf3e2;
	--muted: #e3d4b6;
	--field: #fffaf0;
	--focus: #ffe28c;
	color-scheme: dark;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	background: var(--ink);
	color: var(--text);
	font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	overflow-x: hidden;
}

a {
	color: var(--gold-hi);
	text-underline-offset: 0.18em;
}

a:hover {
	color: #fff;
}

:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Full-bleed gameplay background ---------- */

.bg {
	position: fixed;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	background: var(--ink);
}

/* Phones: the video fills the top of the screen and fades into the page colour,
   so the scene stays visible above the sign-up form. */
.bg video {
	position: relative;
	top: 0;
	display: block;
	width: 100%;
	height: 62%;
	object-fit: cover;
	object-position: 50% 50%;
}

/* Scrim keeps the text readable over a busy, bright scene. */
.bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to bottom,
			rgba(20, 14, 8, 0) 0%,
			rgba(20, 14, 8, 0) 28%,
			rgba(20, 14, 8, 0.65) 42%,
			rgba(20, 14, 8, 1) 54%,
			rgba(20, 14, 8, 1) 100%);
}

/* ---------- Content ---------- */

/* Phones: content sits low so the fight shows above it. */
main {
	flex: 1;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 32px 16px 8px;
}

.panel {
	width: 100%;
	max-width: 420px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 20px;
}

.logo {
	display: block;
	width: min(300px, 80vw);
	height: auto;
	filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55));
}

h1 {
	margin: 0;
}

.pitch {
	margin: 0;
	max-width: 24em;
	font-size: 1.125rem;
	line-height: 1.45;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 18px rgba(0, 0, 0, 0.6);
}

.pitch strong {
	color: var(--gold-hi);
	font-weight: 800;
}

/* ---------- Buttons ---------- */

.btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	padding: 12px 20px;
	border: 2px solid var(--ink-soft);
	border-radius: 8px;
	font: inherit;
	font-size: 1.0625rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	text-decoration: none;
	cursor: pointer;
	color: var(--ink);
	background: linear-gradient(to bottom, var(--gold-hi), var(--gold) 45%, var(--gold-deep));
	box-shadow: 0 2px 0 rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn:hover {
	color: var(--ink);
	filter: brightness(1.07);
}

.btn:active {
	transform: translateY(1px);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn[disabled] {
	cursor: progress;
	filter: saturate(0.6);
}

/* Steam button, used once the Coming Soon page is live (see README). */
.btn-steam {
	color: #fff;
	background: linear-gradient(to bottom, #2a7fc0, #1a5c95 55%, #124574);
	border-color: #0b2a47;
}

.btn-steam:hover {
	color: #fff;
}

/* ---------- Sign-up form ---------- */

.signup {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.signup input[type="email"] {
	width: 100%;
	min-height: 52px;
	padding: 12px 16px;
	border: 2px solid var(--ink-soft);
	border-radius: 8px;
	font: inherit;
	font-size: 1.0625rem;
	color: var(--ink);
	background: var(--field);
}

.signup input[type="email"]::placeholder {
	color: #7d6c55;
}

/* Bot trap: real people never see or reach it. */
.hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-error {
	margin: 0;
	padding: 10px 12px;
	border-radius: 8px;
	color: #fff;
	background: rgba(150, 30, 20, 0.85);
	font-size: 1rem;
	line-height: 1.4;
}

.form-error[hidden] {
	display: none;
}

.consent {
	margin: 0;
	color: var(--muted);
	font-size: 1rem;
	line-height: 1.45;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

/* ---------- Thanks page ---------- */

.notice {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--gold-hi);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.notice-body {
	margin: 0;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

/* ---------- Footer ---------- */

footer {
	padding: 12px 16px 20px;
	text-align: center;
	color: var(--muted);
	font-size: 1rem;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

footer ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 20px;
	margin: 0 0 4px;
	padding: 0;
	list-style: none;
}

footer a {
	display: inline-block;
	padding: 6px 0;
	color: var(--muted);
}

footer p {
	margin: 0;
}

/* ---------- Small phones (360 px wide, short screens) ---------- */

@media (max-width: 380px) {
	.btn {
		padding: 12px 10px;
		font-size: 1rem;
	}

	footer ul {
		gap: 0 16px;
	}
}

@media (max-width: 899px) and (max-height: 700px) {
	main {
		padding-top: 16px;
	}

	.panel {
		gap: 14px;
	}

	.logo {
		width: min(230px, 66vw);
	}
}

/* ---------- Desktop: content column on the right, like a key-art page ---------- */

@media (min-width: 900px) {
	main {
		align-items: center;
		justify-content: flex-end;
		padding: 48px max(48px, 7vw) 24px;
	}

	.panel {
		max-width: 440px;
		gap: 24px;
	}

	.logo {
		width: 400px;
	}

	.pitch {
		font-size: 1.25rem;
	}

	.bg video {
		top: 0;
		height: 100%;
		object-position: 35% 50%;
	}

	.bg::after {
		background:
			linear-gradient(to left,
				rgba(20, 14, 8, 0.88) 0%,
				rgba(20, 14, 8, 0.70) 30%,
				rgba(20, 14, 8, 0.15) 62%,
				rgba(20, 14, 8, 0) 80%),
			linear-gradient(to top, rgba(20, 14, 8, 0.6) 0%, rgba(20, 14, 8, 0) 22%);
	}

	footer {
		text-align: right;
		padding: 12px max(48px, 7vw) 20px;
	}

	footer ul {
		justify-content: flex-end;
	}
}

/* ---------- Legal pages: plain readable column ---------- */

main.doc {
	display: block;
	flex: none;
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
	padding: 32px 16px 48px;
	background: var(--ink);
}

.doc-logo {
	display: inline-block;
	margin-bottom: 16px;
}

.doc-logo img {
	width: 180px;
	height: auto;
}

.doc h1 {
	margin: 0 0 4px;
	font-size: 2rem;
	line-height: 1.2;
	color: var(--gold-hi);
}

.doc h2 {
	margin: 32px 0 8px;
	font-size: 1.25rem;
	color: var(--gold);
}

.doc h3 {
	margin: 24px 0 8px;
	font-size: 1.0625rem;
	color: var(--gold-hi);
}

/* Placeholder that must be filled in before launch. */
.todo {
	padding: 0 4px;
	border-radius: 3px;
	color: var(--ink);
	background: var(--gold-hi);
}

.doc p,
.doc li {
	max-width: 65ch;
}

.doc .updated {
	color: var(--muted);
	margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
	.btn:active {
		transform: none;
	}
}
