/* ⭐ Steal a Star: night sky, warm gold, big friendly type. */
:root {
	--bg: #07080f;
	--panel: rgba(20, 22, 38, 0.6);
	--line: rgba(255, 255, 255, 0.08);
	--line2: rgba(255, 255, 255, 0.14);
	--text: #eef0f8;
	--muted: #9aa0bb;
	--gold: #f6c453;
	--gold2: #ffe08a;
	--violet: #8c6bff;
	--green: #3ddc84;
	--display: "Space Grotesk", "Inter", system-ui, sans-serif;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
	margin: 0;
	color: var(--text);
	background:
		radial-gradient(1100px 700px at 80% -10%, rgba(140, 107, 255, 0.22), transparent 60%),
		radial-gradient(900px 600px at 0% 30%, rgba(246, 196, 83, 0.08), transparent 60%),
		var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, header, footer { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
img { display: block; }
.muted { color: var(--muted); line-height: 1.6; }
.gold { background: linear-gradient(180deg, #fff2c2, var(--gold) 55%, #d99a1e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 8px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.05; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 14px clamp(16px, 4vw, 48px); background: rgba(7, 8, 15, 0.6); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; }
.brand img { width: 28px; height: 28px; filter: drop-shadow(0 0 10px rgba(246, 196, 83, 0.6)); }
.nav nav { display: flex; gap: 4px; margin-left: auto; }
.nav nav a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 14px; transition: color 0.15s, background 0.15s; }
.nav nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.menu { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 26px; border-radius: 14px; font-weight: 700; font-size: 16px; transition: transform 0.15s, box-shadow 0.15s, background 0.15s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn.play { background: linear-gradient(180deg, #5ef39e, #22b866); color: #04230f; box-shadow: 0 10px 34px -10px rgba(61, 220, 132, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn.play.small { padding: 9px 18px; font-size: 14px; border-radius: 11px; }
.btn.ghost { border: 1px solid var(--line2); background: rgba(255, 255, 255, 0.04); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn.discord { background: #5865f2; color: #fff; box-shadow: 0 10px 30px -10px rgba(88, 101, 242, 0.8); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; padding: clamp(40px, 8vw, 110px) clamp(16px, 6vw, 80px) 40px; max-width: 1300px; margin: 0 auto; }
.live { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 99px; background: rgba(61, 220, 132, 0.1); border: 1px solid rgba(61, 220, 132, 0.3); color: #b8f5d2; font-size: 14px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }
.hero h1 { font-size: clamp(60px, 11vw, 140px); line-height: 0.88; margin: 22px 0 22px; font-weight: 700; }
.lead { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: #c6cbe0; max-width: 540px; margin: 0 0 30px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { display: grid; place-items: center; }
.orbit { position: relative; width: min(420px, 80vw); aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.08); animation: spin 60s linear infinite; }
.orbit::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.06); }
@keyframes spin { to { transform: rotate(360deg); } }
.big-star { position: absolute; inset: 22%; animation: spin 60s linear infinite reverse, bob 4s ease-in-out infinite; filter: drop-shadow(0 0 40px rgba(246, 196, 83, 0.55)); }
@keyframes bob { 50% { translate: 0 -10px; } }
.sat { position: absolute; width: 18%; aspect-ratio: 1; animation: spin 60s linear infinite reverse; }
.s1 { top: -4%; left: 41%; } .s2 { bottom: 6%; left: 2%; width: 13%; } .s3 { bottom: 10%; right: 0; width: 15%; }

/* ---------- live stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 1140px; margin: 0 auto 30px; padding: 0 16px; }
.stats div { padding: 22px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(12px); text-align: center; }
.stats b { display: block; font-family: var(--display); font-size: clamp(24px, 3vw, 36px); font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 13px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1140px; margin: 40px auto; padding: 0 16px; }
.step { padding: 28px; border-radius: 20px; background: linear-gradient(160deg, rgba(140, 107, 255, 0.12), rgba(255, 255, 255, 0.02)); border: 1px solid var(--line); }
.step span { font-family: var(--display); font-weight: 700; color: var(--gold); font-size: 14px; }
.step h3 { font-size: 28px; margin: 6px 0 8px; }
.step p { color: var(--muted); margin: 0; line-height: 1.6; }

/* ---------- blocks ---------- */
.block { max-width: 1140px; margin: 0 auto; padding: 70px 16px 10px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
input[type="search"] { width: min(320px, 100%); padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(0, 0, 0, 0.3); color: var(--text); font: inherit; outline: none; }
input[type="search"]:focus { border-color: rgba(246, 196, 83, 0.6); box-shadow: 0 0 0 3px rgba(246, 196, 83, 0.12); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.chip { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line2); background: rgba(255, 255, 255, 0.03); color: var(--muted); cursor: pointer; font: 600 13px "Inter", sans-serif; transition: all 0.15s; }
.chip:hover { color: var(--text); }
.chip.on { color: #1b1300; background: var(--gold); border-color: var(--gold); }
.chip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.chip.on i { box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25); }

/* ---------- star cards ---------- */
.grid { display: grid; gap: 14px; margin-top: 18px; }
.grid.stars { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.card { position: relative; padding: 18px 16px 16px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: transform 0.2s, border-color 0.2s; }
.card:hover { transform: translateY(-4px); border-color: var(--rc, var(--line2)); }
.card::before { content: ""; position: absolute; inset: -40% -40% auto auto; width: 140px; height: 140px; border-radius: 50%; background: var(--rc); opacity: 0.16; filter: blur(30px); }
.card .art { width: 100%; aspect-ratio: 1.3; display: grid; place-items: center; }
.card .art svg { width: 70%; height: 90%; overflow: visible; filter: drop-shadow(0 6px 18px var(--glow, rgba(0, 0, 0, 0.5))); transition: transform 0.3s; }
.card:hover .art svg { transform: scale(1.08) rotate(-6deg); }
.card h3 { font-size: 18px; margin-top: 6px; }
.tag { display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: color-mix(in srgb, var(--rc) 22%, transparent); color: var(--rc); border: 1px solid color-mix(in srgb, var(--rc) 45%, transparent); }
.tag.secret { background: #000; color: #fff; border-color: #fff3; }
.meta { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13px; color: var(--muted); }
.meta b { color: var(--text); font-variant-numeric: tabular-nums; }
.wtag { position: absolute; top: 12px; right: 12px; font-size: 11px; color: var(--muted); }
.empty { color: var(--muted); padding: 30px 0; }
.rainbow .art svg { animation: hue 4s linear infinite; }
@keyframes hue { to { filter: hue-rotate(360deg) drop-shadow(0 6px 18px rgba(255, 255, 255, 0.4)); } }

/* ---------- mutations / pets ---------- */
.muts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.mut { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.mut i { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 12px currentColor; }
.mut b { font-family: var(--display); }
.mut span { color: var(--gold2); font-weight: 700; font-variant-numeric: tabular-nums; }
.grid.pets { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.pet .art { aspect-ratio: 1.5; }
.pet .blob { width: 60px; height: 60px; border-radius: 46% 54% 50% 50%; background: radial-gradient(circle at 35% 30%, #fff8, transparent 40%), var(--pc); box-shadow: 0 10px 30px -6px var(--pc); position: relative; }
.pet .blob::before, .pet .blob::after { content: ""; position: absolute; top: 40%; width: 8px; height: 10px; border-radius: 50%; background: #111; }
.pet .blob::before { left: 30%; } .pet .blob::after { right: 30%; }

/* ---------- codes ---------- */
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 16px; }
.code { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 18px; border-radius: 18px; background: linear-gradient(160deg, rgba(246, 196, 83, 0.1), rgba(255, 255, 255, 0.02)); border: 1px dashed rgba(246, 196, 83, 0.4); }
.code b { font-family: var(--display); font-size: 22px; letter-spacing: 0.04em; }
.code span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.copy { padding: 10px 14px; border-radius: 10px; border: 0; background: var(--gold); color: #1b1300; font: 700 13px "Inter", sans-serif; cursor: pointer; transition: transform 0.12s; }
.copy:active { transform: scale(0.95); }
.copy.done { background: var(--green); }

/* ---------- updates / worlds ---------- */
.update { padding: 26px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.update li { padding: 10px 0 10px 30px; position: relative; list-style: none; border-bottom: 1px solid var(--line); line-height: 1.5; }
.update li:last-child { border-bottom: 0; }
.update li::before { content: "★"; position: absolute; left: 0; color: var(--gold); }
.update ul { margin: 0; padding: 0; }
.worlds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.world { position: relative; min-height: 220px; padding: 26px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(160deg, color-mix(in srgb, var(--wc) 30%, transparent), rgba(10, 10, 20, 0.9) 70%); display: flex; flex-direction: column; justify-content: flex-end; }
.world::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--wc) 70%, white 10%), transparent 65%); opacity: 0.55; }
.world span { color: var(--wc); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.world h3 { font-size: 30px; margin: 6px 0; }
.world p { color: var(--muted); margin: 0; }

/* ---------- gallery ---------- */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); }

/* ---------- community ---------- */
.community { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; padding: 40px; border-radius: 28px; background: linear-gradient(135deg, rgba(88, 101, 242, 0.22), rgba(140, 107, 255, 0.08)); border: 1px solid rgba(88, 101, 242, 0.35); }
.community .muted { margin: 14px 0 24px; }
.disc-card { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: baseline; padding: 26px; border-radius: 20px; background: rgba(0, 0, 0, 0.3); }
.disc-card b { font-family: var(--display); font-size: 40px; font-variant-numeric: tabular-nums; }
.disc-card span { color: var(--muted); }

footer { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; max-width: 1140px; margin: 80px auto 0; padding: 30px 16px 50px; border-top: 1px solid var(--line); font-size: 14px; }
footer img { display: inline; width: 18px; vertical-align: -3px; }

/* ---------- phone pieces (hidden on desktop) ---------- */
.tabbar, .fab { display: none; }

/* ---------- phone: an app, not a shrunk website ---------- */
@media (max-width: 860px) {
	html { scroll-padding-top: 64px; }
	body { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
	/* slim top bar: logo only (the tab bar does the navigation) */
	.nav { padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); }
	.nav nav, .nav .btn.play.small, .menu { display: none !important; }
	.brand { font-size: 17px; }

	/* bottom tab bar, like an app */
	.tabbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30; padding: 6px; border-radius: 22px; background: rgba(16, 18, 30, 0.82); backdrop-filter: blur(20px) saturate(150%); border: 1px solid var(--line2); box-shadow: 0 18px 40px -12px #000; }
	.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 6px; border-radius: 16px; color: var(--muted); font-size: 10.5px; font-weight: 600; transition: all 0.15s; }
	.tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
	.tabbar a.on { color: var(--gold2); background: rgba(246, 196, 83, 0.12); }
	.tabbar a.on svg { filter: drop-shadow(0 0 6px rgba(246, 196, 83, 0.6)); }
	/* the Play button floats just above it */
	.fab { display: flex; align-items: center; justify-content: center; gap: 8px; position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 29; padding: 13px 26px; border-radius: 99px; font-weight: 800; font-size: 15px; color: #04230f; background: linear-gradient(180deg, #5ef39e, #22b866); box-shadow: 0 12px 30px -8px rgba(61, 220, 132, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.45); white-space: nowrap; transition: opacity 0.2s, transform 0.2s; }
	.fab svg { width: 16px; height: 16px; }
	.fab.hide { opacity: 0; pointer-events: none; transform: translate(-50%, 20px); }

	/* hero: star on top, big title, one main button */
	.hero { grid-template-columns: 1fr; gap: 6px; text-align: center; padding: 14px 18px 10px; }
	.hero-art { order: -1; }
	.orbit { width: min(230px, 62vw); }
	.hero h1 { font-size: clamp(56px, 18vw, 84px); margin: 14px 0 12px; }
	.lead { font-size: 15.5px; margin: 0 auto 20px; }
	.cta { justify-content: center; }
	.hero .cta .btn.play { display: none; } /* the floating Play button takes over */
	.hero .cta .btn { width: 100%; }

	/* swipeable rows: live stats, the 3 steps, worlds, mutations */
	.stats, .steps, .worlds, .muts, .chips { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.stats::-webkit-scrollbar, .steps::-webkit-scrollbar, .worlds::-webkit-scrollbar, .muts::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
	.stats { gap: 10px; padding: 0 18px; margin: 16px 0 6px; }
	.stats div { flex: 0 0 42%; scroll-snap-align: start; padding: 16px; border-radius: 16px; }
	.stats b { font-size: 26px; }
	.steps { gap: 12px; padding: 0 18px; margin: 24px 0; }
	.step { flex: 0 0 80%; scroll-snap-align: center; padding: 22px; }
	.step h3 { font-size: 24px; }
	.worlds { gap: 12px; margin: 0 -18px; padding: 0 18px; }
	.world { flex: 0 0 82%; scroll-snap-align: center; min-height: 190px; }
	.muts { margin: 12px -18px 0; padding: 0 18px 4px; gap: 8px; }
	.mut { flex: none; }
	.chips { flex-wrap: nowrap; margin: 0 -18px 8px; padding: 0 18px; }
	.chip { flex: none; padding: 9px 14px; }

	/* sections: tighter, full-width search */
	.block { padding: 44px 18px 6px; }
	h2 { font-size: 30px; }
	.head { margin-bottom: 14px; }
	input[type="search"] { width: 100%; font-size: 16px; }

	/* star + pet cards: 2 per row, compact */
	.grid { gap: 10px; }
	.grid.stars { grid-template-columns: repeat(2, 1fr); }
	/* pets: 3 small cards per row, so the long list stays short */
	.grid.pets { grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.pet { padding: 10px 8px; text-align: center; }
	.pet .blob { width: 42px; height: 42px; }
	.pet h3 { font-size: 12.5px; }
	.pet .tag { font-size: 9px; padding: 2px 6px; }
	.pet .meta { justify-content: center; font-size: 11px; }
	.card { padding: 12px 12px 12px; border-radius: 18px; }
	.card h3 { font-size: 15px; }
	.card .art { aspect-ratio: 1.15; }
	.meta { font-size: 12px; margin-top: 8px; }
	.wtag { top: 9px; right: 10px; font-size: 10px; }
	.card:hover { transform: none; }

	/* codes: big tap targets */
	.codes { grid-template-columns: 1fr; gap: 10px; }
	.code { padding: 16px; }
	.code b { font-size: 21px; }
	.copy { padding: 12px 18px; font-size: 14px; }

	.update { padding: 18px; }
	.shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -18px; padding: 0 18px; scrollbar-width: none; }
	.shots img { flex: 0 0 86%; scroll-snap-align: center; }
	.community { grid-template-columns: 1fr; padding: 22px; border-radius: 24px; }
	.community .btn { width: 100%; }
	.disc-card b { font-size: 32px; }
	footer { margin-top: 40px; padding: 24px 18px; flex-direction: column; text-align: center; align-items: center; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
