Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

26.2 KB
Raw Blame
<!doctype html>
<html lang="en">
	<head>
		<style>/* three.ws hidden-guard — make the `hidden` attribute authoritative; see scripts/lib/hidden-guard.mjs */[hidden]{display:none!important}</style>
		<script>/* three.ws theme boot — no-flash; runtime in /theme-switcher.js */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		<title data-i18n="create_prompt.meta_title">Describe it to 3D · three.ws</title>
		<link rel="icon" href="/favicon.ico" sizes="any" />
		<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
		<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
		<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
		<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
		<link rel="manifest" href="/manifest.webmanifest" />
		<meta
			name="description"
			content="Type a description. About a minute later: a rigged 3D avatar you can animate and download."
		 data-i18n-attr="content:create_prompt.meta_description"/>
		<meta name="robots" content="index, follow" />

		<meta property="og:type" content="website" />
		<meta property="og:site_name" content="three.ws" />
		<meta property="og:url" content="https://three.ws/create/prompt" />
		<meta property="og:title" content="Describe it to 3D · three.ws"  data-i18n-attr="content:create_prompt.meta_og_title"/>
		<meta
			property="og:description"
			content="Type a description. About a minute later: a rigged 3D avatar you can animate and download."
		 data-i18n-attr="content:create_prompt.meta_og_description"/>
		<meta property="og:image" content="https://three.ws/api/page-og?s=build&amp;t=Describe+it+to+3D&amp;d=Type+a+description.+About+a+minute+later%3A+a+rigged+3D+avatar+you+can+animate+and+download.&amp;p=%2Fcreate%2Fprompt" />

		<style>
			:root {
				color-scheme: dark;
				--bg: #000000;
				--panel: var(--bg-0);
				--panel-elev: #111111;
				--border: var(--stroke);
				--border-strong: #2a2a2a;
				--text: var(--ink);
				--muted: var(--ink-dim);
				/* Secondary copy that has to clear 4.5:1 in BOTH themes: the hint,
				   the counter, the placeholder, the elapsed clock, the footnote. */
				--muted-soft: #8a8a8a;
				--accent: #ffffff;
				--accent-ink: #000000;
				--danger: #f87171;
				--danger-dim: #4a1a1a;
				--danger-ink: #f3b4b4;
				--ok-ink: #6ee7a8;
				--ok-border: #1f3a2a;
				--hairline-hover: #444444;
				--hover-tint: rgba(255, 255, 255, 0.04);
				--focus-ring: #ffffff;
				--orb-lit: #2a2a2a;
				--orb-shade: #0c0c0c;
				--orb-sweep: rgba(255, 255, 255, 0.14);
			}

			/* Light theme. public/tokens.css remaps the shared primitives
			   (--bg, --text, --accent) under this selector, but --panel,
			   --border, --accent-ink and friends are declared locally above, so
			   without this block the composer, the chips and the done panel stayed
			   near-black on a white canvas and the primary CTA rendered black ink
			   on the light accent blue (3.5:1, under the AA floor). The page
			   passes the theme-switcher's light-capability probe, so the toggle is
			   live here and these values are what it toggles to. */
			:root[data-theme='light'] {
				color-scheme: light;
				--panel: #f4f5f7;
				--panel-elev: #e9ebef;
				--border: rgba(15, 18, 28, 0.1);
				--border-strong: rgba(15, 18, 28, 0.18);
				--muted: #5a616f;
				--muted-soft: #5a616f;
				--accent-ink: #ffffff;
				--danger: #b42318;
				--danger-dim: #f3c9c4;
				--danger-ink: #912018;
				--ok-ink: #067647;
				--ok-border: #a7f3d0;
				--hairline-hover: rgba(15, 18, 28, 0.3);
				--hover-tint: rgba(15, 18, 28, 0.05);
				--focus-ring: #1d212b;
				--orb-lit: #e4e7ed;
				--orb-shade: #c2c8d4;
				--orb-sweep: rgba(15, 18, 28, 0.12);
			}
			* {
				box-sizing: border-box;
			}
			html,
			body {
				margin: 0;
				padding: 0;
			}
			body {
				font:
					15px/1.55 -apple-system,
					BlinkMacSystemFont,
					'Segoe UI',
					Roboto,
					sans-serif;
				color: var(--text);
				background: var(--bg);
				min-height: 100vh;
				overflow-x: hidden;
			}
			.skip-link {
				position: absolute;
				left: -999px;
				top: 0;
				background: var(--accent);
				color: var(--accent-ink);
				padding: 8px 14px;
				border-radius: 8px;
				z-index: 100;
			}
			.skip-link:focus {
				left: 12px;
				top: 12px;
			}

			.stage {
				max-width: 760px;
				margin: 0 auto;
				padding: 0 20px 80px;
				min-height: 100vh;
				display: flex;
				flex-direction: column;
			}
			.topbar {
				display: flex;
				align-items: center;
				gap: 12px;
				padding: 18px 0;
			}
			.back {
				display: inline-flex;
				align-items: center;
				justify-content: center;
				width: 38px;
				height: 38px;
				border-radius: 10px;
				border: 1px solid var(--border-strong);
				background: var(--panel);
				color: var(--text);
				cursor: pointer;
				transition:
					border-color 0.15s,
					background 0.15s,
					transform 0.12s;
			}
			.back:hover {
				border-color: var(--hairline-hover);
				background: var(--panel-elev);
			}
			.back:active {
				transform: translateY(1px);
			}
			.back:focus-visible {
				outline: 2px solid var(--accent);
				outline-offset: 2px;
			}
			.label {
				color: var(--muted);
				font-size: 13px;
				letter-spacing: 0.01em;
			}
			.label strong {
				color: var(--text);
				font-weight: 600;
			}

			/* ── Steps ─────────────────────────────────────────────────────────── */
			.step {
				display: none;
				flex: 1;
				flex-direction: column;
			}
			.step.active {
				display: flex;
				animation: fade 0.35s ease;
			}
			@keyframes fade {
				from {
					opacity: 0;
					transform: translateY(6px);
				}
				to {
					opacity: 1;
					transform: none;
				}
			}

			h1 {
				font-size: clamp(26px, 5vw, 36px);
				line-height: 1.1;
				margin: 12px 0 8px;
				letter-spacing: -0.02em;
			}
			.sub {
				color: var(--muted);
				margin: 0 0 24px;
				max-width: 56ch;
			}

			/* ── Compose ───────────────────────────────────────────────────────── */
			.composer {
				border: 1px solid transparent;
				border-radius: 16px;
				background:
					linear-gradient(var(--panel), var(--panel)) padding-box,
					linear-gradient(120deg, var(--border-strong), var(--border-strong)) border-box;
				padding: 6px 6px 14px;
				transition: box-shadow 0.2s;
			}
			.composer:focus-within {
				background:
					linear-gradient(var(--panel), var(--panel)) padding-box,
					linear-gradient(
							120deg,
							rgba(255, 180, 84, 0.65),
							rgba(255, 106, 213, 0.65) 38%,
							rgba(139, 92, 246, 0.65) 64%,
							rgba(79, 195, 255, 0.65)
						)
						border-box;
				box-shadow: 0 0 24px rgba(139, 92, 246, 0.1);
			}
			textarea#prompt {
				width: 100%;
				min-height: 120px;
				resize: vertical;
				border: 0;
				background: transparent;
				color: var(--text);
				font: inherit;
				line-height: 1.5;
				padding: 14px 14px 6px;
				outline: none;
			}
			textarea#prompt::placeholder {
				/* #555 on the #000 bg measured ~2.9:1, under the 4.5:1 AA
				   threshold, and this placeholder is the only guidance in an empty
				   composer. --muted-soft measures 5.8:1 dark and 6.4:1 light. */
				color: var(--muted-soft);
			}
			.composer-foot {
				display: flex;
				align-items: center;
				justify-content: space-between;
				gap: 12px;
				padding: 0 10px;
			}
			.counter {
				color: var(--muted-soft);
				font-size: 12px;
				font-variant-numeric: tabular-nums;
			}
			.counter.warn {
				color: var(--danger);
			}
			/* Voice dictation mic slot — mounted by src/voice/prompt-dictation.js.
			   Empty until JS resolves a usable STT path; collapses to nothing so no
			   dead button ships when voice input isn't available in this browser. */
			.pd-slot {
				display: inline-flex;
				align-items: center;
			}
			.pd-slot:empty {
				display: none;
			}

			.examples {
				display: flex;
				flex-wrap: wrap;
				gap: 8px;
				margin: 16px 0 4px;
			}
			.example {
				border: 1px solid var(--border-strong);
				background: var(--panel);
				color: var(--muted);
				border-radius: 999px;
				padding: 7px 13px;
				font-size: 13px;
				cursor: pointer;
				transition:
					border-color 0.15s,
					color 0.15s,
					background 0.15s,
					transform 0.12s;
			}
			.example:hover {
				border-color: var(--hairline-hover);
				color: var(--text);
				background: var(--panel-elev);
			}
			.example:active {
				transform: translateY(1px);
			}
			.example:focus-visible {
				outline: 2px solid var(--accent);
				outline-offset: 2px;
			}
			/* Independence Day presets (July 1–5) — a soft red/white/blue edge so
			   they read as seasonal without shouting over the default examples.
			   Injected by create-prompt.js only within the window. */
			.example--festive {
				border-color: color-mix(in srgb, #6f8cff 55%, var(--border-strong));
				background: linear-gradient(
					90deg,
					color-mix(in srgb, #ff5a5f 10%, var(--panel)),
					color-mix(in srgb, #6f8cff 10%, var(--panel))
				);
			}
			.example--festive::before {
				content: '🎆 ';
			}
			.example--festive:hover {
				border-color: #ff5a5f;
			}

			.actions {
				display: flex;
				align-items: center;
				gap: 14px;
				margin-top: 22px;
			}
			.btn-primary {
				display: inline-flex;
				align-items: center;
				gap: 9px;
				background: var(--accent);
				color: var(--accent-ink);
				border: 0;
				border-radius: 12px;
				padding: 13px 22px;
				font-size: 15px;
				font-weight: 600;
				cursor: pointer;
				transition:
					opacity 0.15s,
					transform 0.12s;
			}
			.btn-primary:hover {
				opacity: 0.9;
			}
			.btn-primary:active {
				transform: translateY(1px);
			}
			.btn-primary:disabled {
				opacity: 0.4;
				cursor: not-allowed;
			}
			.btn-primary:focus-visible {
				outline: 2px solid var(--focus-ring);
				outline-offset: 3px;
			}
			.hint {
				/* --muted-soft, not #666: #666 on the #000 bg measured ~3.9:1 (axe
				   AA needs 4.5:1); --muted-soft measures 5.8:1 dark, 6.4:1 light. */
				color: var(--muted-soft);
				font-size: 12.5px;
			}
			.hint .chip-auth {
				color: var(--muted);
			}

			.note {
				margin-top: 28px;
				color: var(--muted-soft);
				font-size: 12.5px;
				border-top: 1px solid var(--border);
				padding-top: 16px;
				max-width: 60ch;
			}
			.note a {
				color: var(--text);
				text-decoration: underline;
				text-underline-offset: 2px;
				transition: color 0.15s;
			}
			.note a:hover {
				color: var(--text);
			}
			.note a:focus-visible {
				outline: 2px solid var(--accent);
				outline-offset: 2px;
				border-radius: 2px;
			}

			/* ── Building ──────────────────────────────────────────────────────── */
			.build-wrap {
				align-items: center;
				text-align: center;
				padding-top: 24px;
			}
			.orb {
				width: 132px;
				height: 132px;
				border-radius: 50%;
				margin: 8px auto 26px;
				background: radial-gradient(circle at 32% 30%, var(--orb-lit), var(--orb-shade) 70%);
				border: 1px solid var(--border-strong);
				position: relative;
				overflow: hidden;
			}
			.orb::after {
				content: '';
				position: absolute;
				inset: -40%;
				background: conic-gradient(
					from 0deg,
					transparent 0 70%,
					var(--orb-sweep) 85%,
					transparent 100%
				);
				animation: spin 1.5s linear infinite;
			}
			.orb::before {
				content: '';
				position: absolute;
				inset: 0;
				border-radius: 50%;
				box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.05);
				z-index: 1;
			}
			@keyframes spin {
				to {
					transform: rotate(360deg);
				}
			}
			.build-prompt {
				color: var(--text);
				font-size: 16px;
				max-width: 46ch;
				margin: 0 auto 6px;
				font-style: italic;
			}
			.build-status {
				color: var(--muted);
				font-size: 14px;
				margin-top: 12px;
				min-height: 20px;
			}
			.progress-track {
				width: min(420px, 90%);
				height: 4px;
				border-radius: 4px;
				background: var(--border-strong);
				margin: 22px auto 0;
				overflow: hidden;
			}
			.progress-fill {
				height: 100%;
				width: 8%;
				border-radius: 4px;
				background: var(--accent);
				transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
			}
			.elapsed {
				color: var(--muted-soft);
				font-size: 12px;
				margin-top: 14px;
				font-variant-numeric: tabular-nums;
			}
				.cancel-build {
					margin-top: 18px;
					padding: 8px 18px;
					border-radius: 999px;
					border: 1px solid var(--border-strong);
					background: transparent;
					color: var(--muted);
					font-size: 13px;
					font-weight: 500;
					cursor: pointer;
					transition: color 0.18s, border-color 0.18s, background 0.18s;
				}
				.cancel-build:hover {
					color: var(--text);
					border-color: var(--muted);
					background: var(--hover-tint);
				}
				.cancel-build:focus-visible {
					outline: 2px solid var(--accent);
					outline-offset: 2px;
				}
				/* "Try again" while a server Retry-After is still counting down. */
				.cancel-build:disabled {
					opacity: 0.5;
					cursor: default;
					font-variant-numeric: tabular-nums;
				}
				.cancel-build:disabled:hover {
					color: var(--muted);
					border-color: var(--border-strong);
					background: transparent;
				}
				@media (prefers-reduced-motion: reduce) {
					.orb::after { animation: none; }
					.progress-fill { transition: none; }
				}

				/* A failed build must stop looking like a running one. The orb sweep
				   freezes, the bar and clock recede, and Cancel goes away because
				   there is nothing left to cancel: the recovery buttons inside the
				   error box are the only live controls. */
				.build-wrap.errored .orb::after {
					animation: none;
					opacity: 0.2;
				}
				.build-wrap.errored .progress-track {
					opacity: 0.25;
				}
				.build-wrap.errored .elapsed {
					opacity: 0.5;
				}
				/* The phase line ("Reconstructing it into 3D...") is a claim about
				   work in flight, so it goes away entirely on failure. Hiding it
				   rather than only blanking it also survives the runtime i18n pass,
				   which re-applies the translated string from data-i18n after load.
				   The error box carries role="alert", so screen readers still get
				   the outcome. */
				.build-wrap.errored .build-status {
					display: none;
				}
				/* By id, not by class: the recovery buttons inside the error box
				   borrow .cancel-build for their styling, and hiding those would
				   strand the user on the failure with no way out. */
				.build-wrap.errored #cancel-build {
					display: none;
				}
				.error-box a {
					color: var(--danger-ink);
					text-decoration: underline;
					text-underline-offset: 2px;
				}
				.error-box a:hover {
					color: var(--text);
				}
				.error-box a:focus-visible {
					outline: 2px solid var(--accent);
					outline-offset: 2px;
					border-radius: 2px;
				}

			/* ── Done ──────────────────────────────────────────────────────────── */
			.done-wrap {
				align-items: center;
				text-align: center;
				padding-top: 8px;
			}
			.done-viewer {
				/* The 460px box is 575px tall at 4/5, which pushed "Open in editor"
				   and "Make another" off the bottom of a laptop screen the moment
				   the build finished. The viewport-height term keeps the result and
				   its actions on one screen; on a tall display the 460px cap still
				   wins, so nothing shrinks where there was already room. */
				width: min(100%, 460px, 38vh);
				aspect-ratio: 4/5;
				margin: 18px auto 0;
				border: 1px solid var(--border-strong);
				border-radius: 16px;
				background: var(--panel);
				overflow: hidden;
			}
			.done-viewer model-viewer {
				width: 100%;
				height: 100%;
				--poster-color: transparent;
			}
			.done-tags {
				display: flex;
				gap: 8px;
				justify-content: center;
				margin: 16px 0 0;
				flex-wrap: wrap;
			}
			.tag {
				font-size: 12px;
				color: var(--muted);
				border: 1px solid var(--border-strong);
				border-radius: 999px;
				padding: 5px 11px;
			}
			.tag.ok {
				color: var(--ok-ink);
				border-color: var(--ok-border);
			}
			.done-actions {
				display: flex;
				gap: 12px;
				justify-content: center;
				margin-top: 24px;
				flex-wrap: wrap;
			}
			.btn-ghost {
				display: inline-flex;
				align-items: center;
				gap: 8px;
				background: var(--panel);
				color: var(--text);
				border: 1px solid var(--border-strong);
				border-radius: 12px;
				padding: 12px 20px;
				font-size: 15px;
				font-weight: 500;
				cursor: pointer;
				transition:
					border-color 0.15s,
					background 0.15s,
					transform 0.12s;
				text-decoration: none;
			}
			.btn-ghost:hover {
				border-color: var(--hairline-hover);
				background: var(--panel-elev);
			}
			.btn-ghost:active {
				transform: translateY(1px);
			}
			.btn-ghost:focus-visible {
				outline: 2px solid var(--accent);
				outline-offset: 2px;
			}

			/* ── Error ─────────────────────────────────────────────────────────── */
			.error-box {
				display: none;
				margin-top: 18px;
				border: 1px solid var(--danger-dim);
				background: rgba(248, 113, 113, 0.06);
				border-radius: 12px;
				padding: 14px 16px;
				color: var(--danger-ink);
				font-size: 14px;
			}
			.error-box.show {
				display: block;
				animation: fade 0.25s ease;
			}
			.error-box strong {
				color: var(--danger);
			}

			@media (max-width: 520px) {
				.actions {
					flex-direction: column;
					align-items: stretch;
				}
				.btn-primary {
					justify-content: center;
				}
				.hint {
					text-align: center;
				}
			}
		</style>

		<script
			type="module"
			src="https://cdn.jsdelivr.net/npm/@google/[email protected]/dist/model-viewer.min.js"
			integrity="sha384-wjsPzEO+lXOf7d9csIDfAQpPt2OKuUU3m0K9qsdKIuzX4N8czSF6hdh23eAbZa3p"
			crossorigin="anonymous"
		></script>
		<script type="application/ld+json">
			{
				"@context": "https://schema.org",
				"@type": "WebPage",
				"name": "Describe it to 3D",
				"description": "Type a description. About a minute later: a rigged 3D avatar you can animate and download.",
				"url": "https://three.ws/create/prompt",
				"isPartOf": { "@type": "WebSite", "name": "three.ws", "url": "https://three.ws" }
			}
		</script>
	
	<link rel="canonical" href="https://three.ws/create/prompt">
	<meta name="twitter:card" content="summary_large_image">
	<meta name="twitter:title" content="Describe it to 3D · three.ws" data-i18n-attr="content:create_prompt.meta_twitter_title">
	<meta name="twitter:description" content="Type a description. About a minute later: a rigged 3D avatar you can animate and download." data-i18n-attr="content:create_prompt.meta_twitter_description">
	<meta name="twitter:image" content="https://three.ws/api/page-og?s=build&amp;t=Describe+it+to+3D&amp;d=Type+a+description.+About+a+minute+later%3A+a+rigged+3D+avatar+you+can+animate+and+download.&amp;p=%2Fcreate%2Fprompt">

	<meta property="og:locale" content="en_US">
	<meta property="og:image:alt" content="Describe it to 3D — three.ws">
	<meta name="twitter:site" content="@trythreews">
	<script src="/model-viewer-meshopt.js"></script>
</head>
	<body>
		<a href="#prompt" class="skip-link" data-i18n="create_prompt.skip_to_the_prompt_box">Skip to the prompt box</a>
		<div id="nav-container"></div>
		<main class="stage">
			<div class="topbar">
				<button class="back" id="back-btn" aria-label="Back to create" type="button" data-i18n-attr="aria-label:create_prompt.back_to_create_arialabel">
					<svg
						width="16"
						height="16"
						viewBox="0 0 24 24"
						fill="none"
						stroke="currentColor"
						stroke-width="2.2"
						stroke-linecap="round"
						stroke-linejoin="round"
						aria-hidden="true"
					>
						<line x1="19" y1="12" x2="5" y2="12" />
						<polyline points="12 19 5 12 12 5" />
					</svg>
				</button>
				<div class="label">Describe it to 3D</div>
			</div>

			<!-- Step 1: compose -->
			<section class="step active" data-step="compose" aria-label="Describe your avatar">
				<h1 data-i18n="create_prompt.describe_it_get_a_rigged_3d_avatar">Describe it. Get a rigged 3D avatar.</h1>
				<p class="sub" data-i18n="create_prompt.type_what_you_want_a_character_a">
					Type what you want — a character, a creature, a style. We render a clean
					reference, reconstruct it into 3D, and add a skeleton so it can move.
				</p>

				<div class="composer">
					<textarea
						id="prompt"
						maxlength="600"
						placeholder="A cyberpunk street samurai in a worn red coat, neon trim, calm expression…"
						aria-label="Describe the avatar you want to generate"
					></textarea>
					<div class="composer-foot">
						<span class="hint" id="cost-hint"
							 data-i18n="create_prompt.single_subject_full_body_works_best">Single subject, full body works best.</span
						>
						<span class="counter" id="counter">0 / 600</span>
						<span class="pd-slot" id="prompt-dictate-slot"></span>
					</div>
				</div>

				<div class="examples" role="group" aria-label="Example prompts">
					<button class="example" type="button" data-i18n="create_prompt.a_friendly_robot_mascot_rounded_white_shell">
						A friendly robot mascot, rounded white shell, glowing blue eyes
					</button>
					<button class="example" type="button" data-i18n="create_prompt.a_medieval_knight_in_battered_steel_plate">
						A medieval knight in battered steel plate, weathered cape
					</button>
					<button class="example" type="button" data-i18n="create_prompt.a_fox_eared_ranger_in_green_leather">
						A fox-eared ranger in green leather, bow on the back
					</button>
					<button class="example" type="button" data-i18n="create_prompt.an_astronaut_in_a_sleek_matte_black">
						An astronaut in a sleek matte-black suit, gold visor
					</button>
				</div>

				<div class="actions">
					<button class="btn-primary" id="generate-btn" type="button" disabled>
						<svg
							width="17"
							height="17"
							viewBox="0 0 24 24"
							fill="none"
							stroke="currentColor"
							stroke-width="2"
							stroke-linecap="round"
							stroke-linejoin="round"
							aria-hidden="true"
						>
							<path d="M12 3l1.9 5.3L19 10l-5.1 1.7L12 17l-1.9-5.3L5 10l5.1-1.7z" />
						</svg>
						Generate avatar
					</button>
					<span class="hint"
						 data-i18n-html="create_prompt.sign_in_required_1_min_rigged_glb"><span class="chip-auth">Sign-in required</span> · ~1 min · rigged GLB</span
					>
				</div>

				<div class="error-box" id="compose-error" role="alert"></div>

				<p class="note" data-i18n-html="create_prompt.avatars_come_out_best_with_a_single">
					Avatars come out best with a single, clearly described subject. Abstract scenes
					or multiple characters reconstruct poorly. You can refine the face, outfit, and
					animations in the editor afterward. Making an object, prop, or scene piece
					instead of a character? <a href="/forge">Use the Forge — text → textured GLB</a>.
				</p>
			</section>

			<!-- Step 2: building -->
			<section
				class="step build-wrap"
				data-step="building"
				aria-label="Building your avatar"
			>
				<div class="orb" aria-hidden="true"></div>
				<p class="build-prompt" id="build-prompt"></p>
				<div
					class="progress-track"
					id="progress-track"
					role="progressbar"
					aria-valuemin="0"
					aria-valuemax="100"
					aria-valuenow="0"
					aria-label="Avatar build progress"
				>
					<div class="progress-fill" id="progress-fill"></div>
				</div>
				<p class="build-status" id="build-status" aria-live="polite" data-i18n="create_prompt.rendering_a_reference_image">Rendering a reference image…</p>
				<p class="elapsed" id="elapsed" aria-hidden="true">0:00</p>
				<button type="button" id="cancel-build" class="cancel-build" data-i18n="create_prompt.cancel">Cancel</button>
				<div class="error-box" id="build-error" role="alert"></div>
			</section>

			<!-- Step 3: done -->
			<section class="step done-wrap" data-step="done" aria-label="Your avatar is ready">
				<h1 data-i18n="create_prompt.your_avatar_is_ready">Your avatar is ready</h1>
				<p class="sub" style="margin-bottom: 0" data-i18n="create_prompt.open_it_in_the_editor_to_animate">
					Open it in the editor to animate, dress, and export.
				</p>
				<div class="done-viewer">
					<model-viewer
						id="done-model"
						auto-rotate
						rotation-per-second="14deg"
						interaction-prompt="none"
						camera-controls
						shadow-intensity="1.0"
						shadow-softness="0.9"
						environment-image="neutral"
						exposure="1.5"
						tone-mapping="aces"
						camera-orbit="0deg 80deg auto"
						loading="eager"
						alt="Your newly generated 3D avatar"
					></model-viewer>
				</div>
				<div class="done-tags" id="done-tags"></div>
				<div class="done-actions">
					<!-- href is rewritten to /avatars/<id>/edit the moment a build
					     finishes; the static value keeps it a real, focusable link
					     instead of a bare <a> with no destination. -->
					<a class="btn-primary" id="open-editor" href="/dashboard">
						Open in editor
						<svg
							width="14"
							height="14"
							viewBox="0 0 24 24"
							fill="none"
							stroke="currentColor"
							stroke-width="2.2"
							stroke-linecap="round"
							stroke-linejoin="round"
							aria-hidden="true"
						>
							<line x1="5" y1="12" x2="19" y2="12" />
							<polyline points="12 5 19 12 12 19" />
						</svg>
					</a>
					<button class="btn-ghost" id="make-another" type="button" data-i18n="create_prompt.make_another">Make another</button>
				</div>
			</section>
		</main>

		<script type="module" src="/src/create-prompt.js"></script>
		<script src="/nav.js" defer></script>
		<script src="/brand.js" defer></script>
		<div id="footer-container"></div>
		<script src="/footer.js"></script>
		<!-- Runtime i18n: detects locale, swaps annotated copy, mounts <lang-switcher>. -->
	<script type="module" src="/i18n.js"></script>
</body>
</html>