Indie game launch page with a crew select
A night-blue launch page for a cosy indie game: lanterns drift with your pointer over the key art, a crew select morphs a stats radar between three characters, a countdown flips to launch day, and the wishlist button lets loose a flutter of moths.
"use client";
import { useEffect, useRef, useState, type CSSProperties, type KeyboardEvent } from "react";
import "./game-page.css";
/**
* GamePage: a launch page for a small indie game.
* Its signature is the crew select: three illustrated characters, and a stats
* radar that morphs between them as you switch. Around it, a hero whose
* lanterns drift with your pointer, a live countdown to launch day and a
* wishlist button that releases a flutter of moths.
* It is a demo: connect `onWishlist` to your store page.
*/
const LAUNCH = Date.UTC(2027, 2, 12, 17, 0, 0);
const AXES = ["Speed", "Grit", "Craft", "Charm", "Sneak"];
const UNITS = ["days", "hours", "minutes", "seconds"];
const CREW = [
{
id: "pip",
name: "Pip",
role: "The courier",
line: "Fox mask, borrowed boots, never late. Pip can glide from any rooftop with a lantern held high.",
ability: "Glide: hop off a ledge and float to the next street.",
stats: [5, 2, 3, 4, 4],
img: "/images/landing-game-hero-02.jpg",
tone: "#1b2a5c",
},
{
id: "brask",
name: "Nana Brask",
role: "The blacksmith",
line: "Seventy-one and still swinging. She mends bridges the city forgot and lanterns nobody else can fix.",
ability: "Weld: repair a broken bridge and open a shortcut.",
stats: [2, 5, 4, 3, 1],
img: "/images/landing-game-hero-03.jpg",
tone: "#7a1f1a",
},
{
id: "tuck",
name: "Tuck",
role: "The inventor",
line: "Ten, curious, one sock always down. Tuck flies a kite drone that scouts the dark ahead.",
ability: "Scout: send the kite up to light a whole district for a moment.",
stats: [3, 1, 5, 5, 3],
img: "/images/landing-game-hero-04.jpg",
tone: "#8aa61c",
},
];
const FEATURES = [
{ title: "Deliver by moth", body: "Ride a giant, sleepy moth between floating districts. It goes where the light is." },
{ title: "Plan your route", body: "Every night the city rearranges. Draw a route, then find out what you missed." },
{ title: "Light the city", body: "Every lantern you hand over stays lit. By the end, the whole skyline is yours." },
];
function Photo({ src, alt, tone, className = "" }: { src: string; alt: string; tone: string; className?: string }) {
const img = useRef<HTMLImageElement>(null);
const [missing, setMissing] = useState(false);
useEffect(() => {
const el = img.current;
if (el && el.complete && el.naturalWidth === 0) setMissing(true);
}, []);
return (
<span className={`gu-moth__photo ${className}`} style={{ "--tone": tone } as CSSProperties}>
{!missing && <img ref={img} src={src} alt={alt} loading="lazy" onError={() => setMissing(true)} />}
</span>
);
}
const CX = 120;
const CY = 120;
const R = 86;
function pt(axis: number, v: number) {
const a = -Math.PI / 2 + (axis * 2 * Math.PI) / AXES.length;
return [CX + Math.cos(a) * R * v, CY + Math.sin(a) * R * v];
}
function shape(stats: number[]) {
return stats.map((s, i) => pt(i, s / 5)).map(([x, y], i) => `${i ? "L" : "M"}${x.toFixed(1)} ${y.toFixed(1)}`).join(" ") + "Z";
}
function useCountdown() {
const [left, setLeft] = useState<number | null>(null);
useEffect(() => {
const tick = () => setLeft(Math.max(0, LAUNCH - Date.now()));
const first = requestAnimationFrame(tick);
const id = setInterval(tick, 1000);
return () => {
cancelAnimationFrame(first);
clearInterval(id);
};
}, []);
return left;
}
export function GamePage({ onWishlist }: { onWishlist?: (on: boolean) => void }) {
const [who, setWho] = useState(0);
const [wished, setWished] = useState(false);
const [burst, setBurst] = useState(0);
const tabs = useRef<(HTMLButtonElement | null)[]>([]);
const left = useCountdown();
const c = CREW[who];
const parts =
left === null
? null
: [
{ v: Math.floor(left / 86400000), l: "days" },
{ v: Math.floor(left / 3600000) % 24, l: "hours" },
{ v: Math.floor(left / 60000) % 60, l: "minutes" },
{ v: Math.floor(left / 1000) % 60, l: "seconds" },
];
const onTabKey = (e: KeyboardEvent) => {
let n = who;
if (e.key === "ArrowRight") n = (who + 1) % CREW.length;
else if (e.key === "ArrowLeft") n = (who - 1 + CREW.length) % CREW.length;
else if (e.key === "Home") n = 0;
else if (e.key === "End") n = CREW.length - 1;
else return;
e.preventDefault();
setWho(n);
tabs.current[n]?.focus();
};
return (
<div className="gu-moth">
<header className="gu-moth__bar">
<a href="#" className="gu-moth__mark">
mothlight
</a>
<nav aria-label="Mothlight">
<a href="#moth-crew">Crew</a>
<a href="#moth-launch">Launch</a>
<a href="#moth-launch" className="gu-moth__navcta">
Wishlist
</a>
</nav>
</header>
<section
className="gu-moth__hero"
onPointerMove={(e) => {
if (e.pointerType !== "mouse") return;
const r = e.currentTarget.getBoundingClientRect();
e.currentTarget.style.setProperty("--mx", ((e.clientX - r.left) / r.width - 0.5).toFixed(3));
e.currentTarget.style.setProperty("--my", ((e.clientY - r.top) / r.height - 0.5).toFixed(3));
}}
onPointerLeave={(e) => {
e.currentTarget.style.setProperty("--mx", "0");
e.currentTarget.style.setProperty("--my", "0");
}}
>
<Photo
src="/images/landing-game-keyart-01.jpg"
alt="A courier with a lantern riding a giant moth over a floating city at night"
tone="#17214a"
className="gu-moth__keyart"
/>
<span className="gu-moth__lanterns" aria-hidden="true">
{Array.from({ length: 12 }, (_, i) => (
<i key={i} style={{ "--i": i } as CSSProperties} />
))}
</span>
<div className="gu-moth__hero-copy">
<h1>
{"mothlight".split("").map((ch, i) => (
<span key={i} style={{ "--i": i } as CSSProperties}>
{ch}
</span>
))}
</h1>
<p>Deliver lanterns across a floating city, one sleepy moth ride at a time.</p>
<p className="gu-moth__plat">PC, Mac and Switch. 12 March 2027.</p>
</div>
</section>
<section id="moth-crew" className="gu-moth__crew" aria-labelledby="moth-crew-title">
<h2 id="moth-crew-title">Pick your crew</h2>
<div className="gu-moth__tabs" role="tablist" aria-label="Characters">
{CREW.map((x, i) => (
<button
key={x.id}
ref={(el) => {
tabs.current[i] = el;
}}
type="button"
role="tab"
id={`moth-tab-${x.id}`}
aria-selected={who === i}
aria-controls="moth-panel"
tabIndex={who === i ? 0 : -1}
onClick={() => setWho(i)}
onKeyDown={onTabKey}
style={{ "--tone": x.tone } as CSSProperties}
>
<Photo src={x.img} alt="" tone={x.tone} className="gu-moth__thumb" />
<span>{x.name}</span>
</button>
))}
</div>
<div id="moth-panel" role="tabpanel" aria-labelledby={`moth-tab-${c.id}`} className="gu-moth__panel" style={{ "--tone": c.tone } as CSSProperties}>
<div className="gu-moth__portrait" key={c.id}>
<Photo src={c.img} alt={`${c.name}, ${c.role.toLowerCase()}`} tone={c.tone} className="gu-moth__portrait-img" />
</div>
<div className="gu-moth__info" key={`${c.id}-info`}>
<p className="gu-moth__role">{c.role}</p>
<h3>{c.name}</h3>
<p>{c.line}</p>
<p className="gu-moth__ability">{c.ability}</p>
</div>
<figure className="gu-moth__radar">
<svg viewBox="0 0 240 240" role="img" aria-label={AXES.map((a, i) => `${a} ${c.stats[i]} of 5`).join(", ")}>
{[0.2, 0.4, 0.6, 0.8, 1].map((k) => (
<path key={k} d={shape(AXES.map(() => k * 5))} className="gu-moth__web" />
))}
{AXES.map((a, i) => {
const [x, y] = pt(i, 1);
const [lx, ly] = pt(i, 1.24);
return (
<g key={a}>
<path d={`M${CX} ${CY} L${x} ${y}`} className="gu-moth__web" />
<text x={lx} y={ly} className="gu-moth__axis">
{a}
</text>
</g>
);
})}
<path d={shape(c.stats)} className="gu-moth__stat" />
{c.stats.map((s, i) => {
const [x, y] = pt(i, s / 5);
return <circle key={i} cx={x} cy={y} r="4.5" className="gu-moth__dot" />;
})}
</svg>
</figure>
</div>
</section>
<section className="gu-moth__features">
{FEATURES.map((f, i) => (
<div key={f.title} style={{ "--i": i } as CSSProperties}>
<svg viewBox="0 0 40 52" aria-hidden="true" className="gu-moth__lamp">
<path d="M14 6h12M20 0v6M10 12h20l-3 30H13z" />
<ellipse cx="20" cy="27" rx="6" ry="9" className="gu-moth__flame" />
</svg>
<h3>{f.title}</h3>
<p>{f.body}</p>
</div>
))}
</section>
<section id="moth-launch" className="gu-moth__launch" aria-labelledby="moth-launch-title">
<h2 id="moth-launch-title">The city lights up in</h2>
<div className="gu-moth__clock" aria-live="off">
{(parts ?? UNITS.map((l) => ({ v: -1, l }))).map((p) => (
<div key={p.l}>
<b key={p.v}>{p.v < 0 ? "--" : String(p.v).padStart(2, "0")}</b>
<span>{p.l}</span>
</div>
))}
</div>
<div className="gu-moth__wish">
<button
type="button"
aria-pressed={wished}
className="gu-moth__wishbtn"
onClick={() => {
const next = !wished;
setWished(next);
if (next) setBurst((b) => b + 1);
onWishlist?.(next);
}}
>
{wished ? "On your wishlist" : "Add to wishlist"}
</button>
{burst > 0 && wished && (
<span className="gu-moth__burst" key={burst} aria-hidden="true">
{Array.from({ length: 9 }, (_, i) => (
<i key={i} style={{ "--a": `${i * 40 + 10}deg`, "--i": i } as CSSProperties} />
))}
</span>
)}
<p aria-live="polite">{(18240 + (wished ? 1 : 0)).toLocaleString("en-GB")} people are waiting with you.</p>
</div>
</section>
<footer className="gu-moth__foot">
<span>© 2026 Small Hours Games</span>
<a href="#">Press kit</a>
<a href="#">Discord</a>
</footer>
</div>
);
}
Paste this into ChatGPT, Claude, Cursor, v0, Lovable or Bolt. It describes the layout, motion, colors and accessibility and includes the code, so the AI can rebuild it in any framework.
# Build this UI piece: Indie game launch page with a crew select
You are a senior front-end engineer. Recreate the piece below in my project. If I don't say which framework I use, ask once, then build it in that framework (React, Vue, Svelte, Angular, Astro, plain HTML/CSS/JS or anything else). Keep the behavior, motion, colors, spacing and accessibility exactly as described. Keep the code clean and commented for beginners.
## What it is
A night-blue launch page for a cosy indie game ("Mothlight": deliver lanterns across a floating city by riding a giant moth; PC, Mac and Switch, 12 March 2027). The hero is the key art with a slow drift, twelve glowing paper lanterns rising through it, and both layers shifting in opposite directions as the mouse moves (parallax only for a mouse). The lowercase title "mothlight" lands letter by letter out of a blur. The signature is "Pick your crew": three pill tabs with round thumbnails (Pip the courier, Nana Brask the blacksmith, Tuck the inventor) follow the tabs pattern (arrow keys, Home, End). The panel shows the portrait (swaps in with a tilt), the role, a line about them and their ability, and a five-axis radar (Speed, Grit, Craft, Charm, Sneak, 1–5) whose acid-green shape and dots morph springily to the new stats. The panel's glow takes the character's colour. Below: three features with flickering lantern icons, then "The city lights up in" with a days, hours, minutes and seconds countdown whose digits flip as they change, and a pulsing "Add to wishlist" button. Pressing it turns it acid green, adds one to the waiting count and sends nine little moths fluttering up.
## Palette
Night #0d1226, deep #070912, lantern #ff5a2a, glow #ffb347, cream #f6ecd9, acid #d7ff3a (also the focus ring), muted #9aa3c2. Character tones: Pip #1b2a5c, Nana Brask #7a1f1a, Tuck #8aa61c. Headings use a geometric sans (Futura, Century Gothic, Avenir Next); body is system-ui.
## Layout
- Bar (deep): lowercase wordmark, Crew, Launch and an acid "Wishlist" pill.
- Hero: full-bleed key art, lanterns, a dark fade, title, line and platforms.
- Crew: heading, tabs, then a rounded panel with portrait, info and radar in three columns (two below 760px with the radar under them, one below 560px).
- Features: three columns (one below 760px).
- Launch: a deep band with an orange glow from below, the countdown and the wishlist.
## Images
- landing-game-keyart-01.jpg (16:9) and landing-game-hero-02.jpg to -04.jpg (4:5), grainy illustrations. Until a file exists, each frame shows its character tone with a soft lantern glow.
## Accessibility
- Tabs use role="tablist", "tab" and "tabpanel" with aria-selected and roving tabindex.
- The radar is role="img" with a label reading every stat; the wishlist uses aria-pressed and the count is aria-live.
- The countdown starts after mount (shows "--" until then) and is not announced every second.
- prefers-reduced-motion turns off every animation and transition and hides the lanterns and moths.
## Connect it
`onWishlist(on)` fires when the wishlist button is toggled.
## Reference implementation
The original is written in React with one plain CSS file. Dependencies: none (plain React and CSS). Translate it faithfully; do not add new libraries unless my framework needs them.
### GamePage.tsx
```tsx
"use client";
import { useEffect, useRef, useState, type CSSProperties, type KeyboardEvent } from "react";
import "./game-page.css";
/**
* GamePage: a launch page for a small indie game.
* Its signature is the crew select: three illustrated characters, and a stats
* radar that morphs between them as you switch. Around it, a hero whose
* lanterns drift with your pointer, a live countdown to launch day and a
* wishlist button that releases a flutter of moths.
* It is a demo: connect `onWishlist` to your store page.
*/
const LAUNCH = Date.UTC(2027, 2, 12, 17, 0, 0);
const AXES = ["Speed", "Grit", "Craft", "Charm", "Sneak"];
const UNITS = ["days", "hours", "minutes", "seconds"];
const CREW = [
{
id: "pip",
name: "Pip",
role: "The courier",
line: "Fox mask, borrowed boots, never late. Pip can glide from any rooftop with a lantern held high.",
ability: "Glide: hop off a ledge and float to the next street.",
stats: [5, 2, 3, 4, 4],
img: "/images/landing-game-hero-02.jpg",
tone: "#1b2a5c",
},
{
id: "brask",
name: "Nana Brask",
role: "The blacksmith",
line: "Seventy-one and still swinging. She mends bridges the city forgot and lanterns nobody else can fix.",
ability: "Weld: repair a broken bridge and open a shortcut.",
stats: [2, 5, 4, 3, 1],
img: "/images/landing-game-hero-03.jpg",
tone: "#7a1f1a",
},
{
id: "tuck",
name: "Tuck",
role: "The inventor",
line: "Ten, curious, one sock always down. Tuck flies a kite drone that scouts the dark ahead.",
ability: "Scout: send the kite up to light a whole district for a moment.",
stats: [3, 1, 5, 5, 3],
img: "/images/landing-game-hero-04.jpg",
tone: "#8aa61c",
},
];
const FEATURES = [
{ title: "Deliver by moth", body: "Ride a giant, sleepy moth between floating districts. It goes where the light is." },
{ title: "Plan your route", body: "Every night the city rearranges. Draw a route, then find out what you missed." },
{ title: "Light the city", body: "Every lantern you hand over stays lit. By the end, the whole skyline is yours." },
];
function Photo({ src, alt, tone, className = "" }: { src: string; alt: string; tone: string; className?: string }) {
const img = useRef<HTMLImageElement>(null);
const [missing, setMissing] = useState(false);
useEffect(() => {
const el = img.current;
if (el && el.complete && el.naturalWidth === 0) setMissing(true);
}, []);
return (
<span className={`gu-moth__photo ${className}`} style={{ "--tone": tone } as CSSProperties}>
{!missing && <img ref={img} src={src} alt={alt} loading="lazy" onError={() => setMissing(true)} />}
</span>
);
}
const CX = 120;
const CY = 120;
const R = 86;
function pt(axis: number, v: number) {
const a = -Math.PI / 2 + (axis * 2 * Math.PI) / AXES.length;
return [CX + Math.cos(a) * R * v, CY + Math.sin(a) * R * v];
}
function shape(stats: number[]) {
return stats.map((s, i) => pt(i, s / 5)).map(([x, y], i) => `${i ? "L" : "M"}${x.toFixed(1)} ${y.toFixed(1)}`).join(" ") + "Z";
}
function useCountdown() {
const [left, setLeft] = useState<number | null>(null);
useEffect(() => {
const tick = () => setLeft(Math.max(0, LAUNCH - Date.now()));
const first = requestAnimationFrame(tick);
const id = setInterval(tick, 1000);
return () => {
cancelAnimationFrame(first);
clearInterval(id);
};
}, []);
return left;
}
export function GamePage({ onWishlist }: { onWishlist?: (on: boolean) => void }) {
const [who, setWho] = useState(0);
const [wished, setWished] = useState(false);
const [burst, setBurst] = useState(0);
const tabs = useRef<(HTMLButtonElement | null)[]>([]);
const left = useCountdown();
const c = CREW[who];
const parts =
left === null
? null
: [
{ v: Math.floor(left / 86400000), l: "days" },
{ v: Math.floor(left / 3600000) % 24, l: "hours" },
{ v: Math.floor(left / 60000) % 60, l: "minutes" },
{ v: Math.floor(left / 1000) % 60, l: "seconds" },
];
const onTabKey = (e: KeyboardEvent) => {
let n = who;
if (e.key === "ArrowRight") n = (who + 1) % CREW.length;
else if (e.key === "ArrowLeft") n = (who - 1 + CREW.length) % CREW.length;
else if (e.key === "Home") n = 0;
else if (e.key === "End") n = CREW.length - 1;
else return;
e.preventDefault();
setWho(n);
tabs.current[n]?.focus();
};
return (
<div className="gu-moth">
<header className="gu-moth__bar">
<a href="#" className="gu-moth__mark">
mothlight
</a>
<nav aria-label="Mothlight">
<a href="#moth-crew">Crew</a>
<a href="#moth-launch">Launch</a>
<a href="#moth-launch" className="gu-moth__navcta">
Wishlist
</a>
</nav>
</header>
<section
className="gu-moth__hero"
onPointerMove={(e) => {
if (e.pointerType !== "mouse") return;
const r = e.currentTarget.getBoundingClientRect();
e.currentTarget.style.setProperty("--mx", ((e.clientX - r.left) / r.width - 0.5).toFixed(3));
e.currentTarget.style.setProperty("--my", ((e.clientY - r.top) / r.height - 0.5).toFixed(3));
}}
onPointerLeave={(e) => {
e.currentTarget.style.setProperty("--mx", "0");
e.currentTarget.style.setProperty("--my", "0");
}}
>
<Photo
src="/images/landing-game-keyart-01.jpg"
alt="A courier with a lantern riding a giant moth over a floating city at night"
tone="#17214a"
className="gu-moth__keyart"
/>
<span className="gu-moth__lanterns" aria-hidden="true">
{Array.from({ length: 12 }, (_, i) => (
<i key={i} style={{ "--i": i } as CSSProperties} />
))}
</span>
<div className="gu-moth__hero-copy">
<h1>
{"mothlight".split("").map((ch, i) => (
<span key={i} style={{ "--i": i } as CSSProperties}>
{ch}
</span>
))}
</h1>
<p>Deliver lanterns across a floating city, one sleepy moth ride at a time.</p>
<p className="gu-moth__plat">PC, Mac and Switch. 12 March 2027.</p>
</div>
</section>
<section id="moth-crew" className="gu-moth__crew" aria-labelledby="moth-crew-title">
<h2 id="moth-crew-title">Pick your crew</h2>
<div className="gu-moth__tabs" role="tablist" aria-label="Characters">
{CREW.map((x, i) => (
<button
key={x.id}
ref={(el) => {
tabs.current[i] = el;
}}
type="button"
role="tab"
id={`moth-tab-${x.id}`}
aria-selected={who === i}
aria-controls="moth-panel"
tabIndex={who === i ? 0 : -1}
onClick={() => setWho(i)}
onKeyDown={onTabKey}
style={{ "--tone": x.tone } as CSSProperties}
>
<Photo src={x.img} alt="" tone={x.tone} className="gu-moth__thumb" />
<span>{x.name}</span>
</button>
))}
</div>
<div id="moth-panel" role="tabpanel" aria-labelledby={`moth-tab-${c.id}`} className="gu-moth__panel" style={{ "--tone": c.tone } as CSSProperties}>
<div className="gu-moth__portrait" key={c.id}>
<Photo src={c.img} alt={`${c.name}, ${c.role.toLowerCase()}`} tone={c.tone} className="gu-moth__portrait-img" />
</div>
<div className="gu-moth__info" key={`${c.id}-info`}>
<p className="gu-moth__role">{c.role}</p>
<h3>{c.name}</h3>
<p>{c.line}</p>
<p className="gu-moth__ability">{c.ability}</p>
</div>
<figure className="gu-moth__radar">
<svg viewBox="0 0 240 240" role="img" aria-label={AXES.map((a, i) => `${a} ${c.stats[i]} of 5`).join(", ")}>
{[0.2, 0.4, 0.6, 0.8, 1].map((k) => (
<path key={k} d={shape(AXES.map(() => k * 5))} className="gu-moth__web" />
))}
{AXES.map((a, i) => {
const [x, y] = pt(i, 1);
const [lx, ly] = pt(i, 1.24);
return (
<g key={a}>
<path d={`M${CX} ${CY} L${x} ${y}`} className="gu-moth__web" />
<text x={lx} y={ly} className="gu-moth__axis">
{a}
</text>
</g>
);
})}
<path d={shape(c.stats)} className="gu-moth__stat" />
{c.stats.map((s, i) => {
const [x, y] = pt(i, s / 5);
return <circle key={i} cx={x} cy={y} r="4.5" className="gu-moth__dot" />;
})}
</svg>
</figure>
</div>
</section>
<section className="gu-moth__features">
{FEATURES.map((f, i) => (
<div key={f.title} style={{ "--i": i } as CSSProperties}>
<svg viewBox="0 0 40 52" aria-hidden="true" className="gu-moth__lamp">
<path d="M14 6h12M20 0v6M10 12h20l-3 30H13z" />
<ellipse cx="20" cy="27" rx="6" ry="9" className="gu-moth__flame" />
</svg>
<h3>{f.title}</h3>
<p>{f.body}</p>
</div>
))}
</section>
<section id="moth-launch" className="gu-moth__launch" aria-labelledby="moth-launch-title">
<h2 id="moth-launch-title">The city lights up in</h2>
<div className="gu-moth__clock" aria-live="off">
{(parts ?? UNITS.map((l) => ({ v: -1, l }))).map((p) => (
<div key={p.l}>
<b key={p.v}>{p.v < 0 ? "--" : String(p.v).padStart(2, "0")}</b>
<span>{p.l}</span>
</div>
))}
</div>
<div className="gu-moth__wish">
<button
type="button"
aria-pressed={wished}
className="gu-moth__wishbtn"
onClick={() => {
const next = !wished;
setWished(next);
if (next) setBurst((b) => b + 1);
onWishlist?.(next);
}}
>
{wished ? "On your wishlist" : "Add to wishlist"}
</button>
{burst > 0 && wished && (
<span className="gu-moth__burst" key={burst} aria-hidden="true">
{Array.from({ length: 9 }, (_, i) => (
<i key={i} style={{ "--a": `${i * 40 + 10}deg`, "--i": i } as CSSProperties} />
))}
</span>
)}
<p aria-live="polite">{(18240 + (wished ? 1 : 0)).toLocaleString("en-GB")} people are waiting with you.</p>
</div>
</section>
<footer className="gu-moth__foot">
<span>© 2026 Small Hours Games</span>
<a href="#">Press kit</a>
<a href="#">Discord</a>
</footer>
</div>
);
}
```
### game-page.css
```css
/* GamePage: Mothlight. Night blue, lantern orange, cream and an acid glow. */
.gu-moth {
--night: #0d1226;
--deep: #070912;
--lantern: #ff5a2a;
--glow: #ffb347;
--cream: #f6ecd9;
--acid: #d7ff3a;
--muted: #9aa3c2;
--line: rgb(246 236 217 / 0.12);
--focus: #d7ff3a;
--geo: "Futura", "Century Gothic", "Avenir Next", "Trebuchet MS", sans-serif;
container-type: inline-size;
overflow: hidden;
background: var(--night);
color: var(--cream);
font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.gu-moth *,
.gu-moth *::before,
.gu-moth *::after {
box-sizing: border-box;
}
.gu-moth a {
color: inherit;
}
.gu-moth button {
font: inherit;
color: inherit;
cursor: pointer;
}
.gu-moth :focus-visible {
outline: 3px solid var(--focus);
outline-offset: 3px;
}
.gu-moth h1,
.gu-moth h2,
.gu-moth h3 {
font-family: var(--geo);
font-weight: 700;
margin: 0;
line-height: 1;
letter-spacing: -0.02em;
}
.gu-moth__photo {
display: block;
overflow: hidden;
background:
radial-gradient(60% 50% at 70% 30%, rgb(255 179 71 / 0.25), transparent),
linear-gradient(160deg, color-mix(in srgb, var(--tone) 70%, #fff 8%), var(--tone));
}
.gu-moth__photo img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
/* Bar */
.gu-moth__bar {
position: relative;
z-index: 3;
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
padding: 16px clamp(16px, 4cqi, 40px);
background: var(--deep);
}
.gu-moth__mark {
font-family: var(--geo);
font-weight: 700;
font-size: 24px;
text-decoration: none;
letter-spacing: -0.03em;
}
.gu-moth__bar nav {
display: flex;
gap: 18px;
align-items: center;
font-size: 15px;
}
.gu-moth__bar nav a {
text-decoration: none;
color: var(--muted);
}
.gu-moth__bar nav a:hover {
color: var(--cream);
}
.gu-moth__bar nav .gu-moth__navcta {
color: var(--deep);
background: var(--acid);
border-radius: 999px;
padding: 8px 16px;
font-weight: 700;
}
/* Hero */
.gu-moth__hero {
--mx: 0;
--my: 0;
position: relative;
min-height: 540px;
display: grid;
align-items: end;
isolation: isolate;
overflow: hidden;
}
.gu-moth__keyart {
position: absolute;
inset: -24px;
z-index: -2;
translate: calc(var(--mx) * -18px) calc(var(--my) * -12px);
transition: translate 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gu-moth__keyart img {
animation: gu-moth-drift 18s ease-in-out infinite alternate;
}
.gu-moth__hero::after {
content: "";
position: absolute;
inset: 0;
z-index: -1;
background: linear-gradient(0deg, var(--night) 0%, rgb(13 18 38 / 0.5) 35%, transparent 65%);
pointer-events: none;
}
.gu-moth__lanterns {
position: absolute;
inset: 0;
z-index: -1;
translate: calc(var(--mx) * 30px) calc(var(--my) * 20px);
transition: translate 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
pointer-events: none;
}
.gu-moth__lanterns i {
position: absolute;
left: calc(4% + var(--i) * 8%);
bottom: -30px;
width: calc(8px + (var(--i) * 5 % 4) * 3px);
aspect-ratio: 3 / 4;
border-radius: 40% 40% 30% 30%;
background: radial-gradient(circle at 50% 40%, #fff3c4, var(--glow) 45%, var(--lantern));
box-shadow: 0 0 18px 6px rgb(255 140 50 / 0.45);
animation: gu-moth-rise calc(9s + (var(--i) * 7 % 6) * 1s) linear infinite;
animation-delay: calc(var(--i) * -1.3s);
}
.gu-moth__hero-copy {
padding: 0 clamp(16px, 4cqi, 40px) 48px;
max-width: 620px;
}
.gu-moth__hero h1 {
font-size: clamp(60px, 14cqi, 140px);
letter-spacing: -0.05em;
display: flex;
text-shadow: 0 0 40px rgb(255 140 50 / 0.5);
}
.gu-moth__hero h1 span {
display: inline-block;
animation: gu-moth-letter 0.9s cubic-bezier(0.2, 1.4, 0.4, 1) both;
animation-delay: calc(var(--i) * 60ms + 0.2s);
}
.gu-moth__hero p {
margin: 12px 0 0;
font-size: 18px;
max-width: 38ch;
}
.gu-moth__hero .gu-moth__plat {
font-size: 14px;
color: var(--acid);
}
/* Crew */
.gu-moth__crew {
padding: 72px clamp(16px, 4cqi, 40px);
}
.gu-moth__crew h2,
.gu-moth__launch h2 {
font-size: clamp(32px, 5cqi, 52px);
}
.gu-moth__tabs {
display: flex;
gap: 10px;
margin: 22px 0;
flex-wrap: wrap;
}
.gu-moth__tabs button {
display: flex;
align-items: center;
gap: 10px;
padding: 6px 16px 6px 6px;
min-height: 56px;
border: 2px solid var(--line);
border-radius: 999px;
background: transparent;
font-weight: 700;
transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.gu-moth__tabs button:hover {
border-color: var(--cream);
}
.gu-moth__tabs button[aria-selected="true"] {
background: var(--tone);
border-color: var(--acid);
transform: translateY(-2px);
}
.gu-moth__thumb {
width: 42px;
height: 42px;
border-radius: 50%;
}
.gu-moth__panel {
display: grid;
grid-template-columns: 0.9fr 1fr 1fr;
gap: 28px;
align-items: center;
padding: 24px;
border-radius: 24px;
background:
radial-gradient(80% 90% at 15% 50%, color-mix(in srgb, var(--tone) 70%, transparent), transparent 70%),
var(--deep);
transition: background 0.5s;
}
.gu-moth__portrait {
animation: gu-moth-swap 0.6s cubic-bezier(0.2, 1.2, 0.4, 1) both;
}
.gu-moth__portrait-img {
aspect-ratio: 4 / 5;
border-radius: 18px;
box-shadow: 0 30px 60px -30px #000;
}
.gu-moth__info {
animation: gu-moth-in 0.5s 0.08s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.gu-moth__info h3 {
font-size: 40px;
margin: 2px 0 12px;
}
.gu-moth__info p {
margin: 0 0 12px;
color: #d9d2c3;
}
.gu-moth__role {
color: var(--acid) !important;
font-weight: 700;
}
.gu-moth__ability {
padding: 12px 14px;
border-radius: 12px;
background: rgb(255 90 42 / 0.14);
border-left: 3px solid var(--lantern);
}
.gu-moth__radar {
margin: 0;
}
.gu-moth__radar svg {
display: block;
width: 100%;
max-width: 280px;
margin: 0 auto;
height: auto;
overflow: visible;
}
.gu-moth__web {
fill: none;
stroke: var(--line);
stroke-width: 1;
}
.gu-moth__axis {
fill: var(--muted);
font: 600 11px system-ui, sans-serif;
text-anchor: middle;
dominant-baseline: middle;
}
.gu-moth__stat {
fill: rgb(215 255 58 / 0.22);
stroke: var(--acid);
stroke-width: 2.5;
stroke-linejoin: round;
transition: d 0.7s cubic-bezier(0.3, 1.5, 0.5, 1);
filter: drop-shadow(0 0 10px rgb(215 255 58 / 0.4));
}
.gu-moth__dot {
fill: var(--acid);
transition: cx 0.7s cubic-bezier(0.3, 1.5, 0.5, 1), cy 0.7s cubic-bezier(0.3, 1.5, 0.5, 1);
}
/* Features */
.gu-moth__features {
padding: 0 clamp(16px, 4cqi, 40px) 72px;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 28px;
}
.gu-moth__features h3 {
font-size: 22px;
margin: 10px 0 6px;
}
.gu-moth__features p {
margin: 0;
color: var(--muted);
}
.gu-moth__lamp {
width: 34px;
height: 44px;
}
.gu-moth__lamp path {
fill: none;
stroke: var(--cream);
stroke-width: 2;
stroke-linejoin: round;
}
.gu-moth__flame {
fill: var(--glow);
transform-box: fill-box;
transform-origin: 50% 100%;
animation: gu-moth-flicker 1.8s ease-in-out infinite;
animation-delay: calc(var(--i) * -0.6s);
filter: drop-shadow(0 0 6px var(--lantern));
}
/* Launch */
.gu-moth__launch {
padding: 72px clamp(16px, 4cqi, 40px);
text-align: center;
background:
radial-gradient(60% 80% at 50% 110%, rgb(255 90 42 / 0.35), transparent 70%),
var(--deep);
}
.gu-moth__clock {
display: flex;
justify-content: center;
gap: clamp(8px, 2.4cqi, 20px);
margin: 28px 0 36px;
}
.gu-moth__clock div {
display: grid;
gap: 6px;
min-width: 72px;
}
.gu-moth__clock b {
display: block;
font-family: var(--geo);
font-size: clamp(36px, 7cqi, 64px);
line-height: 1;
padding: 14px 10px;
border-radius: 14px;
background: var(--night);
border: 1px solid var(--line);
font-variant-numeric: tabular-nums;
animation: gu-moth-flip 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
transform-origin: 50% 0;
}
.gu-moth__clock span {
font-size: 13px;
color: var(--muted);
}
.gu-moth__wish {
position: relative;
display: grid;
justify-items: center;
gap: 12px;
}
.gu-moth__wish p {
margin: 0;
color: var(--muted);
font-variant-numeric: tabular-nums;
}
.gu-moth__wishbtn {
min-height: 56px;
padding: 0 30px;
border: 0;
border-radius: 999px;
background: var(--lantern);
color: #fff;
font-weight: 700;
font-size: 17px;
box-shadow: 0 0 0 0 rgb(255 90 42 / 0.5);
animation: gu-moth-call 2.4s ease-out infinite;
transition: background 0.25s, transform 0.2s;
}
.gu-moth__wishbtn:hover {
transform: translateY(-2px);
}
.gu-moth__wishbtn[aria-pressed="true"] {
background: var(--acid);
color: var(--deep);
animation: none;
}
.gu-moth__burst {
position: absolute;
top: 28px;
left: 50%;
pointer-events: none;
}
.gu-moth__burst i {
position: absolute;
width: 14px;
height: 10px;
margin: -5px 0 0 -7px;
background:
radial-gradient(circle at 25% 50%, var(--cream) 45%, transparent 50%),
radial-gradient(circle at 75% 50%, var(--cream) 45%, transparent 50%);
rotate: var(--a);
animation: gu-moth-flutter 1.4s cubic-bezier(0.2, 0.7, 0.3, 1) both;
animation-delay: calc(var(--i) * 20ms);
}
.gu-moth__foot {
display: flex;
gap: 18px;
flex-wrap: wrap;
padding: 20px clamp(16px, 4cqi, 40px);
background: var(--deep);
border-top: 1px solid var(--line);
color: var(--muted);
font-size: 14px;
}
.gu-moth__foot span {
margin-right: auto;
}
@keyframes gu-moth-drift {
from {
transform: scale(1.04) translateX(-1%);
}
to {
transform: scale(1.1) translateX(1%);
}
}
@keyframes gu-moth-rise {
0% {
transform: translate(0, 0);
opacity: 0;
}
10% {
opacity: 1;
}
50% {
transform: translate(16px, -300px);
}
100% {
transform: translate(-8px, -620px);
opacity: 0;
}
}
@keyframes gu-moth-letter {
from {
opacity: 0;
transform: translateY(50%) rotate(-12deg);
filter: blur(6px);
}
to {
opacity: 1;
transform: none;
filter: none;
}
}
@keyframes gu-moth-swap {
from {
opacity: 0;
transform: translateY(20px) rotate(-3deg) scale(0.94);
}
to {
opacity: 1;
transform: none;
}
}
@keyframes gu-moth-in {
from {
opacity: 0;
transform: translateX(16px);
}
to {
opacity: 1;
transform: none;
}
}
@keyframes gu-moth-flicker {
0%,
100% {
transform: scale(1, 1);
}
30% {
transform: scale(0.92, 1.08);
}
60% {
transform: scale(1.05, 0.95);
}
}
@keyframes gu-moth-flip {
from {
transform: rotateX(-80deg);
opacity: 0.3;
}
to {
transform: none;
opacity: 1;
}
}
@keyframes gu-moth-call {
0% {
box-shadow: 0 0 0 0 rgb(255 90 42 / 0.5);
}
70%,
100% {
box-shadow: 0 0 0 18px rgb(255 90 42 / 0);
}
}
@keyframes gu-moth-flutter {
0% {
transform: translateY(0) scale(0.4);
opacity: 1;
}
20% {
transform: translateY(-30px) scale(1, 0.4);
}
40% {
transform: translateY(-60px) scale(1, 1);
}
60% {
transform: translateY(-90px) scale(1, 0.4);
}
100% {
transform: translateY(-150px) scale(1);
opacity: 0;
}
}
@container (max-width: 760px) {
.gu-moth__panel {
grid-template-columns: 1fr 1fr;
}
.gu-moth__radar {
grid-column: 1 / -1;
}
.gu-moth__features {
grid-template-columns: 1fr;
gap: 20px;
}
}
@container (max-width: 560px) {
.gu-moth__bar nav a:not(.gu-moth__navcta) {
display: none;
}
.gu-moth__hero {
min-height: 460px;
}
.gu-moth__panel {
grid-template-columns: 1fr;
padding: 16px;
}
.gu-moth__portrait-img {
aspect-ratio: 1;
}
.gu-moth__tabs button {
flex: 1 1 0;
padding-right: 10px;
font-size: 14px;
}
.gu-moth__clock div {
min-width: 0;
flex: 1;
}
}
@media (prefers-reduced-motion: reduce) {
.gu-moth *,
.gu-moth *::before,
.gu-moth *::after {
animation: none !important;
transition: none !important;
}
.gu-moth__lanterns,
.gu-moth__burst {
display: none;
}
}
```
You might also want
Next piece: Interior designer portfolio with a floor planMusic festival page with a timetable planner
Landing pages, advanced
Invoicing app landing page
Landing pages, advanced
App launch page
Landing pages, advanced

