:root {
	color-scheme: light dark;
}

/* корректный формат для .ttf */
@font-face {
	font-family: 'MullerRegular';
	src: url('/assets/fonts/MullerRegular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
	margin: 0;
	overflow: hidden; /* ← убираем скролл */
	background: #f9f9f9;
	color: #3d3d3d;
	font-family: 'MullerRegular', system-ui, -apple-system, Segoe UI, Roboto,
		Arial, sans-serif;
}

/* контейнер во весь экран и по центру */
.wrap {
	height: 100dvh; /* 100% высоты окна, без скролла */
	display: flex;
	flex-direction: column;
	justify-content: center; /* центр по вертикали */
	align-items: center; /* центр по горизонтали */
	gap: 18px;
	text-align: center;
	padding: 0; /* чтобы ничего не выталкивало */
}

.logo {
	width: clamp(160px, 18vw, 260px);
	height: auto;
	display: block;
}

/* подпись + точки */
.caption {
	font-size: 16px;
	white-space: nowrap;
	display: inline-flex;
	align-items: baseline;
	justify-content: center;
}

/* точки + курсор */
.dots-typing {
	display: inline-block;
	vertical-align: baseline;
	margin-left: 0.15em;
	border-right: 2px solid currentColor;
	padding-right: 2px;
	animation: caret 0.7s step-end infinite;
}

/* точки рисуем через псевдо-элемент */
.dots-typing::before {
	content: '';
	display: inline-block;
	vertical-align: baseline;
	animation: dotsPingPong 2s infinite steps(1, end);
}

/* вперёд: "", ".", "..", "..." — назад: "..", ".", "" */
@keyframes dotsPingPong {
	0% {
		content: '';
	}
	16.66% {
		content: '.';
	}
	33.33% {
		content: '..';
	}
	50% {
		content: '...';
	}
	66.66% {
		content: '..';
	}
	83.33% {
		content: '.';
	}
	100% {
		content: '';
	}
}

/* мигающий курсор */
@keyframes caret {
	0%,
	49% {
		border-color: transparent;
	}
	50%,
	100% {
		border-color: currentColor;
	}
}
