@font-face {
	font-family: 'codropsicons';
	font-weight: normal;
	font-style: normal;
	src: url('../fonts/codropsicons/codropsicons.eot');
	src: url('../fonts/codropsicons/codropsicons.eot?#iefix') format('embedded-opentype'), url('../fonts/codropsicons/codropsicons.woff') format('woff'), url('../fonts/codropsicons/codropsicons.ttf') format('truetype'), url('../fonts/codropsicons/codropsicons.svg#codropsicons') format('svg');
}

*,
*::after,
*::before {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

body {
	font-family: 'Avenir Next', Avenir, 'Helvetica Neue', Helvetica, Arial, sans-serif;
	margin: 0;
	padding: 0;
	color: #475d5b;
	background: #f2f7f5;
	display: flex;
	flex-direction: column;
	height: 100vh;
	overflow: hidden;
}

a {
	text-decoration: none;
	color: #475d5b;
	outline: none;
}

a:hover,
a:focus {
	outline: none;
}


/* Top Navigation Style */

.meta {
	font-size: 0.75em;
	line-height: 1;
	position: absolute;
	top: 1em;
	left: 1em;
	display: -webkit-flex;
	display: flex;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
	white-space: nowrap;
	border-top: 1px solid #475d5b;
}

.meta::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 1px;
	height: 100%;
	background: #475d5b;
}

.meta a {
	display: block;
	padding: 1em 1.35em;
	border: 1px solid #475d5b;
	border-top: 0;
}

.meta a:not(:last-child) {
	border-right: 0;
}

.codrops-icon {
	width: 4em;
}

.codrops-icon span {
	display: none;
}

.codrops-icon::before {
	font-family: 'codropsicons';
	font-size: 1.15em;
	font-weight: normal;
	font-style: normal;
	font-variant: normal;
	line-height: 1;
	text-transform: none;
	speak: none;
	-webkit-font-smoothing: antialiased;
}

.codrops-icon--drop::before {
	content: '\e001';
	color: #00473e;
}

.codrops-icon--prev::before {
	content: '\e004';
}


/* Demo links */

.demo-link {
	font-family: 'Playfair Display';
	font-weight: bold;
	text-align: center;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.demo-link--current {
	color: #00473e;
}

@media screen and (max-width:40em) {
	.meta {
		right: 1em;
	}

	.demo-link {
		-webkit-flex: 1;
		flex: 1;
	}
}

/* Styles for sponsor */
body #cdawrap {
	top: auto;
	right: auto;
	bottom: 12px;
	left: 12px;
	border: 1px solid #475d5b;
	background: none;
}

.partisan {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 38em;
	padding: 4.5em 7.5em 1.5em 5.5em;
}

.partisan__bg {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	opacity: 0.5;
}

.partisan__link {
	position: relative;
	display: -webkit-flex;
	display: flex;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-align-items: center;
	align-items: center;
}

.partisan__img,
.partisan__title {
	opacity: 0.85;
	-webkit-transition: opacity 0.1s;
	transition: opacity 0.1s;
}

.partisan__link:hover .partisan__img,
.partisan__link:hover .partisan__title {
	opacity: 1;
}

.partisan__img {
	max-width: 42%;
}

.partisan__title {
	font-family: 'Playfair Display';
	font-weight: bold;
	position: relative;
	margin: 0.5em 0 0 0.85em;
	color: #555d27;
}

.partisan__title::before {
	content: 'Sponsored by:';
	font-size: 0.5em;
	font-weight: bold;
	position: absolute;
	bottom: 100%;
	left: 0;
	padding: 0 0 1em 0;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: #95a534;
}

@media screen and (max-width:80em) {
	.partisan {
		font-size: 76%;
	}

	.partisan__title::before {
		font-size: 0.25em;
	}
}

@media screen and (max-width:60em) {
	.game-holder .message--instructions {
		bottom: 5.5em;
	}

	.partisan {
		width: 100%;
		height: auto;
		padding: 1.75em 0.5em 0.5em;
		text-align: center;
		background: rgba(190, 215, 48, 0.5);
	}

	.partisan__bg {
		display: none;
	}

	.partisan__img {
		display: none;
	}

	.partisan__title {
		margin: 0;
	}

	.partisan__title::before {
		width: 100%;
		padding: 0 0 0.25em;
	}
}

/* Header 容器样式 */
#header-root {
	flex-shrink: 0;
	z-index: 1000;
}

/* World 容器：位于 header 下方，铺满剩余空间 */
.world {
	position: relative;
	flex: 1;
	width: 100%;
	overflow: hidden;
	background: -webkit-linear-gradient(#e4e0ba, #f7d9aa);
	background: linear-gradient(#e4e0ba, #f7d9aa);
	z-index: 1;
	min-height: 0;
	/* 允许 flex 子元素缩小 */
}