@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
	color-scheme: light;
	font-family: 'DM Sans', sans-serif;
	color: #351044;
	background: #f8f2fb;
	font-synthesis: none;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	--berry: #71349b;
	--berry-dark: #351044;
	--berry-light: #a565cf;
	--lime: #c8df83;
}

* {
	box-sizing: border-box;
}

body {
	min-width: 320px;
	min-height: 100vh;
	margin: 0;
}

.loading-screen {
	position: fixed;
	z-index: 1000;
	inset: 0;
	display: grid;
	place-items: center;
	overflow: hidden;
	color: #351044;
	transition: opacity 250ms ease;
	padding: 48px 24px 76px;
	background-color: #f8f2fb;
	background-image: linear-gradient(rgba(113, 52, 155, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(113, 52, 155, 0.035) 1px, transparent 1px);
	background-size: 34px 34px;
}

.loading-screen.is-leaving {
	opacity: 0;
}

.skip-loader .loading-screen {
	display: none;
}

.loading-content {
	display: flex;
	width: min(100%, 440px);
	flex-direction: column;
	align-items: center;
	text-align: center;
	animation: arrive 700ms ease-out both;
}

.berry-art {
	position: relative;
	width: 136px;
	height: 150px;
	margin-bottom: 27px;
	transform-origin: 50% 90%;
	animation: berry-bounce 1.8s ease-in-out infinite;
}

.berry-leaf {
	position: absolute;
	z-index: 2;
	background: linear-gradient(135deg, #a1c875, #6d984c);
	clip-path: polygon(50% 0, 100% 32%, 77% 78%, 50% 100%, 18% 75%, 0 33%);
}

.berry-leaf-left {
	top: 24px;
	left: 28px;
	width: 43px;
	height: 30px;
	transform: rotate(-34deg);
}

.berry-leaf-right {
	top: 24px;
	left: 65px;
	width: 43px;
	height: 30px;
	transform: rotate(34deg);
}

.berry-leaf-center {
	top: 6px;
	left: 53px;
	width: 30px;
	height: 47px;
	transform: rotate(-5deg);
}

.berry-body {
	position: absolute;
	z-index: 1;
	top: 37px;
	left: 17px;
	width: 102px;
	height: 106px;
	border: 3px solid #351044;
	border-radius: 46% 46% 50% 50% / 42% 42% 58% 58%;
	background: linear-gradient(145deg, #b779d3 4%, #934db5 52%, #71349b 100%);
	box-shadow: 0 10px 18px rgba(72, 26, 98, 0.18), inset -7px -8px 12px rgba(53, 16, 68, 0.15), inset 5px 5px 10px rgba(255, 255, 255, 0.18);
}

.berry-eye {
	position: absolute;
	z-index: 3;
	top: 76px;
	width: 8px;
	height: 10px;
	border-radius: 50%;
	background: #351044;
}

.berry-eye-left {
	left: 49px;
}

.berry-eye-right {
	left: 79px;
}

.berry-smile {
	position: absolute;
	z-index: 3;
	top: 91px;
	left: 54px;
	width: 29px;
	height: 16px;
	border: 3px solid #351044;
	border-top: 0;
	border-radius: 0 0 50% 50%;
}

.brand-name {
	margin: 0 0 13px;
	color: var(--berry-dark);
	font-family: 'Manrope', sans-serif;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0;
}

.brand-name span {
	color: var(--berry);
}

.loading-title {
	max-width: 400px;
	margin: 0;
	font-family: 'Manrope', sans-serif;
	font-size: clamp(29px, 8vw, 42px);
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.14;
}

.loading-message {
	margin: 14px 0 30px;
	color: #785c80;
	font-size: 15px;
	line-height: 1.5;
}

.progress-track {
	width: min(100%, 300px);
	height: 8px;
	overflow: hidden;
	border-radius: 99px;
	background: #e8dced;
}

.progress-fill {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #71349b, #a565cf 72%, #c8df83);
	transition: width 100ms linear;
}

.progress-label {
	margin: 10px 0 0;
	color: var(--berry);
	font-size: 12px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.loading-footer {
	position: absolute;
	bottom: 25px;
	margin: 0;
	color: #896f91;
	font-size: 12px;
	text-align: center;
}

@keyframes berry-bounce {
	0%, 100% { transform: translateY(0) rotate(-3deg); }
	50% { transform: translateY(-9px) rotate(3deg); }
}

@keyframes arrive {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
	.loading-screen {
		padding-right: 20px;
		padding-left: 20px;
	}

	.berry-art {
		margin-bottom: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
