/* dropdebtgame.com: single-page cyberpunk landing page (docs/29). */
@font-face {
	font-family: "Drop Debt";
	src: url("/fonts/DropDebt-Regular.otf") format("opentype");
	font-display: swap;
}

@font-face {
	font-family: "Share Tech Mono";
	src: url("/fonts/ShareTechMono-Regular.ttf") format("truetype");
	font-display: swap;
}

:root {
	--bg: #05050a;
	--panel: #0c0d18;
	--line: #232744;
	--text: #ebedf7;
	--muted: #969cba;
	--cyan: #4dfcff;
	--magenta: #ff4fd8;
	--red: #ff4d59;
	--gold: #ffd84d;
	--radius: 4px;
	--wide: 1140px;
	color-scheme: dark;
}

* { box-sizing: border-box; }

html {
	background: var(--bg);
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background:
		radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 79, 216, 0.2) 0%, transparent 60%),
		var(--bg);
	color: var(--text);
	font: 18px/1.6 "Share Tech Mono", ui-monospace, "Cascadia Mono", Menlo, monospace;
}

a { color: var(--cyan); text-underline-offset: 3px; transition: color 0.15s; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: 0.04em; margin: 0; }
h2 { color: var(--cyan); text-transform: uppercase; font-size: clamp(1.4rem, 2.5vw, 1.85rem); margin-bottom: 1.25rem; }
h3 { color: #fff; font-size: 1.15rem; margin: 0 0 0.4rem; text-transform: uppercase; }

/* Buttons */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	padding: 0.8rem 1.45rem;
	border: 2px solid var(--cyan);
	border-radius: var(--radius);
	background: rgba(77, 252, 255, 0.14);
	color: #fff;
	text-decoration: none;
	font: inherit;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 0 16px rgba(77, 252, 255, 0.35);
	transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.button:hover {
	background: rgba(77, 252, 255, 0.28);
	box-shadow: 0 0 28px rgba(77, 252, 255, 0.65);
	color: #fff;
	transform: translateY(-1px);
}
.button.primary-cta {
	padding: 0.95rem 1.85rem;
	font-size: 1.1rem;
	background: rgba(77, 252, 255, 0.2);
	box-shadow: 0 0 24px rgba(77, 252, 255, 0.45);
}
.button.ghost {
	border-color: var(--magenta);
	background: rgba(255, 79, 216, 0.1);
	box-shadow: 0 0 16px rgba(255, 79, 216, 0.28);
}
.button.ghost:hover {
	background: rgba(255, 79, 216, 0.24);
	box-shadow: 0 0 26px rgba(255, 79, 216, 0.55);
}
.button.small {
	padding: 0.42rem 0.95rem;
	font-size: 0.85rem;
}
.button .icon {
	width: 1.2em;
	height: 1.2em;
	flex-shrink: 0;
}
.actions {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	margin: 1.5rem 0 0;
}
.actions.center { justify-content: center; }

/* Main & Hero */
main {
	max-width: var(--wide);
	margin: 0 auto;
	padding: 0 1.25rem;
}
.hero {
	display: grid;
	gap: 2.25rem;
	padding: 3rem 0 2rem;
	text-align: center;
}
.hero-text {
	max-width: 66ch;
	margin: 0 auto;
}
.hero-text .actions {
	justify-content: center;
}
.wordmark {
	font-family: "Drop Debt", "Share Tech Mono", sans-serif;
	font-weight: normal;
	font-size: clamp(2.4rem, 8vw, 5.25rem);
	/* The box the font had until 2026-11 (ascent 1.51 em, descent 0.43 em, line-height 1.9): the font's line box now
	   hugs its letters (0.72 / 0.20 em), so the padding and the shorter line keep the height and the baseline. */
	line-height: 1.3434;
	padding-top: 0.5566em;
	margin: 0;
	color: #bf0d1a;
	-webkit-text-stroke: 0.032em #ffd1d6;
	paint-order: stroke fill;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.neon {
	text-shadow:
		0 0 10px rgba(255, 20, 36, 0.95),
		0 0 28px rgba(255, 20, 36, 0.75),
		0 0 70px rgba(255, 20, 36, 0.45);
	animation: flicker 5.4s infinite;
}
.logo { max-width: 560px; width: 100%; margin: 0 auto; }
.tagline {
	font-size: clamp(1.3rem, 2.5vw, 1.7rem);
	color: var(--gold);
	margin: 0.5rem 0 0.85rem;
}
.lede {
	font-size: 1.05rem;
	color: var(--muted);
	margin: 0 auto;
}

/* Trailer */
.hero-shot, .trailer {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 0 60px rgba(255, 79, 216, 0.16);
}
.trailer {
	position: relative;
	background: #000;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}
.trailer-play {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: #000;
	cursor: pointer;
}
.trailer img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.85;
	transition: opacity 0.2s, transform 0.3s;
}
.trailer-play:hover img {
	opacity: 0.95;
	transform: scale(1.01);
}
.play-wrap {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
}
.trailer .play {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	border: 2px solid var(--cyan);
	background: rgba(5, 5, 10, 0.78);
	display: grid;
	place-items: center;
	font-size: 2.2rem;
	color: #fff;
	box-shadow: 0 0 28px rgba(77, 252, 255, 0.55);
	transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}
.trailer-play:hover .play {
	transform: scale(1.08);
	background: rgba(77, 252, 255, 0.25);
	box-shadow: 0 0 42px rgba(77, 252, 255, 0.85);
}
.trailer iframe { width: 100%; height: 100%; border: 0; }

/* Screenshots Gallery */
.gallery-section {
	padding: 1.5rem 0 2.5rem;
}
.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 1rem;
}
.gallery .shot {
	display: block;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.gallery .shot:hover {
	border-color: var(--cyan);
	box-shadow: 0 0 24px rgba(77, 252, 255, 0.3);
	transform: translateY(-2px);
}
.gallery .shot img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* Content creators: the key-request form */
.creators-section {
	padding: 1.5rem 0 2.5rem;
}
.section-lede {
	color: var(--muted);
	margin: -0.5rem 0 1.5rem;
	max-width: 70ch;
}
.creator-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 1.25rem;
	padding: 1.5rem;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
.creator-form .wide { grid-column: 1 / -1; }
.creator-form .field { display: grid; gap: 0.35rem; }
.creator-form label {
	color: var(--magenta);
	text-transform: uppercase;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
}
.creator-form .optional { color: var(--muted); text-transform: none; letter-spacing: 0; }
.creator-form input, .creator-form select, .creator-form textarea {
	width: 100%;
	padding: 0.65rem 0.75rem;
	background: var(--bg);
	color: var(--text);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font: inherit;
	font-size: 1rem;
}
.creator-form textarea { resize: vertical; min-height: 6rem; }
.creator-form input:focus, .creator-form select:focus, .creator-form textarea:focus {
	border-color: var(--cyan);
	box-shadow: 0 0 12px rgba(77, 252, 255, 0.3);
	outline: none;
}
.creator-form .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.creator-form .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.creator-form .button[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.form-status { margin: 0; color: var(--muted); }
/* The form opens in a dialog from the "Request a key" button. */
.creator-open[hidden] { display: none; }
.creator-dialog {
	width: min(720px, calc(100% - 32px));
	max-height: calc(100% - 32px);
	overflow: auto;
	padding: 1.5rem;
	background: var(--panel);
	color: var(--text);
	border: 1px solid var(--cyan);
	border-radius: var(--radius);
	box-shadow: 0 0 32px rgba(77, 252, 255, 0.25);
}
.creator-dialog::backdrop { background: rgba(5, 5, 10, 0.8); }
.creator-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.creator-dialog-head h2 { margin: 0; }
.creator-dialog .section-lede { margin: 0.5rem 0 1.25rem; }
.creator-dialog .creator-form { padding: 0; background: none; border: 0; }
.creator-close {
	padding: 0.2rem 0.6rem;
	background: none;
	color: var(--muted);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font: inherit;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}
.creator-close:hover, .creator-close:focus-visible { color: var(--cyan); border-color: var(--cyan); }
.form-status.ok { color: var(--cyan); }
.form-status.error { color: var(--red); }

/* Final CTA */
.final-cta {
	padding: 2rem 0 3.5rem;
}
.final-cta-inner {
	text-align: center;
	padding: 2.5rem 1.5rem;
	background:
		radial-gradient(circle at 50% 0%, rgba(255, 77, 89, 0.2) 0%, transparent 65%),
		var(--panel);
	border: 1px solid rgba(255, 77, 89, 0.45);
	border-radius: var(--radius);
}
.final-cta h2 {
	color: var(--gold);
	margin-bottom: 0.25rem;
}

/* Press Page & 404 */
.press-page {
	padding: 3rem 0 2rem;
}
.press-header {
	margin-bottom: 2.5rem;
}
.back-link {
	display: inline-block;
	margin-bottom: 1rem;
	font-size: 0.9rem;
	color: var(--muted);
	text-decoration: none;
}
.back-link:hover { color: var(--cyan); }
.press-title {
	font-size: clamp(1.75rem, 5vw, 3.25rem);
}
.press {
	display: grid;
	grid-template-columns: minmax(230px, 280px) 1fr;
	gap: 2.5rem;
	align-items: start;
}
.facts {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.25rem 1.4rem;
	position: sticky;
	top: 1.5rem;
}
.facts h2 {
	font-size: 1.2rem;
	margin-bottom: 0.75rem;
}
.facts dl { margin: 0; }
.facts dt {
	color: var(--magenta);
	text-transform: uppercase;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	margin-top: 0.85rem;
}
.facts dd {
	margin: 0.1rem 0 0;
	color: var(--text);
}
.press-block {
	margin-bottom: 2.5rem;
}
.press-block p {
	color: var(--muted);
	margin: 0 0 1rem;
}
.press-pitch {
	color: var(--text) !important;
	font-size: 1.05rem;
}
.press-pitch strong {
	color: var(--gold);
}
.page { padding: 4rem 0; max-width: 80ch; }
.page.center { text-align: center; margin: 0 auto; }
/* The placeholder site (site.json "coming_soon"): the wordmark centred in the window above the footer. */
.coming-soon { min-height: calc(100vh - 8rem); display: grid; place-content: center; padding: 0; }
.page.center .actions { justify-content: center; }

/* Footer */
.bottom {
	border-top: 1px solid var(--line);
	padding: 2rem 1.25rem;
	color: var(--muted);
	font-size: 0.9rem;
}
.bottom-inner {
	max-width: var(--wide);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}
.bottom-inner p { margin: 0; }
.footer-links {
	display: flex;
	gap: 1.25rem;
	flex-wrap: wrap;
}

/* Lightbox */
.lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
	display: grid;
	place-items: center;
	z-index: 100;
	padding: 1rem;
	cursor: zoom-out;
}
.lightbox img { max-height: 92vh; width: auto; }

@keyframes flicker {
	0%, 18%, 22%, 24%, 54%, 56%, 100% { opacity: 1; }
	20%, 23%, 55% { opacity: 0.6; }
}

@media (max-width: 820px) {
	.press { grid-template-columns: 1fr; }
	.facts { position: static; }
}

@media (max-width: 640px) {
	body { font-size: 16px; }
	.gallery { grid-template-columns: 1fr; }
	.creator-form { grid-template-columns: 1fr; padding: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.neon { animation: none; }
	.button, .gallery .shot, .trailer img, .trailer .play { transition: none; }
}
