/* Same minimal theme as the viewer (css/style.css), trimmed to this page. */
:root {
	--bg: #ffffff;
	--stage: #f2f2f0;
	--line: #e6e6e6;
	--text: #000000;
	--name: #666666;
	--muted: #999999;
	--underline: #cfcfcf;
	--gutter: 28px;
}

* {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
	margin: 0;
}

body {
	height: 100dvh;
	display: grid;
	grid-template-rows: 64px minmax(0, 1fr) auto;
	background: var(--bg);
	color: var(--text);
	font: 15px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

button {
	font: inherit;
}

.banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 0 var(--gutter);
	padding-top: env(safe-area-inset-top);
}

.banner__name {
	color: var(--name);
	font: 400 20px/1 "Roboto Serif", Georgia, serif;
	letter-spacing: 0.4px;
	text-decoration: none;
	white-space: nowrap;
}

.banner__project {
	color: var(--muted);
	white-space: nowrap;
}

.stage {
	position: relative;
	background: var(--stage);
}

model-viewer {
	width: 100%;
	height: 100%;
	background: var(--stage);
	--poster-color: var(--stage);
}

.progress {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 160px;
	height: 1px;
	background: var(--line);
	transform: translateX(-50%);
}

.progress span {
	display: block;
	width: 0;
	height: 100%;
	background: var(--text);
	transition: width 0.2s;
}

.link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--text);
	text-decoration: underline;
	text-decoration-color: var(--underline);
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	cursor: pointer;
	transition: text-decoration-color 0.15s;
}

.link:hover {
	text-decoration-color: var(--text);
}

.ar-button {
	position: absolute;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	padding: 10px 18px;
	background: var(--bg);
	font-size: 16px;
	white-space: nowrap;
}

.info {
	padding: 16px var(--gutter) calc(20px + env(safe-area-inset-bottom));
	max-width: 640px;
}

.label {
	margin: 0 0 6px;
	color: var(--muted);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.hint {
	margin: 0;
	color: var(--name);
	font-size: 13px;
}

.hint--warn {
	margin-top: 8px;
	color: var(--text);
}

.url {
	color: var(--text);
	word-break: break-all;
}

[hidden] {
	display: none !important;
}

@media (max-width: 760px) {
	:root {
		--gutter: 16px;
	}

	.banner__name {
		font-size: 17px;
	}

	.banner__project {
		font-size: 13px;
	}
}
