root {
	--logo-width: 100px;
	--logo-height: 100px;
	--logo-bg-width: 136px;
	--logo-bg-height: 136px;
	--logo-corner: 15px;

	--team-bgcolor: var(--yellow-rgb);
	--team-text-color: var(--black-rgb);
}

.stats-header {
	font-size: 40px;
	font-weight: 600;
	line-height: 1;
	color: var(--light-text-color);
	text-transform: uppercase;
}
.full .stats-header {
	display: none;
}
.compact .stats-header {
	position: absolute;
	left: 960px;
	top: 100px;

	font-size: 20px;
	width: 420px;
	display: none;
}
.compact ~ .page-header {
	display: none;
}

.spotlight {
	opacity: 0;
	transition: 0.5s all ease-in-out;
	z-index: 3;
}
.spotlight.full {
	opacity: 1;
}

.compact {
	position: absolute;
	left: calc(var(--left-offset) + 50px);
	bottom: var(--bottom-offset);

	display: flex;
	align-items: stretch;
	justify-content: space-between;

	height: 90px;

	right: 250px;
}
.compact.show-spotlight {
	right: calc(var(--right-offset) * 2);
	opacity: 1;
}

.game-icon {
	display: inline-block;
	width: 200px;
	height: 36px;
	background: no-repeat left center;
	background-size: auto 100%;
}
.compact .game-icon {
	position: relative;
	left: -2%;
	opacity: 0;
	transition: 0.5s opacity ease-in, 0.75s left ease-in;
}
.spotlight ~ .game-icon {
	position: absolute;
	top: var(--top-offset);
	right: var(--right-offset);
	width: 400px;
	height: 135px;
	background-position: right center;
}
.full .game-icon,
.compact ~ .game-icon { /* only show gam-icon in compact view */
	display: none;
}
.stats {
	color: var(--text-color);
	font-weight: bold;
	white-space: nowrap;
	transition: 0.3s all ease-in;
	transition-delay: 0.15s;
	opacity: 0;
}
.show-spotlight .player,
.show-spotlight .player-data,
.show-spotlight .stats {
	opacity: 1;
	transition: 0.6s all ease-in;
	transition-delay: 0.5s;
}
.full .stats {
	position: absolute;
	display: grid;
	grid-auto-flow: column;
	grid-template-rows: 1fr 1fr 1fr 1fr;
	grid-template-columns: 1fr 1.33fr;
	gap: 8px;

	align-content: flex-start;
	justify-content: space-between;

	text-align: left;

	font-size: 80px;
	line-height: 64px;

	z-index: 4;
}
.full .stats {
	left: calc(960px + 240px);
	right: calc(var(--right-offset) + 50px);
	bottom: 190px;
	margin-left: 8px;
}
.compact .stats {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content: flex-start;
	line-height: 1;
	flex-grow: 2;
	max-width: 1280px;
	z-index: 3;
}
.stat {
	position: relative;
	flex-shrink: 0;
	text-transform: uppercase;
	
	height: 140px;

	display: flex;
	align-items: stretch;
	justify-content: flex-start;
	flex-direction: column;
	color: var(--light-text-color);
	background-color: rgba(var(--dark-color-rgb), 0.7);
}
.compact .stat {
	margin-left: 6px;
	transform: translateX(0);
	overflow: hidden;
	height: auto;
	min-width: 90px;
}
.stat:empty {
	display: none;
}
.stat.kd {
	display: none;
}
.stat-name {
	line-height: 50px;
	font-size: 30px;
	font-weight: 400;
	position: relative;
	order: 1;
	z-index: 2;
	padding: 0 18px;
	font-family: "Satoshi", sans-serif;
}
.compact .stat-name {
	font-size: 20px;
	line-height: 30px;
	padding: 2px 15px 3px;
}
.stat-value {
	padding: 10px 18px 14px;
	display: flex;
	justify-content: flex-end;
	text-align: right;
	order: 2;
	font-family: "Space Mono", sans-serif;
	letter-spacing: 0.05em;

	position: relative;
	z-index: 1;
	transform: translateY(0px);
	transition: font-size 1s, line-height 1s, transform 0.75s, color 0.2s 2s;
	transition-delay: 1s;
}
.compact .stat-value {
	font-size: 36px;
	line-height: 36px;
	padding: 9px 12px 10px 24px;
}
.spotlight:not(.show-spotlight) .stat-value {
	font-size: 0px;
	line-height: 0px;
	transform: translateY(-40px);
	transition-delay: 4s;
	color: transparent;
}
.stat.trivia {
	grid-row: 3;
	grid-column: 1 / 2 span;
	padding-right: var(--right-offset);
}
.trivia .stat-name {
	display: none;
}
.trivia .stat-value {
	font-size: 46px;
	font-weight: 400;
	white-space: normal;
}

.player { /* contains .agent & .player-photo */
	position: absolute;
	z-index: 4;
	opacity: 0;
}
.player:after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: calc(140px * 3 + 24px + 40px);
	background-color: var(--primary-color);
	background: no-repeat left center / auto 500px;
}
.full .player {
	top: calc(var(--top-offset));

	height: 640px;
	width: 480px;
}
.compact .player {
	position: absolute;
	bottom: 60px;
	left: 0px;
	width: 300px;
	height: 340px;
	z-index: 2;
}
.compact .player:after {
	height: 250px;
}
.player-photo {
	width: 100%;
	height: 100%;
	background: center bottom no-repeat;
	background-size: contain;
	z-index: 2;

	position: relative;
	left: -3%;
	transition: 0.5s opacity, left 0.5s;
	opacity: 0;
}
.show-spotlight .player-photo {
	left: 0;
	opacity: 1;
	transition-delay: 0.65s;
}
.full .player {
	left: 50%;
	transform: translateX(-50%);
}
.player-photo[style*="players/"i]:before {
	content: '';
	position: absolute;
	width: 150%;
	height: 600px;
	left: 50%;
	transform: translate(-50%, 50%);
	bottom: 0;
	background: radial-gradient(rgba(var(--team-text-color), 0.4) 25%, transparent 50%, transparent, transparent);
	background: radial-gradient(rgba(var(--green-rgb), 0.5) 35%, transparent 60%, transparent);
	background-size: 100%;
	display: inline-block;
	overflow: visible;
	opacity: 0.3;
	display: none;
}
.player-data {
	line-height: 1;
	text-align: left;
	position: relative;
	z-index: 5;
	color: var(--white);

	opacity: 0;
	transition: 0.5s opacity ease-in, 0.75s left ease-in;
}
.full .player-data {
	position: absolute;
	left: calc(960px - 240px);
	width: 480px;
	bottom: 190px;
	display: flex;
	justify-content: stretch;
	align-items: flex-end;
	flex-direction: row;
}
.compact .player-data {
	display: flex;
	justify-content: stretch;
	align-items: flex-end;
	flex-direction: row;
	opacity: 1;
	width: 300px;
}
.show-spotlight.compact .player-data {
	opacity: 1;
}
.player-info {
	flex-direction: column;
	justify-content: stretch;
	text-align: left;
	order: 2;
	display: flex;
	position: relative;
	flex-grow: 1;
	z-index: 6;
}
.compact .player-info {
}

.player-name { /* nickname */
	font-size: 40px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 100px;
	position: relative;
	text-transform: uppercase;
	padding: 0 24px;
	background-color: rgba(var(--black-rgb), 0.85);
	color: var(--white);
	transition: color 0.5s;
	color: transparent;
	transition: color 0.5s;
	order: 2;
}
.show-spotlight .player-name {
	color: var(--white);
	transition-delay: 0.5s;
}
.compact .player-name {
	font-size: 32px;
	line-height: 60px;
	padding: 0 12px;
}
.player-realname {
	font-size: 24px;
	line-height: 40px;
	padding: 0 18px;
	background-color: var(--primary-color);
	color: transparent;
	transition: color 0.5s;
	order: 1;
	position: relative;
}
.show-spotlight .player-realname {
	color: var(--text-color);
	transition-delay: 0.5s;
}
.full .player-realname {
	width: calc(100% + 100px);
	right: 0;
	left: -100px;
}
.compact .player-realname {
	font-size: 20px;
	line-height: 30px;
	width: calc(100% + 60px);
	right: 0;
	left: -60px;
	padding: 0 12px;
}
.team-info {
	display: flex;
	align-items: center;
	justify-content: center;
	order: 1;
	background-color: var(--secondary-color);

	opacity: 1;
	transition: 0.6s opacity ease-in;
}
.full .team-info {
	width: auto;
	height: 100%;
}
.compact .team-info {
}
.team-logo {
	position: relative;

	height: 80px;
	width: 80px;
	margin: 10px;
	order: 1;
	background: no-repeat center / contain;
	
	opacity: 0;
	transition: opacity 0.5s;
}
.show-spotlight .team-logo {
	opacity: 1;
	transition-delay: 0.5s;
}
.team-logo:not([style]) {
	display: none;
}
.full .team-logo {
}
.team-logo:before {
	content: '';
	position: absolute;
	z-index: -1;
	width: 110px;
	height: 110px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: no-repeat center;
	background-size: contain;
	background-color: var(--secondary-color);
	display: none;
}
.compact .team-logo {
	width: 40px;
	height: 40px;
	margin: 10px;
}
.compact .team-logo:before {
	width: 60px;
	height: 60px;
}
.team-name {
	font-size: 60px;
	text-align: right;
	padding-bottom: 0.15em;
	order: 2;
	display: none;
}

.compact .stat-corners {
	font-size: 30px;
}

/* Player corner decoration */
.stat-corners {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	font-size: 25px;
	color: var(--primary-color);
}
.corners:before,
.corners:after {
	content: '';
	position: absolute;
	border: 2px solid;
	width: 1em;
	height: 1em;
}
.corners:before {
	border-right-width: 0;
	left: 0;
}
.corners:after {
	border-left-width: 0;
	right: 0;
}
.corners-top:before,
.corners-top:after {
	border-bottom-width: 0;
	top: 0;
}
.corners-bottom:before,
.corners-bottom:after {
	border-top-width: 0;
	bottom: 0;
}