/* REPLACEMENTS */

:root{
/* COLORS */
	--splash-bg: #9e3dff;
	--splash-accent: #cd9bff;
	--splash-text: #fff;

/* FONTS */
	--splash-copy-size: 92px;
	--splash-button-size: 14px;

/* DIMENSIONS */
	--splash-header-space: 37px;
	--splash-word-width: 9.5ch;
}


/* GENERAL */

*{box-sizing:border-box;}

html,body{width:100%;height:100%;margin:0;padding:0;overflow:hidden;}
body{background:var(--splash-bg);color:var(--splash-text);font-family:'Gabarito',sans-serif;}

#sc-splash-wrapper{position:relative;width:100vw;height:100vh;height:100dvh;overflow:hidden;}


/* HEADER */

#sc-splash-header{position:absolute;z-index:10;top:0;left:0;display:flex;align-items:center;justify-content:space-between;width:100%;padding:var(--splash-header-space);}

#sc-splash-logo{display:block;line-height:0;}
#sc-splash-logo img{display:block;width:210px;height:auto;}

#sc-splash-patreon{display:flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;border:2px solid var(--splash-accent);border-radius:999px;background:var(--splash-accent);color:var(--splash-text);font-size:var(--splash-button-size);font-weight:600;line-height:1;text-decoration:none;white-space:nowrap;transition:background 0.2s ease,color 0.2s ease,transform 0.2s ease;}
#sc-splash-patreon:hover{background:transparent;transform:translateY(-2px) scale(1.05);}


/* CREATE ANIMATION */

#sc-splash-main{display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:30px;}

#sc-splash-create{display:flex;align-items:baseline;justify-content:center;color:var(--splash-text);font-size:var(--splash-copy-size);font-weight:600;letter-spacing:-0.05em;line-height:1;white-space:nowrap;}

.sc-splash-create-label{margin-right:0.22em;}
.sc-splash-answer{display:flex;align-items:baseline;}

#sc-splash-word-slot{position:relative;display:inline-block;width:var(--splash-word-width);height:1.08em;overflow:visible;transition:width 0.65s cubic-bezier(0.65,0,0.35,1);}
#sc-splash-word-slot:after{position:absolute;z-index:2;right:0;bottom:0;left:0;height:0.055em;background:currentColor;content:'';transition:bottom 0.65s cubic-bezier(0.65,0,0.35,1);}

#sc-splash-word-slot.final{width:var(--splash-final-width);transform:translateY(14px);transition:all 0.5s ease-in-out;}
#sc-splash-word-slot.final:after{bottom:0.09em;}

#sc-splash-word{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;overflow:hidden;}
#sc-splash-word-slot.final #sc-splash-word{overflow:visible;}

.sc-splash-word-text{display:inline-block;width:max-content;opacity:1;transform:translateY(0);transition:transform 0.65s cubic-bezier(0.65,0,0.35,1);}
.sc-splash-word-text.leaving{animation:sc-splash-word-leave var(--word-speed,300ms) cubic-bezier(0.65,0,0.35,1) forwards;}
.sc-splash-word-text.entering{animation:sc-splash-word-enter var(--word-speed,300ms) cubic-bezier(0.65,0,0.35,1) forwards;}
.sc-splash-word-text.final{animation:sc-splash-final-word 0.7s ease forwards;}

#sc-splash-word-slot.final .sc-splash-word-text{transform:translateY(0.03em);}

#sc-splash-period{display:inline-block;width:0.28em;opacity:0;transform:translateY(0.08em);transition:opacity 0.5s ease,transform 0.5s ease;}
#sc-splash-period.visible{opacity:1;transform:translateY(-0.03em);}


/* ANIMATION */

@keyframes sc-splash-word-leave{
	from{opacity:1;transform:translateY(0);}
	to{opacity:0;transform:translateY(-110%);}
}

@keyframes sc-splash-word-enter{
	from{opacity:0;transform:translateY(110%);}
	to{opacity:1;transform:translateY(0);}
}

@keyframes sc-splash-final-word{
	from{opacity:0;}
	to{opacity:1;}
}


/* RESPONSIVE */

@media(max-width:850px){
	:root{
		--splash-header-space:22px;
	}

	#sc-splash-header{justify-content:center;}

	#sc-splash-create{flex-direction:column;align-items:center;}
	.sc-splash-create-label{margin-right:0;margin-bottom:0.12em;}

	#sc-splash-logo img{width:170px;}

	#sc-splash-patreon{position:fixed;right:auto;bottom:22px;left:50%;min-height:44px;padding:0 20px;font-size:var(--splash-button-size);line-height:1;transform:translateX(-50%);}
	#sc-splash-patreon:hover{transform:translateX(-50%) translateY(-2px) scale(1.05);}
}

@media(max-width:500px){
	:root{
		--splash-copy-size:72px;
		--splash-word-width:8.5ch;
	}

	#sc-splash-logo img{width:150px;}
	#sc-splash-main{padding:20px;}
}

@media(max-width:360px){
	:root{
		--splash-copy-size:68px;
	}
}


/* REDUCED MOTION */

@media(prefers-reduced-motion:reduce){
	.sc-splash-word-text{animation:none!important;transition:none!important;}
	#sc-splash-word-slot, #sc-splash-word-slot:after, #sc-splash-period{transition:none;}
}