/* The shorts' look: near-black, Super Earth yellow, Anton for headings. */
:root {
	--bg: #0e0f10;
	--panel: #17191b;
	--line: #2a2d30;
	--text: #e9e9e6;
	--dim: #9a9c9e;
	--yellow: #ffe900;
	color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 Barlow, system-ui, sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--yellow); }
h1, h2, h3, .brand, .btn, .pill, nav a { font-family: Anton, Impact, sans-serif; font-weight: 400; letter-spacing: .02em; text-transform: uppercase; }

nav { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 10px 24px; background: rgba(14, 15, 16, .92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--yellow); text-decoration: none; font-size: 22px; }
.brand img { width: 30px; }
nav .links { display: flex; gap: 22px; }
nav .links a { color: var(--text); text-decoration: none; font-size: 16px; }
nav .links a:hover { color: var(--yellow); }

section, .hero { max-width: 1120px; margin: 0 auto; padding: 72px 24px; }
.hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; padding-top: 48px; }
.logo { width: 320px; margin-bottom: 8px; }
h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1; margin: 0 0 16px; }
h1 span, h2 span { color: var(--yellow); }
.lead { font-size: 20px; color: var(--text); margin: 0 0 20px; }
.status { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pill { background: var(--yellow); color: #111; padding: 4px 12px; font-size: 15px; }
.pill.dim { background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.when { border-left: 4px solid var(--yellow); padding: 4px 0 4px 14px; color: var(--dim); }
.when b { color: var(--text); }
.hero-shot img { border: 3px solid var(--yellow); aspect-ratio: 9 / 16; object-fit: cover; }

.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn { display: inline-flex; flex-direction: column; padding: 10px 22px; border: 2px solid var(--yellow); color: var(--yellow);
	text-decoration: none; font-size: 22px; line-height: 1.1; cursor: pointer; }
.btn small { font: 600 12px Barlow, sans-serif; letter-spacing: .04em; color: var(--dim); text-transform: uppercase; }
.btn:hover { background: var(--yellow); color: #111; }
.btn:hover small { color: #333; }
.btn.yellow { background: var(--yellow); color: #111; }
.btn.yellow small { color: #333; }
.btn.soon { opacity: .45; cursor: default; pointer-events: none; }

h2 { font-size: clamp(34px, 5vw, 54px); margin: 0 0 28px; line-height: 1.05; }
h2.sub { margin-top: 64px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards article { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--yellow); padding: 20px; }
.cards b { font: 400 40px/1 Anton, sans-serif; color: var(--yellow); }
.cards h3 { margin: 6px 0 6px; font-size: 22px; }
.cards p { margin: 0; color: var(--dim); font-size: 15px; }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; margin-top: 28px; }
.wall img { image-rendering: pixelated; background: var(--panel); border: 1px solid var(--line); padding: 4px; transition: transform .15s; }
.wall img:hover { transform: scale(1.25); border-color: var(--yellow); }
.bugs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
figure { margin: 0; }
.bugs figure { background: var(--panel); border: 1px solid var(--line); }
figcaption { font-family: Anton, sans-serif; text-transform: uppercase; color: var(--yellow); padding: 6px 10px; font-size: 16px; }

.videos { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.video { flex: 0 0 240px; scroll-snap-align: start; }
.video video { width: 100%; aspect-ratio: 9 / 16; background: #000; border: 1px solid var(--line); }

.note { background: var(--panel); border: 1px solid var(--line); padding: 18px 22px; margin-bottom: 14px; }
.note.latest { border-color: var(--yellow); }

.tag { background: var(--yellow); color: #111; font: 400 13px Anton, sans-serif; text-transform: uppercase; padding: 1px 8px; }
.note h4 { margin: 14px 0 0; font: 400 15px Anton, sans-serif; text-transform: uppercase; letter-spacing: .04em; color: var(--yellow); }
.note ul { margin: 6px 0 0; padding-left: 20px; color: var(--dim); }

#support p { max-width: 720px; color: var(--dim); }
footer { border-top: 1px solid var(--line); text-align: center; padding: 32px 24px; color: var(--dim); font-size: 14px; }
footer .fine { max-width: 760px; margin: 8px auto 0; font-size: 12px; }

@media (max-width: 820px) {
	nav .links { display: none; }
	.hero { grid-template-columns: 1fr; gap: 28px; }
	.hero-shot { max-width: 320px; }
	.cards { grid-template-columns: 1fr; }
	section, .hero { padding: 48px 16px; }
	.logo { width: 240px; }
}
/* grid children may shrink below their content (long words, pills), so nothing pushes the page sideways on a phone */
.hero > *, .cards > *, .bugs > * { min-width: 0; }
body { overflow-x: hidden; }
/* service icons: simple-icons paths inlined in the HTML, filled with the button's colour */
.btn { flex-direction: row; align-items: center; gap: 12px; }
.btn > span { display: flex; flex-direction: column; }
.ico { width: 26px; height: 26px; flex: none; fill: currentColor; }
.note-small { font-size: 14px; margin-top: 14px; }

/* the faction heading with its emblem */
h2.faction { display: flex; align-items: center; gap: 12px; }
h2.faction img { width: 40px; height: 40px; flex: none; }
/* bug photos open full size */
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.zoom img { display: block; width: 100%; height: auto; transition: transform .15s; }
.zoom:hover img, .zoom:focus-visible img { transform: scale(1.03); }
.zoom:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
#lightbox { padding: 0; border: 1px solid var(--yellow); background: var(--panel); max-width: min(92vw, 1000px); max-height: 92vh; }
#lightbox::backdrop { background: rgba(0, 0, 0, .8); }
#lightbox img { display: block; width: 100%; height: auto; max-height: 92vh; object-fit: contain; }
#lightbox .close { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }

/* --- phones first (about 60% of visitors) and a checklist pass: tap targets, focus, motion, layout shift --- */
html { scroll-padding-top: 64px; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 10; background: var(--yellow); color: #111; padding: 10px 14px; font-family: Anton, sans-serif; text-transform: uppercase; text-decoration: none; }
.skip:focus { top: 8px; }
a:focus-visible, .btn:focus-visible, summary:focus-visible, video:focus-visible, #lightbox .close:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
}
nav { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
.brand img { height: auto; }
.hero-shot img { width: 100%; height: auto; }
.bugs img { height: auto; }
.wall img { width: 100%; height: auto; }

/* patch notes fold: the latest open, older ones a tap away */
details.note > summary { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; list-style: none; cursor: pointer; min-height: 44px; align-content: center; }
details.note > summary::-webkit-details-marker { display: none; }
details.note > summary::after { content: '+'; margin-left: auto; font: 400 24px/1 Anton, sans-serif; color: var(--yellow); }
details.note[open] > summary::after { content: '\2212'; }
details.note > summary time { color: var(--dim); font-size: 14px; }
details.note > summary h3 { margin: 0; font-size: 24px; }

@media (max-width: 820px) {
	/* the section links stay on phones: one row that scrolls sideways under the brand */
	nav { flex-wrap: wrap; gap: 4px 16px; padding-top: 8px; padding-bottom: 0; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
	nav .links { display: flex; width: 100%; gap: 20px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	nav .links::-webkit-scrollbar { display: none; }
	nav .links a { flex: none; padding: 10px 0 12px; font-size: 15px; }
	html { scroll-padding-top: 100px; }
	.brand { font-size: 20px; }
	.lead { font-size: 18px; }
	.hero-shot { max-width: 260px; margin: 0 auto; }
	.buttons { flex-direction: column; }
	.btn { width: 100%; min-height: 56px; padding: 10px 18px; }
	.cards article { padding: 16px; }
	.cards b { font-size: 32px; }
	h2.sub { margin-top: 48px; }
	.bugs { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.wall { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
	/* a video and a slice of the next one, so it reads as a row to swipe */
	.video { flex-basis: 66vw; max-width: 280px; }
	.videos { margin-right: -16px; padding-right: 16px; scroll-padding-left: 0; }
	.note { padding: 14px 16px; }
	details.note > summary h3 { font-size: 21px; }
	#lightbox { max-width: 100vw; max-height: 100dvh; }
	#lightbox .close { width: 48px; height: 48px; }
	footer { padding-bottom: max(32px, env(safe-area-inset-bottom)); }
}
@media (max-width: 820px) {
	/* the logo small so the buttons reach the first screen */
	.hero { padding-top: 20px; }
	.logo { width: 150px; margin-bottom: 4px; }
}
.logo { height: auto; }
.video video { height: auto; }
details.note > summary { flex-wrap: nowrap; }
details.note > summary time { flex: none; }
details.note > summary h3 { flex: 1; min-width: 0; }
@media (max-width: 820px) {
	/* the YouTube / TikTok buttons right under the pitch, inside the first screen */
	.hero-text { display: flex; flex-direction: column; }
	.hero-text .buttons { order: 3; margin-top: 0; margin-bottom: 18px; }
	.hero-text .status { order: 4; }
	.hero-text .when { order: 5; }
	/* three bugs a row: the gallery is half as long to scroll past */
	.bugs { grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.bugs figcaption { font-size: 12px; padding: 4px 6px; line-height: 1.2; }
}

/* supporters: names in a wrapping row, Super Citizens in yellow */
#supporters h3 { font-size: 20px; margin: 18px 0 8px; }
#supporters .dim { color: var(--dim); }
.names { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.names li { background: var(--panel); border: 1px solid var(--line); padding: 4px 12px; }
.names.super li { border-color: var(--yellow); color: var(--yellow); font-family: Anton, sans-serif; text-transform: uppercase; }
