@font-face {
	font-family: 'Gosha Sans';
	font-style: normal;
	font-weight: 400;
	src: url('/fonts/PPGoshaSans-Regular.woff2') format('woff2');
}

@font-face {
	font-family: 'Gosha Sans';
	font-style: normal;
	font-weight: 700;
	src: url('/fonts/PPGoshaSans-Bold.woff2') format('woff2');
}

@font-face {
	font-family: 'Gosha Sans';
	font-style: normal;
	font-weight: 800;
	src: url('/fonts/PPGoshaSans-Ultrabold.woff2') format('woff2');
}

:root {
	color-scheme: dark;
	font-family: 'Gosha Sans', ui-sans-serif, system-ui, sans-serif;
	background: transparent;
	color: #fff;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: transparent;
}

body {
	text-shadow:
		0 0 5px rgb(0 0 0 / 0.25),
		0 0 15px rgb(0 0 0 / 0.25);
}

.app {
	position: relative;
	width: 100%;
	height: 100%;
	padding: 0;
}

.hidden {
	display: none !important;
}

.media-entry,
.identity.entering,
.caption.entering {
	opacity: 0;
	transform: scale(0.9);
}

.media-entry {
	transition:
		opacity 400ms cubic-bezier(0.22, 1, 0.36, 1),
		transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
	will-change: opacity, transform;
}

.media-entry.media-entry-active,
.identity.entered,
.caption.entered {
	opacity: 1;
	transform: scale(1);
}

.identity {
	position: fixed;
	top: 2.5rem;
	left: 2.5rem;
	z-index: 10;
	display: flex;
	max-width: 16rem;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	transform-origin: top left;
	transition:
		opacity 400ms cubic-bezier(0.22, 1, 0.36, 1),
		transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
	will-change: opacity, transform;
}

.identity-avatar {
	width: 100%;
	border-radius: 999px;
	border: 1rem solid #22c55e;
	object-fit: cover;
	aspect-ratio: 1 / 1;
}

.identity-name {
	margin: 0;
	max-width: 12ch;
	transform: translateY(-2.75rem);
	text-align: center;
	font-size: clamp(2rem, 4vw, 4rem);
	font-weight: 700;
	line-height: 0.95;
	word-break: break-word;
	-webkit-text-stroke: 2px #000;
}

.stage {
	display: flex;
	height: 100%;
	width: 100%;
	align-items: center;
	justify-content: center;
	padding: 2rem 10vw;
}

.media-shell {
	display: flex;
	height: 100%;
	width: 100%;
	align-items: center;
	justify-content: center;
	transform-origin: center;
}

.media-shell > img,
.media-shell > media-player,
.media-shell > iframe,
.media-shell > video,
.media-shell > audio {
	max-width: 100%;
	max-height: 100%;
}

.media-shell > img {
	height: 100%;
	width: auto;
	object-fit: contain;
	border-radius: 1rem;
}

.media-shell media-player {
	width: 100%;
	height: 100%;
	--video-border: 0;
	--video-border-radius: 1rem;
	--video-bg: transparent;
	--media-focus-ring: none;
	--media-brand: #22c55e;
	--media-controls-color: #fff;
	--media-font-family: 'Gosha Sans', ui-sans-serif, system-ui, sans-serif;
	--video-controls-color: #fff;
	--video-sm-play-button-bg: rgb(0 0 0 / 0.6);
	--video-volume-bg: rgb(8 8 8 / 0.8);
	background: transparent;
	border: 0;
	box-shadow: none;
}

.media-shell media-player::part(captions),
.media-shell media-player::part(controls),
.media-shell media-player::part(title),
.media-shell media-player::part(google-cast-prompt) {
	display: none !important;
}

.media-shell > div {
	width: 100%;
	height: 100%;
}

.caption {
	position: fixed;
	right: calc(100% / 6);
	bottom: 5rem;
	left: calc(100% / 6);
	z-index: 50;
	margin: 0;
	text-align: center;
	font-size: clamp(2rem, 4.5vw, 5rem);
	font-weight: 700;
	line-height: 1;
	word-break: break-word;
	-webkit-text-stroke: 2px #000;
	text-shadow: 2px 0 4px black;
	transform-origin: center bottom;
	transition:
		opacity 400ms cubic-bezier(0.22, 1, 0.36, 1),
		transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
	will-change: opacity, transform;
}

iframe.vds-youtube[data-no-controls] {
	height: 100% !important;
}

.media-shell iframe.vds-youtube {
	pointer-events: none;
}

@media (max-width: 900px) {
	.identity {
		top: 1rem;
		left: 1rem;
		max-width: 7rem;
	}

	.identity-avatar {
		border-width: 0.5rem;
	}

	.identity-name {
		transform: translateY(-1rem);
		font-size: 1.75rem;
	}

	.stage {
		padding: 1rem 1rem 5rem;
	}

	.media-shell {
		transform: scale(1);
	}

	.caption {
		right: 1rem;
		left: 1rem;
		bottom: 1.25rem;
		font-size: 2rem;
	}
}
