@font-face {
	font-family: Anon;
	src: url("An.ttf");
}

:root {
	color-scheme: dark;
	--panel: rgba(10, 12, 15, 0.82);
	--panel-strong: rgba(4, 5, 8, 0.9);
	--line: rgba(255, 221, 77, 0.34);
	--line-hot: rgba(255, 221, 77, 0.78);
	--text: #f7f2df;
	--muted: #bab199;
	--accent: #ffdd4d;
	--cyan: #28f4ff;
	--magenta: #ff2bbf;
	--shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

* {
	box-sizing: border-box;
}

html,
body {
	min-height: 100%;
	margin: 0;
}

body {
	background:
		linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.38) 42%, rgba(0, 0, 0, 0.7) 100%),
		url("cyberpunk-bg.svg") center / cover fixed no-repeat,
		#111;
	color: var(--text);
	font-family: Inter, Segoe UI, system-ui, -apple-system, sans-serif;
}

a {
	color: inherit;
}

.page {
	display: grid;
	grid-template-columns: 250px repeat(2, minmax(0, 360px));
	gap: 18px;
	justify-content: center;
	width: min(1160px, calc(100% - 32px));
	min-height: 100vh;
	margin: 0 auto;
	padding: 28px 0;
}

.sidebar {
	align-self: center;
	position: sticky;
	top: 50%;
	transform: translateY(-50%);
	padding: 14px;
	border: 1px solid var(--line);
	background:
		linear-gradient(180deg, rgba(255, 221, 77, 0.12), rgba(40, 244, 255, 0.06) 46%, rgba(255, 43, 191, 0.08)),
		var(--panel);
	box-shadow: var(--shadow);
	backdrop-filter: blur(10px);
}

.identity {
	min-width: 0;
	padding-bottom: 22px;
	border-bottom: 1px solid rgba(255, 221, 77, 0.22);
}

.eyebrow {
	display: block;
	margin-bottom: 12px;
	color: var(--cyan);
	font-family: Anon, monospace;
	font-size: 16px;
	text-transform: uppercase;
	text-shadow: 0 0 16px rgba(40, 244, 255, 0.8);
}

h1,
h2,
p {
	margin: 0;
}

h1 {
	font-family: Anon, Segoe UI, sans-serif;
	font-size: 48px;
	font-weight: 800;
	line-height: 0.95;
	text-shadow: 0 0 22px rgba(255, 221, 77, 0.56), 0 0 34px rgba(255, 43, 191, 0.24);
}

.identity p {
	margin-top: 14px;
	color: var(--muted);
	font-size: 16px;
	line-height: 1.45;
}

.socials {
	display: grid;
	gap: 10px;
}

.social-link {
	display: grid;
	grid-template-columns: 38px 1fr;
	gap: 10px;
	align-items: center;
	min-height: 54px;
	padding: 8px 10px;
	border: 1px solid rgba(255, 221, 77, 0.26);
	background: var(--panel-strong);
	text-decoration: none;
	transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.social-link:hover {
	transform: none;
	border-color: var(--line-hot);
	background: rgba(255, 221, 77, 0.1);
	box-shadow: 0 0 24px rgba(255, 221, 77, 0.14);
}

.social-link-separated {
	position: relative;
	margin-top: 14px;
}

.social-link-separated::before {
	position: absolute;
	left: 0;
	right: 0;
	top: -13px;
	height: 1px;
	content: "";
	background: linear-gradient(90deg, transparent, rgba(255, 221, 77, 0.55), transparent);
}


.nav-icon {
	width: 36px;
	height: 36px;
	object-fit: contain;
	filter: drop-shadow(0 0 10px rgba(255, 221, 77, 0.2));
}

.twitch-nav-icon {
	width: 25px;
	height: 25px;
	justify-self: center;
}

.nav-arrow path {
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: square;
	stroke-linejoin: miter;
}

.social-link span {
	color: var(--accent);
	font-family: Anon, monospace;
	font-size: 15px;
}

.social-link:where(button) {
	width: 100%;
	appearance: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
	text-align: left;
}

.more-menu {
	width: 100%;
}

.more-trigger {
	grid-template-columns: 38px 1fr 20px;
}

.more-menu.is-open .more-trigger {
	border-color: var(--line-hot);
	background: rgba(255, 221, 77, 0.1);
	box-shadow: 0 0 24px rgba(255, 221, 77, 0.14);
}

.folder-icon {
	position: relative;
	display: block;
	width: 36px;
	height: 36px;
}

.folder-icon .nav-icon {
	position: absolute;
	inset: 0;
	transition: opacity 180ms ease, transform 180ms ease;
}

.folder-open {
	opacity: 0;
	transform: translateY(3px) scale(0.96);
}

.more-menu.is-open .folder-closed {
	opacity: 0;
	transform: translateY(-3px) scale(0.96);
}

.more-menu.is-open .folder-open {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.nav-arrow {
	width: 20px;
	height: 20px;
	color: var(--accent);
	transition: transform 180ms ease;
}

.more-trigger .nav-arrow {
	transform: rotate(180deg);
}

.more-menu.is-open .more-trigger .nav-arrow {
	transform: rotate(0deg);
}

.more-list {
	display: grid;
	grid-template-rows: 0fr;
	overflow: hidden;
	margin-top: 0;
	opacity: 0;
	transform: translateY(-4px);
	transition: grid-template-rows 220ms ease, opacity 180ms ease, transform 220ms ease, margin-top 220ms ease;
	pointer-events: none;
}

.more-menu.is-open .more-list {
	grid-template-rows: 1fr;
	margin-top: 8px;
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.more-list-inner {
	display: grid;
	gap: 8px;
	min-height: 0;
}

.more-item {
	grid-template-columns: 38px minmax(0, 1fr);
	min-height: 64px;
	padding-right: 12px;
	transform: none;
}

.more-item:hover {
	transform: none;
}

.more-text {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.more-text .more-title {
	font-size: 15px;
}

.more-text .more-caption {
	color: var(--muted);
	font-family: Inter, Segoe UI, system-ui, -apple-system, sans-serif;
	font-size: 12px;
	line-height: 1.25;
}

.chat-grid {
	display: contents;
}

.chat-panel {
	align-self: center;
	width: 100%;
	max-width: 360px;
	min-width: 0;
	border: 1px solid var(--line);
	background: var(--panel-strong);
	box-shadow: var(--shadow);
}

.chat-panel header {
	display: grid;
	align-items: center;
	justify-items: center;
	min-height: 58px;
	padding: 0 16px;
	border-bottom: 1px solid rgba(255, 221, 77, 0.18);
	background: linear-gradient(90deg, rgba(255, 221, 77, 0.09), rgba(40, 244, 255, 0.05));
}

.chat-panel h2 {
	font-family: Anon, monospace;
	font-size: 22px;
	text-align: center;
	text-shadow: 0 0 14px rgba(255, 221, 77, 0.42);
}

.chat-panel iframe {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: min(680px, calc(100vh - 150px));
	min-height: 520px;
	border: 0;
	background: #000;
}

@media (max-width: 900px) {
	body {
		background-attachment: scroll;
	}

	.page {
		grid-template-columns: 1fr;
		width: min(100% - 20px, 720px);
		padding: 10px 0;
	}

	.sidebar {
		position: static;
		transform: none;
		min-height: auto;
	}

	.chat-grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 360px));
		gap: 18px;
		justify-content: center;
		padding-top: 0;
	}

	.chat-panel iframe {
		height: 560px;
		min-height: 420px;
	}
}

@media (max-width: 720px) {
	.chat-grid {
		grid-template-columns: 1fr;
		justify-items: center;
	}
}
