/*
 * Public homepage. Container 1200 with 120 side padding at 1440 (24 on
 * mobile). Alternating text/media ≥1024; single column below with media
 * full-bleed. Sections separate by tone and space, never rules.
 */
body.variant-home { background: var(--bg-home); }

.home-header { height: 56px; display: flex; align-items: center; gap: 40px; padding: 0 16px; background: var(--bg-home); }
.home-header .logo { font-size: 12px; }
.home-nav { display: none; }
.home-header__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.home-header__actions .btn--ghost { padding: 0 4px; height: 40px; }
@media (min-width: 1024px) {
	.home-header { height: 72px; padding: 0 48px; }
	.home-header .logo { font-size: 15px; }
	.home-nav { display: flex; gap: 28px; font-size: 15px; font-weight: 600; }
	.home-nav a { color: var(--fg-secondary); }
	.home-nav a:hover { color: var(--fg-primary); }
	.home-header__actions .btn { height: 40px; }
	.home-header__actions .btn--ghost { padding: 0 16px; }
	.home-header__actions .btn--primary { padding: 0 18px; }
}

/* Class is .homepage, not .home: WordPress puts .home on <body> for the front
   page, and an overflow rule on body propagates to the viewport and kills
   document scrolling. overflow-x: clip trims the full-bleed wordmark without
   creating a scroll container. */
.homepage { --home-pad: 24px; overflow-x: clip; }
@media (min-width: 1024px) { .homepage { --home-pad: max(48px, calc((100% - var(--home-max)) / 2)); } }

.home-tone-mid { background: var(--bg-home-mid); }
.home-tone-graphite { background: var(--bg-graphite); }
.home-tone-end { background: var(--bg-home); }

.home-kicker { font: 700 11px/1.3 var(--font-ui); letter-spacing: 0.11em; text-transform: uppercase; color: var(--accent-hover); padding: 0 var(--home-pad); }
.home-label { display: block; font: 700 10.5px/1.3 var(--font-ui); letter-spacing: 0.09em; text-transform: uppercase; color: var(--fg-tertiary); }
.home-type { font: 650 10px/1 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-tertiary); margin-left: 6px; }
.home-display { font-family: var(--font-display); font-weight: 900; font-stretch: 112%; font-size: 44px; line-height: 0.95; letter-spacing: -0.035em; }
.home-lede { font-size: 17px; color: var(--fg-secondary); line-height: 1.5; margin-top: 18px; }
.home-link { font-size: 15px; font-weight: 600; color: var(--fg-primary); }
.home-link:hover { color: var(--accent-text-hover); }
.home-link--sm { font-size: 16px; font-weight: 650; margin-top: 32px; }
.link-text { color: var(--accent-text); }

/* Hero */
.home-hero { min-height: 700px; display: flex; flex-direction: column; justify-content: center; gap: 36px; padding: 40px 24px 80px; }
/* Maxxer Cat: the hero's background. Oversized and faint, behind the type,
   cut by the screen edge and by the next section. */
.home-hero { position: relative; isolation: isolate; overflow: clip; }
.home-hero__cat { position: absolute; z-index: -1; top: 27%; right: -34%; height: 100%; width: auto; opacity: 0.09; }
@media (min-width: 640px) { .home-hero__cat { right: -24%; } }
/*
 * Hero logo sizing. The logo's width is intrinsic to its type: the MAXXING
 * plate measures --logo-width-em (see app.css). Fixed font sizes overflowed
 * narrow phones, so the size is derived from the space actually available
 * (container query units on the h1) and capped at the approved size per
 * breakpoint: fills the content width on small phones, never exceeds design.
 */
.home-hero__logo { container-type: inline-size; width: 100%; display: flex; justify-content: flex-start; font-size: inherit; line-height: 1; }
.home-hero__logo .logo { --logo-max: 54px; font-size: min(var(--logo-max), 100cqi / var(--logo-width-em)); }
.home-hero__tagline { font-size: 22px; font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; color: var(--fg-body); }
.home-hero__ctas { display: flex; flex-direction: column; gap: 6px; }
.home-hero__ctas .btn { height: 52px; font-size: 16px; }
.home-hero__ctas .home-link { height: 48px; display: flex; align-items: center; justify-content: center; }
@media (min-width: 640px) { .home-hero__logo .logo { --logo-max: clamp(72px, 9vw, 128px); } }
/* Desktop: the logo also scales with the viewport height, so laptops (768, 720 high)
   keep the logo, tagline and buttons in the first view with room above the logo. */
@media (min-width: 1024px) { .home-hero__logo .logo { --logo-max: clamp(64px, min(9vw, 15vh), 128px); } }
@media (min-width: 1024px) {
	.home-hero { min-height: clamp(560px, calc(100vh - 72px), 820px); align-items: center; gap: clamp(26px, 4vh, 44px); padding: clamp(36px, 7vh, 80px) 48px 64px; }
	.home-hero__logo { justify-content: center; }
	.home-hero__tagline { font-size: 30px; line-height: 1.3; letter-spacing: -0.015em; text-align: center; }
	.home-hero__ctas { flex-direction: row; align-items: center; gap: 28px; }
	.home-hero__ctas .btn { height: 56px; font-size: 17px; padding: 0 28px; }
	.home-hero__ctas .home-link { font-size: 17px; height: auto; }
	.home-hero__cat { top: 4%; right: -5vw; height: 132%; opacity: 0.11; }
}
/* Hero motion: the logo drops 8px and settles (320ms), then one light sweep
   crosses the plate (360ms). Once per session. The plate is the lower 61.3 %
   of the artwork (its frame starts 38.7 % down). */
.home-hero__logo .logo { position: relative; overflow: hidden; }
html:not(.intro-seen) .home-hero__logo .logo { animation: plate-drop 320ms var(--ease-out) both; }
html:not(.intro-seen) .home-hero__logo .logo::after {
	content: ""; position: absolute; inset: 38.7% 0 0; pointer-events: none;
	background: linear-gradient(100deg, transparent 30%, rgba(243, 242, 239, 0.22) 50%, transparent 70%);
	transform: translateX(-110%); animation: plate-sweep 360ms ease-out 320ms both;
}
@keyframes plate-drop { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes plate-sweep { from { transform: translateX(-110%); } to { transform: translateX(110%); } }

/* What's maxxing right now */
.home-now { padding: 96px 0; }
.home-now__grid { margin-top: 24px; display: flex; flex-direction: column; }
/* No genuine activity yet: the section is "New on Engine", factual and sourced. */
/* The 640px measure is for the text: content-box keeps the fluid --home-pad
   gutter out of it (under border-box a wide screen's gutter ate the width). */
.home-now__intro { box-sizing: content-box; padding: 0 var(--home-pad); margin-top: 12px; color: var(--fg-secondary); font-size: 15px; max-width: 640px; }
.home-now__engine { margin-top: 16px; padding: 0 var(--home-pad); }
.home-now__more { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 20px var(--home-pad) 0; }
.home-split__links { display: flex; flex-wrap: wrap; gap: 0 28px; }
.showcase-found__source { display: block; }
.showcase-found__source .source-card { height: 100%; }
@media (min-width: 1024px) { .home-now__engine { margin-top: 28px; } .home-now__intro { font-size: 17px; } }
.home-now__trending { display: block; color: var(--fg-primary); }
.art-frame.home-now__art { width: min(calc(100% - 2 * var(--home-pad)), 300px); margin: 0 var(--home-pad); font-size: 10.5px; }
.home-now__caption { display: block; padding: 16px 24px 0; }
.home-now__caption .home-label { font-family: var(--font-ui); text-transform: none; letter-spacing: 0; font-size: 12px; }
.home-now__game { display: block; font-size: 20px; font-weight: 700; margin-top: 2px; }
.home-now__meta { display: none; }
.home-now__side { display: flex; flex-direction: column; gap: 48px; padding: 56px 24px 0; }
.home-now__win, .home-now__talk { display: block; color: var(--fg-primary); }
.home-now__multi { display: block; font-family: var(--font-display); font-weight: 900; font-size: 84px; line-height: 0.85; letter-spacing: -0.045em; margin-top: 12px; }
.home-now__money { display: block; font-size: 16px; color: var(--fg-secondary); margin-top: 12px; }
.home-now__money strong { color: var(--fg-primary); font-weight: 650; }
.home-now__question { display: block; font-size: 20px; font-weight: 700; line-height: 1.3; margin-top: 10px; }
.home-now__talk:hover .home-now__question, .home-now__trending:hover .home-now__game { color: var(--accent-text-hover); }
.home-now__replies { font-size: 15px; color: var(--fg-secondary); margin-top: 10px; }
@media (min-width: 1024px) {
	.home-now { padding: 160px 0 180px; }
	.home-kicker { font-size: 13px; }
	.home-now__grid { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 80px; align-items: end; padding: 0 var(--home-pad); }
	.art-frame.home-now__art { width: 340px; margin: 0; border-radius: 4px; font-size: 12px; }
	.home-now__caption { display: flex; align-items: baseline; gap: 20px; padding: 24px 0 0; }
	.home-now__caption .home-label { font-family: var(--font-ui); text-transform: uppercase; letter-spacing: 0.09em; font-size: 11px; font-weight: 700; }
	.home-now__game { font-size: 28px; letter-spacing: -0.02em; margin: 0; }
	.home-now__meta { display: inline; font-size: 16px; color: var(--fg-secondary); }
	.home-now__side { gap: 64px; padding: 0 0 64px; }
	.home-label { font-size: 12px; }
	.home-now__multi { font-size: 120px; margin-top: 16px; }
	.home-now__money { font-size: 18px; margin-top: 16px; }
	.home-now__question { font-size: 24px; letter-spacing: -0.015em; margin-top: 12px; }
}

/* This is where Maxxers hang out */
.home-hangout { padding: 112px 24px 112px; }
.home-hangout__grid { margin-top: 48px; display: flex; flex-direction: column; gap: 56px; }
.home-hangout__side { display: flex; flex-direction: column; gap: 56px; }
.showcase-found { display: flex; flex-direction: column; gap: 14px; color: var(--fg-primary); }
.showcase-found__who { display: flex; align-items: center; gap: 12px; }
.showcase__handle { display: block; font-size: 14px; font-weight: 700; }
.showcase__credit { display: block; font-size: 13.5px; color: var(--fg-secondary); margin-top: 14px; }
.showcase__credit strong { color: var(--fg-primary); font-weight: 650; }
.showcase-found__media { aspect-ratio: 16 / 9; width: 100%; border-radius: 4px; object-fit: cover; }
.showcase-found__media span { display: none; }
.showcase-found__result { display: flex; align-items: baseline; gap: 16px; }
.showcase-found__multi { font-family: var(--font-display); font-weight: 900; font-size: 36px; letter-spacing: -0.04em; line-height: 1; }
.showcase-found__meta { font-size: 18px; color: var(--fg-secondary); }
.showcase__who { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.showcase__who .showcase__handle { font-size: inherit; }
.showcase-hunt, .showcase-talk { display: block; color: var(--fg-primary); }
.showcase-hunt__net { display: block; font-family: var(--font-display); font-weight: 900; font-size: 52px; letter-spacing: -0.04em; line-height: 1; margin-top: 12px; }
.showcase-hunt__meta { display: block; font-size: 14px; color: var(--fg-secondary); margin-top: 6px; }
.showcase-hunt__caption { font-size: 17px; margin-top: 14px; }
.showcase-talk__question { display: block; font-size: 20px; font-weight: 700; line-height: 1.3; margin-top: 10px; }
.showcase-talk__cta { font-size: 15px; color: var(--accent-text); margin-top: 12px; font-weight: 600; }
.showcase-talk:hover .showcase-talk__question, .showcase-found:hover .showcase-found__multi { color: var(--accent-text-hover); }
@media (min-width: 1024px) {
	.home-hangout { padding: 180px var(--home-pad) 180px; }
	.home-hangout .home-display { font-size: 88px; line-height: 0.92; font-stretch: 118%; max-width: 1000px; }
	.home-hangout__grid { margin-top: 88px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 96px; }
	.home-hangout__side { gap: 72px; padding-top: 120px; }
	.showcase-found { gap: 18px; }
	.showcase__handle { font-size: 15px; }
	.showcase__credit { font-size: 14px; margin-top: 2px; }
	.showcase-found__media span { display: inline; }
	.showcase-found__multi { font-size: 48px; }
	.showcase__who { font-size: 15px; }
	.showcase-hunt__net { font-size: 72px; margin-top: 20px; }
	.showcase-hunt__meta { font-size: 16px; margin-top: 10px; }
	.showcase-talk__question { font-size: 26px; letter-spacing: -0.015em; margin-top: 16px; }
}
.showcase-found .media-ph { padding: 20px; font-size: 12px; }

/* Split sections */
.home-split { display: flex; flex-direction: column; padding: 112px 24px 80px; }
.home-split--share { padding: 80px 24px 112px; }
.home-split--profile { padding: 112px 24px 64px; }
.home-split__media { order: 2; margin-top: 36px; }
.home-split--share .home-split__text { order: 1; }

.tracker-demo { margin-top: 36px; background: var(--bg-deep); border-radius: var(--r-media); padding: 18px; }
.tracker-demo__head { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; font-weight: 700; }
.tracker-demo__count { font: 600 11px/1 var(--font-ui); letter-spacing: 0.02em; color: var(--fg-secondary); }
.progress--demo { height: 3px; margin-top: 16px; border-radius: 0; }
.progress--demo .progress__bar { border-radius: 0; }
.tracker-demo__table { display: grid; grid-template-columns: 1fr auto; margin-top: 4px; font-size: 14px; }
.tracker-demo__td { padding: 12px 0; border-top: 1px solid var(--line-row); }
.tracker-demo__td.num { padding-left: 12px; }
.tracker-demo__th { color: var(--fg-tertiary); font-size: 12px; padding: 10px 0; }
@media (min-width: 1024px) {
	.home-split { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 120px; align-items: center; padding: 200px var(--home-pad) 120px; }
	.home-split--share { grid-template-columns: minmax(0, 1fr) 420px; padding: 120px var(--home-pad) 200px; }
	.home-split--profile { padding: 200px var(--home-pad) 160px; }
	.home-split--track { padding: 160px var(--home-pad); }
	.home-split__media, .home-split--share .home-split__text { order: initial; margin-top: 0; }
	.home-split .home-display { font-size: 80px; line-height: 0.92; font-stretch: 118%; }
	.home-lede { font-size: 20px; margin-top: 28px; }
	.home-split__media .share-card-frame { max-width: 750px; }
	.tracker-demo { margin-top: 0; padding: 28px 32px; }
	.tracker-demo__head { font-size: 20px; }
	.tracker-demo__count { font-size: 12px; }
	.tracker-demo__table { grid-template-columns: 1fr 80px 80px 100px; margin-top: 20px; font-size: 15px; }
	.tracker-demo__td { padding: 14px 0; }
}

/* Join + wordmark + footer */
.home-join { display: flex; flex-direction: column; gap: 20px; padding: 48px 24px 0; }
.home-join__title { font-size: 20px; font-weight: 700; }
.home-join .btn { height: 52px; font-size: 16px; }
.home-wordmark { display: flex; justify-content: center; overflow: hidden; padding-top: 72px; background: var(--bg-home); }
.home-wordmark span { font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-size: 96px; line-height: 0.78; letter-spacing: -0.03em; white-space: nowrap; margin: 0 -24px; }
.home-footer { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 24px; font-size: 12.5px; color: var(--fg-tertiary); background: var(--bg-home); }
.home-footer__links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.home-footer a { color: var(--fg-tertiary); }
.home-footer a:hover { color: var(--fg-primary); }
@media (min-width: 640px) { .home-wordmark span { font-size: 22vw; } }
@media (min-width: 1024px) {
	.home-join { align-items: center; gap: 28px; padding: 80px 0 0; }
	.home-join__title { font-size: 24px; letter-spacing: -0.015em; }
	.home-join .btn { height: 56px; font-size: 17px; padding: 0 28px; }
	.home-wordmark span { font-size: min(330px, 23vw); margin: 0 -60px; }
	.home-footer { height: 80px; align-items: center; gap: 28px; padding: 0 48px; font-size: 13px; }
	.home-footer__links { gap: 8px 28px; }
}

/* 1024–1279: same composition, tighter rhythm so nothing overflows. */
@media (min-width: 1024px) and (max-width: 1279.98px) {
	.home-split { grid-template-columns: 360px minmax(0, 1fr); gap: 64px; }
	.home-split--share { grid-template-columns: minmax(0, 1fr) 360px; }
	.home-split .home-display { font-size: 64px; }
	.home-hangout .home-display { font-size: 72px; }
	.home-hangout__grid { gap: 64px; }
	.home-now__grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
	.home-now__multi { font-size: 100px; }
}

/* Tools: the three real tools, each a screenshot of its own UI. */
.home-tools { padding: 24px var(--home-pad) 96px; }
.home-tools .home-kicker { padding: 0; }
.home-tools__title { margin-top: 12px; font-size: 36px; max-width: 760px; }
.home-tools__grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 48px; }
.home-tool { display: flex; flex-direction: column; color: var(--fg-primary); }
.home-tool__shot { display: block; aspect-ratio: 4 / 3; border-radius: var(--r-panel); overflow: hidden; background: var(--bg-deep); box-shadow: inset 0 0 0 1px var(--line-subtle); }
.home-tool__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.home-tool__name { margin-top: 20px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.home-tool__text { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--fg-secondary); }
.home-tool__cta { margin-top: 12px; font-size: 15px; font-weight: 650; color: var(--fg-primary); }
.home-tool:hover .home-tool__cta { color: var(--accent-text-hover); }
.home-tool:hover .home-tool__shot { box-shadow: inset 0 0 0 1px var(--line-strong); }
@media (min-width: 640px) and (max-width: 1023.98px) {
	.home-tools__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
}
@media (min-width: 1024px) {
	.home-tools { padding: 40px var(--home-pad) 160px; }
	.home-tools__title { font-size: 64px; line-height: 0.95; font-stretch: 118%; margin-top: 20px; }
	.home-tools__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 64px; }
}

/* Track: the totals strip mirrors the real tracker. */
.home-split__note { margin-top: 12px; font-size: 15px; color: var(--fg-tertiary); }
.tracker-demo__totals { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, max-content); gap: 24px; margin-top: 16px; }
.tracker-demo__totals > span { min-width: 0; }
.tracker-demo__totals > span { display: flex; flex-direction: column; gap: 2px; }
.tracker-demo__totals strong { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: 20px; letter-spacing: -0.02em; line-height: 1.1; }
.tracker-demo__totals > span > span { font-size: 12px; color: var(--fg-secondary); }
.tracker-demo .progress--demo { margin-top: 14px; }
@media (min-width: 1024px) {
	.home-split__note { font-size: 16px; margin-top: 16px; }
	.tracker-demo__totals { gap: clamp(20px, 2.6vw, 40px); margin-top: 24px; }
	.tracker-demo__totals strong { font-size: clamp(22px, 1.9vw, 28px); }
	.tracker-demo__totals > span > span { font-size: 13px; }
}

/* Community: one raised panel of feed posts. The featured Win (real, or the
   Candy Dash clip), then members' posts or the written example ones. */
.home-hangout__lede { max-width: 640px; }
.home-feed { margin-top: 36px; padding: 16px 16px 0; background: var(--bg-raised); border-radius: var(--r-panel); }
.home-feed__label { margin: 0; font: 700 10.5px/1.3 var(--font-ui); letter-spacing: 0.09em; text-transform: uppercase; color: var(--fg-tertiary); }
.home-feed__grid { margin-top: 4px; }
@media (min-width: 1024px) { .home-feed__label { font-size: 12px; } }
.home-feed .feed-item { padding: 16px 0; }
.home-feed .feed-item:last-child, .home-feed__side .feed-item:last-child { border-bottom: 0; }
.home-feed__win { border-bottom: 1px solid var(--line-subtle); }
.home-feed .feed-item__media .art-fallback { width: 100%; height: 100%; }
.home-feed .hunt-result { background: var(--bg-input); }
.home-feed__reply { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--fg-body); padding-left: 12px; border-left: 2px solid var(--line-strong); }
.home-feed__reply .avatar { flex: none; font-size: 11px; }
.home-feed__reply strong { font-weight: 700; color: var(--fg-primary); margin-right: 4px; }
.home-hangout__more { display: inline-flex; margin-top: 28px; }
@media (min-width: 1024px) {
	.home-feed { margin-top: 64px; padding: 28px 32px 8px; }
	.home-feed__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 0 56px; margin-top: 8px; }
	.home-feed__side .feed-item { padding: 24px 0; }
	.home-feed__side .feed-item:first-child { padding-top: 20px; }
	.home-feed__win { border-bottom: 0; }
	.home-feed .feed-item { padding: 20px 0; }
	.home-feed__side .feed-item:first-child { border-bottom: 1px solid var(--line-subtle); }
	.home-hangout__lede { margin-top: 28px; }
	.home-hangout__more { margin-top: 40px; font-size: 17px; }
}

/* Share: how a card gets to X. */
.home-steps { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; }
.home-steps li { counter-increment: step; display: flex; gap: 12px; font-size: 15px; color: var(--fg-body); line-height: 1.45; }
.home-steps li::before { content: counter(step); flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--fg-primary); box-shadow: inset 0 0 0 1px var(--line-strong); }
@media (min-width: 1024px) { .home-steps { margin-top: 32px; gap: 12px; } .home-steps li { font-size: 16px; } }

/* Become a Maxxer: an example identity card. Level from taking part only. */
.maxxer-card { margin-top: 36px; padding: 20px; background: var(--bg-raised); border-radius: var(--r-panel); display: flex; flex-direction: column; gap: 20px; }
.maxxer-card__id { display: flex; align-items: center; gap: 16px; }
.maxxer-card .maxxer-card__avatar { --size: 64px !important; font-size: 26px; flex: none; }
.maxxer-card__name { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: 26px; letter-spacing: -0.025em; line-height: 1; }
.maxxer-card__name .badge { font-stretch: 100%; }
.maxxer-card__handle { display: block; margin-top: 6px; font-size: 14px; color: var(--fg-secondary); }
.maxxer-card__stats { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line-subtle); }
.maxxer-card__stats > span { display: flex; flex-direction: column; gap: 2px; }
.maxxer-card__stats strong { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.maxxer-card__stats > span > span { font-size: 12.5px; color: var(--fg-secondary); }
.maxxer-card__activity { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line-subtle); display: grid; gap: 10px; font-size: 14px; color: var(--fg-body); }
.maxxer-card__activity span { font: 650 10px/1 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-tertiary); margin-right: 8px; }
@media (min-width: 1024px) {
	.maxxer-card { margin-top: 0; padding: 32px 36px; gap: 24px; }
	.maxxer-card .maxxer-card__avatar { --size: 88px !important; font-size: 34px; }
	.maxxer-card__name { font-size: 36px; }
	.maxxer-card__handle { font-size: 16px; }
	.maxxer-card__stats { gap: 48px; padding-top: 24px; }
	.maxxer-card__stats strong { font-size: 32px; }
	.maxxer-card__stats > span > span { font-size: 13.5px; }
	.maxxer-card__activity { padding-top: 20px; font-size: 15px; }
}

/* ── Engine on the homepage (inc/home-engine.php, all from the pipeline) ── */

/* Hero: live counts under the CTAs. */
.home-pulse { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--fg-secondary); }
.home-pulse a { color: inherit; transition: color var(--t-hover); }
.home-pulse a:hover { color: var(--fg-primary); }
.home-pulse strong { color: var(--fg-primary); font-weight: 700; font-variant-numeric: tabular-nums; }
@media (min-width: 1024px) { .home-pulse { justify-content: center; font-size: 15px; gap: 8px 32px; } }

/* Hero: a reel of recent Engine art, two rows drifting in opposite
   directions. Duplicated track for a seamless loop; pauses on hover or
   focus; static and scrollable with reduced motion. */
.home-reel { display: flex; flex-direction: column; gap: 10px; align-self: stretch; margin: 8px -24px 0; overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.home-reel__row { overflow: hidden; }
.home-reel__track { display: flex; gap: 10px; width: max-content; animation: reel 70s linear infinite; }
.home-reel__row--b .home-reel__track { animation-direction: reverse; animation-duration: 84s; }
.home-reel:hover .home-reel__track, .home-reel:focus-within .home-reel__track { animation-play-state: paused; }
.home-reel__tile { display: block; flex: none; width: 92px; border-radius: var(--r-control); }
.home-reel__tile .engine-art { width: 100%; border-radius: var(--r-control); }
.home-reel__tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@keyframes reel { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 5px)); } }
@media (min-width: 1024px) {
	.home-reel { margin: 16px -48px 0; gap: 14px; }
	.home-reel__track { gap: 14px; animation-name: reel-lg; }
	.home-reel__tile { width: 132px; }
}
@keyframes reel-lg { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 7px)); } }
@media (prefers-reduced-motion: reduce) {
	.home-reel__row { overflow-x: auto; scrollbar-width: none; }
	.home-reel__track { animation: none; }
}

/* New on Engine: art cards. Phones swipe a row, desktop shows a grid. */
.home-now__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 0 var(--home-pad); }
.home-now__head .home-kicker, .home-now__head .home-now__intro { padding: 0; }
.home-now__head .home-link { flex: none; padding-bottom: 2px; }
.home-fresh { display: grid; grid-auto-flow: column; grid-auto-columns: 58%; gap: 14px; margin-top: 24px; padding: 0 var(--home-pad) 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--home-pad); scrollbar-width: none; overscroll-behavior-x: contain; }
.home-fresh::-webkit-scrollbar { display: none; }
.home-fresh > li { scroll-snap-align: start; }
@media (min-width: 640px) { .home-fresh { grid-auto-columns: 30%; } }
@media (min-width: 1024px) {
	.home-fresh { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 24px; margin-top: 36px; overflow: visible; }
	.home-fresh .engine-card__title { font-size: 19px; }
}

/* This week on Engine */
.home-week { padding: 0 var(--home-pad) 96px; }
.home-week .home-kicker { padding: 0; }
.home-week__grid { display: grid; gap: 12px; margin-top: 20px; }
.week-tile { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 18px; border-radius: var(--r-panel); background: var(--bg-raised); color: var(--fg-primary); transition: background-color var(--t-hover), transform 160ms var(--ease-out); }
a.week-tile:hover { background: #16161A; }
.week-tile__label { font-size: 13px; color: var(--fg-secondary); line-height: 1.35; }
.week-tile__value { font-size: 14px; color: var(--fg-secondary); }
.week-tile__value strong { font-family: var(--font-display); font-weight: 900; font-stretch: 110%; font-size: 34px; letter-spacing: -0.02em; line-height: 1.05; color: var(--fg-primary); font-variant-numeric: tabular-nums; }
.week-tile__game { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.week-tile__by { font-size: 13px; color: var(--fg-secondary); }
.week-tile--game { flex-direction: row; align-items: center; gap: 16px; }
.week-tile--game .engine-art { width: 84px; }
.week-tile--game .week-tile__value strong { font-size: 24px; white-space: nowrap; }
.week-tile__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.week-bars { display: flex; align-items: flex-end; gap: 6px; height: 96px; margin-top: 10px; }
.week-bars__col { flex: 1; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 6px; height: 100%; min-width: 0; }
.week-bars__bar { display: block; height: max(3px, calc(var(--h) - 20px)); border-radius: 3px 3px 1px 1px; background: #2C2C33; transform-origin: bottom; transition: background-color var(--t-hover); }
.week-bars__col.is-today .week-bars__bar { background: var(--fg-label); }
.week-tile:hover .week-bars__bar { background: #3A3A42; }
.week-tile:hover .week-bars__col.is-today .week-bars__bar { background: var(--fg-primary); }
.week-bars__day { font-size: 11px; color: var(--fg-tertiary); text-align: center; white-space: nowrap; }
.reveal-on .home-week:not(.is-in) .week-bars__bar { transform: scaleY(0); }
.reveal-on .home-week .week-bars__bar { transition: transform 700ms var(--ease-out), background-color var(--t-hover); }
.week-studios { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; }
.week-studios a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 0; border-top: 1px solid var(--line-subtle); color: var(--fg-primary); }
.week-studios li:first-child a { border-top: 0; }
.week-studios .engine-art { width: 32px; border-radius: 4px; }
.week-studios__name { flex: 1; min-width: 0; font-weight: 650; font-size: 14.5px; overflow-wrap: anywhere; }
.week-studios__n { font-size: 13px; color: var(--fg-secondary); white-space: nowrap; }
.week-studios a:hover .week-studios__name { color: var(--accent-text); }
.home-week__more { display: inline-block; margin-top: 20px; }
@media (min-width: 1024px) {
	.home-week { padding-bottom: 120px; }
	.home-week__grid { grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; margin-top: 28px; }
	.week-tile { padding: 24px; }
	.week-tile--releases { grid-row: span 2; }
	.week-tile--studios { grid-column: 2 / span 2; }
	.week-bars { height: auto; min-height: 170px; flex: 1; gap: 10px; }
	.week-tile--game .engine-art { width: 96px; }
	.week-tile__value strong { font-size: 40px; }
	.week-tile--game .week-tile__value strong { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { .reveal-on .home-week:not(.is-in) .week-bars__bar { transform: none; } }

/* Tracker illustration: real Engine games with their art. */
.tracker-demo__game { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tracker-demo__game > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tracker-demo__game .engine-art { width: 26px; border-radius: 4px; }

/* Example feed: the game's own Engine art stands in for the screenshot. */
.home-feed__shot { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--bg-deep); }
.home-feed__shot .engine-art { width: auto; height: 86%; border-radius: var(--r-control); }
/* The example clip (home.php DEMO MEDIA): the poster frame is the picture until the clip plays, and if it can't. */
.home-feed__shot--clip { background-color: var(--bg-deep); background-position: center; background-size: contain; background-repeat: no-repeat; }
/* The whole replay viewport, never cropped to fill the frame: any spare space is the dark background. */
.home-feed__clip { display: block; width: 100%; height: 100%; object-fit: contain; background: transparent; }

/* Share: the real Engine game card under the example win card. */
.home-split__media { position: relative; }
.home-split__engine-card { display: block; margin-top: 18px; color: var(--fg-secondary); }
.home-split__engine-card img { display: block; width: 100%; height: auto; border-radius: 10px; }
.home-split__engine-note { display: block; margin-top: 10px; font-size: 14px; }
.home-split__engine-card:hover .home-split__engine-note { color: var(--fg-primary); }
@media (min-width: 1024px) {
	.home-split__engine-card { width: 72%; margin: 20px 0 0 auto; transition: transform 300ms var(--ease-out); }
	.home-split__engine-card:hover { transform: translateY(-4px); }
	.home-split__media .share-card-frame { position: relative; z-index: 2; }
}

/* ── Tool previews (parts/home-tool-preview.php): live, on Engine data ── */
/* The font scales with the card (container units), so each preview keeps
   its proportions like a screenshot at every width. */
.home-tool__shot--live { container-type: inline-size; }
.tool-mini { display: flex; flex-direction: column; height: 100%; padding: 1.1em 1.2em; font-size: 3.15cqi; line-height: 1.3; color: var(--fg-primary); overflow: hidden; }
.tool-mini small { font-size: 0.72em; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-tertiary); }
.tool-mini strong { font-weight: 700; }
.tool-mini .engine-art, .tool-mini .engine-art--xs { width: 1.9em; border-radius: 0.25em; }
.tool-mini__accent { color: var(--accent-text); font-weight: 650; }
.tool-mini__bar { display: flex; align-items: center; gap: 0.7em; padding-bottom: 0.8em; border-bottom: 1px solid var(--line-row); font-size: 1.05em; }
.tool-mini__bar strong { flex: 1; }
.tool-mini__back { color: var(--fg-secondary); }
.tool-mini__count small { margin-left: 0.2em; }
.tool-mini__totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6em; margin-top: 0.85em; }
.tool-mini__totals > span { display: flex; flex-direction: column; gap: 0.15em; font-size: 0.78em; color: var(--fg-secondary); }
.tool-mini__totals strong { font-size: 1.45em; color: var(--fg-primary); font-variant-numeric: tabular-nums; }
.tool-mini__progress { display: block; height: 0.22em; margin: 0.85em 0 0.3em; border-radius: 2px; background: var(--line-row); overflow: hidden; }
.tool-mini__progress > span { display: block; height: 100%; background: var(--accent); }
.tool-mini__row { display: flex; align-items: center; gap: 0.7em; padding: 0.5em 0; border-top: 1px solid var(--line-row); }
.tool-mini__n { width: 1.1em; flex: none; font-size: 0.8em; color: var(--fg-tertiary); }
.tool-mini__game { display: flex; flex-direction: column; gap: 0.1em; flex: 1; min-width: 0; }
.tool-mini__game strong, .tool-mini__box strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-mini__game > span, .tool-mini__ret > span, .tool-mini__box span span { font-size: 0.78em; color: var(--fg-tertiary); }
.tool-mini__ret { display: flex; flex-direction: column; align-items: flex-end; gap: 0.1em; flex: none; font-variant-numeric: tabular-nums; }
.tool-mini__ret.is-next strong { color: var(--fg-secondary); font-weight: 650; }
.tool-mini__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9em 0.8em; margin-top: 0.9em; }
.tool-mini__stats > span { display: flex; flex-direction: column; gap: 0.2em; }
.tool-mini__stats strong { font-family: var(--font-display); font-weight: 800; font-stretch: 106%; font-size: 1.3em; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.tool-mini__stats .is-down { color: var(--money-down); }
.tool-mini__boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6em; margin-top: auto; }
.tool-mini__foot { display: flex; align-items: baseline; gap: 0.6em; min-width: 0; margin-top: 0.7em; font-size: 0.85em; color: var(--fg-secondary); }
.tool-mini__foot > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-mini__box { display: flex; align-items: center; gap: 0.6em; min-width: 0; padding: 0.6em; border-radius: 0.5em; background: #121216; box-shadow: inset 0 0 0 1px var(--line-row); }
.tool-mini__box > span { display: flex; flex-direction: column; gap: 0.1em; min-width: 0; }
.tool-mini__box strong { font-size: 0.92em; }
.tool-mini__box .engine-art { width: 2.2em; }
.tool-mini__pick { display: flex; align-items: center; gap: 0.9em; }
.tool-mini .tool-mini__art { width: 6.6em; flex: none; border-radius: 0.4em; }
.tool-mini__pick-head { display: flex; flex-direction: column; gap: 0.2em; min-width: 0; }
.tool-mini__pick-head > span { font-size: 0.85em; color: var(--fg-secondary); }
.tool-mini__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--font-display); font-weight: 900; font-stretch: 108%; font-size: 1.65em; line-height: 1.05; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.tool-mini__facts { display: flex; flex-wrap: wrap; gap: 0.5em 1.3em; margin-top: 0.95em; }
.tool-mini__facts > span { display: flex; flex-direction: column; gap: 0.15em; }
.tool-mini__facts strong { font-size: 1.15em; font-variant-numeric: tabular-nums; }
.tool-mini__facts small { font-weight: 500; letter-spacing: 0; text-transform: none; }
.tool-mini__btn { display: flex; align-items: center; justify-content: center; height: 2.5em; border-radius: 0.45em; font-size: 0.9em; font-weight: 650; box-shadow: inset 0 0 0 1px var(--line-strong); }
.tool-mini__btn--primary { margin-top: auto; background: var(--accent); box-shadow: none; color: #fff; }
.tool-mini__btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5em; margin-top: 0.5em; }

/* ── Tracker panel: the example hunt plays forward once (app.js) ── */
.tracker-demo__td { transition: background-color 450ms var(--ease-out), color 450ms var(--ease-out); }
.tracker-demo__td.is-next { background: rgba(255, 255, 255, 0.035); }
.tracker-demo__ret.is-next { color: var(--fg-label) !important; }
.tracker-demo__ret.is-opening, .tracker-demo [data-k].is-ticking { animation: tick-in 420ms var(--ease-out); }
@keyframes tick-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.tracker-demo .progress__bar { transition: width 700ms var(--ease-out); }
.tracker-demo [data-k]:not(.progress__bar) { display: inline-block; font-variant-numeric: tabular-nums; }

/* ── Share preview: Engine art in the media slot when there is no screenshot ── */
.share-card__media > .art-frame { width: 100%; height: 100% !important; aspect-ratio: auto !important; border-radius: 0; }

/* Phones: text links get a 44 px hit area without changing how they look. */
@media (max-width: 1023.98px) {
	.home-pulse { gap: 0 22px; }
	.home-pulse a, .home-now__more .home-link, .home-week__more, .home-hangout__more { display: inline-flex; align-items: center; min-height: 44px; }
	.home-pulse a { gap: 0.28em; } /* A flex container drops the space between the number and its label. */
}

/* ── New on Engine coverflow (assets/js/home.js), phones and tablets ──
   Only when JS turns it on (.is-coverflow): every card sits in the same
   grid cell and JS places it on the ring with transforms. Reduced motion,
   no JS and desktop keep the rail and grid above. */
@media (max-width: 1023.98px) {
	.home-fresh.is-coverflow { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); grid-auto-columns: auto; gap: 0; margin-top: 28px; padding: 6px 0 4px; overflow: visible; scroll-snap-type: none; perspective: 1000px; perspective-origin: 50% 38%; touch-action: pan-y; -webkit-user-select: none; user-select: none; cursor: grab; }
	.home-fresh.is-coverflow.is-dragging { cursor: grabbing; }
	.home-fresh.is-coverflow > li { grid-area: 1 / 1; justify-self: center; width: min(64vw, 270px); transition: none !important; will-change: transform, opacity; backface-visibility: hidden; }
	.home-fresh.is-coverflow > li.is-away { pointer-events: none; }
	.home-fresh.is-coverflow img { -webkit-user-drag: none; pointer-events: none; }
	.home-fresh.is-coverflow .engine-card__title, .home-fresh.is-coverflow .engine-card__by, .home-fresh.is-coverflow .engine-card__facts { opacity: var(--cf-text, 1); text-align: center; }
	.home-fresh.is-coverflow .engine-card__facts { align-items: center; }
	.home-fresh.is-coverflow .engine-card__title { font-size: 19px; margin-top: 14px; }
	.home-fresh.is-coverflow .engine-card__link:focus-visible { outline: none; }
	.home-fresh.is-coverflow .engine-card__link:focus-visible .art-frame { outline: 2px solid var(--accent); outline-offset: 3px; }
}
@media (min-width: 640px) and (max-width: 1023.98px) { .home-fresh.is-coverflow > li { width: 250px; } }
