@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700;800;900&display=swap");

:root {
	--color-rflx: #191c25;
	--color-bg: rgba(0, 0, 0, 0.6);
}

::selection {
	color: none;
	background: none;
}

html,
body {
	width: 100%;
	height: 100%;
	overflow: hidden;
	cursor: none;
}

body {
	background: radial-gradient(120% 120% at 50% 20%, #17181c 0%, #101114 55%, #08090a 100%);
	background-size: cover;
	margin: 0;
	padding: 0;
	overflow: hidden;
}

#content-wrapper {
	--margin-offset: 100px;
	margin: calc(var(--margin-offset)/2);
	width: calc(100% - var(--margin-offset));
	height: calc(100% - var(--margin-offset));
	position: relative;
	z-index: 10;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

#main {
	position: relative;
	flex: 1;
	min-height: 0;
	display: flex;
	gap: 16px;
	width: 100%;
}

#background {
	position: relative;
	box-sizing: border-box;
	margin: 0;
	flex: 1.35;
	height: 100%;
	min-width: 0;
	z-index: 45;
}

#background .slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1s ease-in-out;
	filter: blur(0px) grayscale(0) saturate(1.2) sepia(0.2);
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	height: 100%;
}

#background .slide-img {
	flex: 1;
	min-height: 0;
	border-radius: 10px;
	background-color: var(--color-bg);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

#background .slide.active {
	opacity: 1;
}

#background .slide.active .slide-img {
	animation: slide-in 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

#background .slide.active .slide-img:nth-child(2) {
	animation-delay: 0.18s;
}

@keyframes slide-in {
	from { transform: translateY(10px) scale(0.985); opacity: 0.4; }
	to { transform: none; opacity: 1; }
}

#cursor {
	position: absolute;
	z-index: 9999;
	pointer-events: none;
}

strong {
	font-weight: 700;
}

#bottom-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	flex: none;
	min-height: 38px;
}

#enable-music {
	color: #e7e7e7;
	font-family: "Lexend", sans-serif;
	font-size: 13px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	font-weight: 400;
	text-shadow: 2px 2px 2px rgba(0, 0, 0, 1);
	border-radius: 8px;
	padding: 8px 14px;
	background: var(--color-rflx);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
	user-select: none;
}

#nameday {
	color: #e7e7e7;
	font-family: "Lexend", sans-serif;
	font-size: 14px;
	letter-spacing: 2px;
	text-transform: uppercase;
	font-weight: 400;
	text-shadow: 2px 2px 2px rgba(0, 0, 0, 1);
	border-radius: 8px;
	padding: 8px 14px;
	background: var(--color-rflx);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
	user-select: none;
}

.box-wrapper {
	height: 100%;
	min-width: 0;
	display: flex;
	flex-direction: column;
	background-color: var(--color-bg);
	border-radius: 10px;
	overflow: hidden;
	position: relative;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
	user-select: none;
}

#announce.box-wrapper {
	flex: 0.92;
}

#changelog.box-wrapper {
	flex: 1.08;
}

.box-wrapper > span {
	color: #e7e7e7;
	font-family: "Lexend", sans-serif;
	font-size: 16px;
	letter-spacing: 2px;
	font-weight: 400;
	text-shadow: 2px 2px 2px rgba(0, 0, 0, 1);
	margin: 0;
	border-top-left-radius: 10px;
	border-bottom-right-radius: 10px;
	padding: 8px 12px 8px 12px;
	background-color: var(--color-rflx);
	position: absolute;
	z-index: 5;
}

.box {
	width: 100%;
	flex-grow: 1;
	font-family: "Lexend", sans-serif;
	font-weight: 300;
	overflow-y: auto;
	overflow-x: hidden;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 48px 12px 12px;
}

.log {
	flex: none;
	color: white;
	background-color: rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
	padding: 10px 14px 12px;
}

.log-header {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

.log-author-wrap {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.log-author {
	font-weight: 500;
	font-size: 14px;
	color: #e7e7e7;
}

.log-role-icon {
	width: 16px;
	height: 16px;
	object-fit: contain;
	vertical-align: middle;
	display: inline-block;
}

.log-date {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.45);
}

.log-body {
	font-size: 13px;
	line-height: 1.5;
}

.log-body > :first-child { margin-top: 0; }
.log-body > :last-child { margin-bottom: 0; }

.log a {
	color: #ff4757;
	font-weight: 500;
	pointer-events: none;
	cursor: default;
}

.spoiler {
	background-color: rgba(255, 255, 255, 0.2);
	color: transparent !important;
	border-radius: 4px;
	padding: 1px 5px;
	cursor: pointer;
	user-select: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.spoiler:hover,
.spoiler.revealed {
	background-color: rgba(255, 255, 255, 0.08);
	color: #e7e7e7 !important;
	user-select: auto;
}

.log blockquote {
	margin: 10px;
}

.emoji {
	width: 20px;
	vertical-align: middle;
}

.log-body img:not(.emoji) {
	max-width: 100%;
}

.log-image {
	display: block;
	width: 100%;
	max-height: 260px;
	object-fit: cover;
	margin-top: 8px;
	border-radius: 8px;
}

.log-reactions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

.log-reaction-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 6px;
	padding: 3px 8px;
	font-size: 12px;
	color: #e2e8f0;
	user-select: none;
}

.log-reaction-pill .emoji {
	width: 16px;
	height: 16px;
}

.log-reaction-count {
	font-size: 11px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.7);
}

.unknown {
	background-color: rgba(255, 255, 255, 0.3);
	padding: 0 4px;
	border-radius: 6px;
}

::-webkit-scrollbar {
	width: 5px;
}

::-webkit-scrollbar-track {
	background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.7);
}

::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.9);
}

#progress {
	position: relative;
	z-index: 50;
	flex-shrink: 0;
	box-sizing: border-box;
	height: 36px;
	padding: 0 12px;
	display: flex;
	align-items: center;
	gap: 12px;
	background-color: var(--color-bg);
	border-radius: 10px;
	user-select: none;
}

#progress-track {
	flex: 1;
	height: 6px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.12);
	overflow: hidden;
}

#progress-fill {
	width: 0;
	height: 100%;
	border-radius: 10px;
	background: #ffffff;
	box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
	transition: width 0.4s ease-out;
}

#progress-percent {
	min-width: 48px;
	text-align: right;
	color: #e7e7e7;
	font-family: "Lexend", sans-serif;
	font-size: 16px;
	letter-spacing: 2px;
	font-weight: 400;
	text-shadow: 2px 2px 2px rgba(0, 0, 0, 1);
}
