/* Playvolt site styles, shared by every page. The home page is one long scroll
   (Home, About Us, Games, Contact Us); Dev Log and Careers are their own pages. */

:root {
	--page: #08080b;
	--bar: #0d0d12;
	--line: rgba(255, 255, 255, 0.12);
	--text: #f6f6f2;
	--muted: #c3c3c8;
	--yellow: #ffcb1f;
	--yellow-light: #ffe35c;
	--yellow-deep: #ffae00;
	--glow: rgba(255, 190, 0, 0.5);
	--header: 63px; /* the header's height with its border: the first screen fills the rest */
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); } /* a nav jump lands below the header */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
body {
	background: var(--page);
	color: var(--text);
	font: 500 1.125rem/1.5 Outfit, Arial, sans-serif;
	font-variant-ligatures: none; /* Outfit joins the "lt" in Playvolt otherwise */
}

header {
	position: sticky;
	top: 0;
	z-index: 3;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	min-height: 62px;
	padding: 10px 16px;
	background: var(--bar);
	border-bottom: 1px solid var(--line);
}
.brand { font: 700 1.1rem/1 Goldman, Impact, sans-serif; color: var(--yellow); text-decoration: none; text-transform: uppercase; }
nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 40px; font-size: 0.9375rem; font-weight: 700; text-transform: uppercase; }
nav a { color: var(--text); text-decoration: none; }
nav a:hover { color: var(--yellow); }
nav a[aria-current] { color: var(--yellow); text-shadow: 0 0 14px var(--glow); }
.menu-toggle, .menu-button { display: none; }
a:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* The first screen: the hero and, on the home page, the strip along its bottom. */
.screen {
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - var(--header));
	min-height: calc(100svh - var(--header));
}
main {
	position: relative;
	flex: 1;
	display: flex;
	align-items: center;
	overflow: hidden;
	padding: 56px clamp(16px, 11vw, 200px);
	background: radial-gradient(60rem 36rem at 88% 30%, rgba(255, 174, 0, 0.13), transparent 70%);
}
/* The ghost name behind the text, where the artwork will go one day. */
.ghost {
	position: absolute;
	right: -1vw;
	bottom: -3vw;
	font: 700 17vw/1 Goldman, Impact, sans-serif;
	text-transform: uppercase;
	white-space: nowrap;
	color: transparent;
	-webkit-text-stroke: 1px rgba(255, 203, 31, 0.16);
	pointer-events: none;
	user-select: none;
}
.hero { position: relative; }
h1 { font: 700 clamp(2.5rem, 5.2vw, 4.75rem)/1.08 Goldman, Impact, sans-serif; text-transform: uppercase; }
.small { display: block; color: var(--yellow); font-size: 0.5em; line-height: 1.2; }
.big {
	display: block;
	margin-top: 6px;
	font-size: 1.3em;
	background: linear-gradient(180deg, var(--yellow-light), var(--yellow-deep));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 0 22px var(--glow));
}
.lead { max-width: 25rem; margin-top: 24px; color: var(--muted); }
.button {
	display: inline-block;
	margin-top: 28px;
	padding: 15px 24px;
	border: 2px solid var(--yellow-light);
	border-radius: 8px;
	background: var(--yellow);
	box-shadow: 0 0 26px var(--glow);
	color: var(--page);
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
}
.button:hover { background: var(--yellow-light); box-shadow: 0 0 36px var(--glow); }

/* Two identical runs side by side: sliding by one run's width loops without a jump. */
.ticker { overflow: hidden; padding: 14px 0; background: var(--yellow); color: var(--page); font-weight: 700; line-height: 1.2; text-transform: uppercase; }
.track { display: flex; width: max-content; animation: slide 70s linear infinite; }
.track span { padding-right: 40px; white-space: nowrap; }
@keyframes slide { to { transform: translateX(-50%); } }
.ticker:hover .track { animation-play-state: paused; }
/* Slower rather than stopped: lots of Windows PCs have animations off without their owner choosing it. */
@media (prefers-reduced-motion: reduce) {
	.track { animation-duration: 180s; }
}

/* The home page's sections below the first screen. */
.section { padding: 96px clamp(16px, 11vw, 200px); border-top: 1px solid var(--line); }
.label { color: var(--yellow); font: 700 1rem/1.2 Goldman, Impact, sans-serif; text-transform: uppercase; }
h2 { max-width: 18ch; margin-top: 10px; font: 700 clamp(2rem, 3.6vw, 3.25rem)/1.1 Goldman, Impact, sans-serif; text-transform: uppercase; }
.section p { max-width: 38rem; margin-top: 20px; color: var(--muted); }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; }
.points h3 { padding-top: 16px; border-top: 2px solid var(--yellow); font: 700 1.125rem/1.2 Goldman, Impact, sans-serif; text-transform: uppercase; }
.points p { margin-top: 12px; }

/* Our Games: a centred heading, then one wide card per game (art on the left,
   facts and buttons on the right; stacked on phones). */
.centred { text-align: center; }
.centred h2 { max-width: none; font-size: clamp(2.5rem, 5.6vw, 5rem); }
.centred > p { margin-inline: auto; }
.sub { display: block; margin-top: 8px; color: var(--yellow); font-size: 0.5em; }
.games { display: grid; gap: 24px; max-width: 1080px; margin: 56px auto 0; text-align: left; }
.game {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	overflow: hidden;
	border-radius: 8px;
	background: var(--bar);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); /* a soft shadow instead of an outline */
}
/* Where the game's thumbnail goes (an <img> inside .game-art); the name and status sit on top of it. */
.game-art { position: relative; min-height: 320px; background: #121219; }
.game-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-art:has(img)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(8, 8, 11, 0.85)); }
.game-title { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55); }
.section .status { display: flex; margin-top: 0; align-items: center; gap: 8px; color: var(--text); font-size: 0.9375rem; font-weight: 700; }
.status i { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); }
.game h3 { margin-top: 6px; font: 700 clamp(2.25rem, 4vw, 3.25rem)/1 Goldman, Impact, sans-serif; text-transform: uppercase; }
.game-info { display: flex; flex-direction: column; padding: 28px; }
.section .genre { margin-top: 0; color: var(--yellow); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.game-info > p:not(.genre) { margin-top: 10px; color: var(--text); font-size: 1rem; }
/* The game in four numbers, until it's out and has real ones (players, visits). No dividers: just space. */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 24px 0 0; }
.facts div { display: flex; flex-direction: column-reverse; padding: 14px 0; text-align: center; } /* the number above its name */
.facts dd { margin: 0; color: var(--yellow); font: 700 1.75rem/1 Goldman, Impact, sans-serif; white-space: nowrap; }
.facts dt { margin-top: 6px; color: var(--muted); font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; }
.game-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 24px; }
.game-actions .button { margin-top: 0; padding: 13px 20px; }
.button.plain { border-color: transparent; background: rgba(255, 255, 255, 0.08); box-shadow: none; color: var(--text); }
.button.plain:hover { background: rgba(255, 255, 255, 0.14); box-shadow: none; color: var(--yellow); }

footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding: 24px clamp(16px, 11vw, 200px);
	border-top: 1px solid var(--line);
	background: var(--bar);
	color: var(--muted);
	font-size: 0.875rem;
}

@media (max-width: 900px) {
	/* The hamburger is a checkbox and its label; script.js only closes it after a tap on a link. */
	header { grid-template-columns: 1fr auto; padding-block: 8px; }
	.menu-toggle { display: block; position: absolute; width: 1px; height: 1px; opacity: 0; }
	.menu-button {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 4px;
		width: 44px;
		height: 44px;
		margin-right: -8px;
		border-radius: 8px;
		cursor: pointer;
	}
	.menu-button i { width: 24px; height: 3px; border-radius: 2px; background: #fff; transition: transform 0.15s, opacity 0.15s; }
	.menu-toggle:focus-visible + .menu-button { outline: 2px solid var(--text); }
	.menu-toggle:checked + .menu-button i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.menu-toggle:checked + .menu-button i:nth-child(2) { opacity: 0; }
	.menu-toggle:checked + .menu-button i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 2;
		flex-direction: column;
		flex-wrap: nowrap;
		gap: 0;
		padding: 4px 16px 12px;
		background: var(--bar);
		border-bottom: 1px solid var(--line);
		font-size: 1rem;
	}
	.menu-toggle:checked ~ nav { display: flex; }
	nav a { display: flex; justify-content: space-between; padding: 12px 0; }
	main { padding: 40px 16px 96px; }
	h1 { font-size: 7.4vw; } /* so CONSTRUCTION fits the screen's width */
	.ghost { font-size: 19vw; bottom: 8px; right: -3vw; }
	.section { padding: 64px 16px; }
	.points { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
	.game { grid-template-columns: 1fr; }
	.game-art { min-height: 0; aspect-ratio: 16 / 9; }
	.game-info { padding: 20px; }
	footer { padding: 20px 16px; }
}

/* Four facts in a row get cramped on a phone: two by two. */
@media (max-width: 560px) {
	.facts { grid-template-columns: repeat(2, 1fr); }
}
