@font-face {
	font-family: 'Dragonic';
	src: url('./dragon_alphabet.woff2') format('woff2'),
	     url('./dragon_alphabet.ttf') format('truetype');
	font-display: swap;
}

.Dragonic-font {
	font-family: 'Dragonic', serif;
	font-size: 20px;
	line-height: 1.1;
	word-spacing: .5em;
}

.site-header {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 1rem 1.5rem;
	border-bottom: 1px solid rgba(148, 163, 184, .12);
	text-align: center;
}

body {
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	color: #e2e8f0;
	background: #0f172a;
}

main {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	padding: 1.5rem;
}

.side {
	width: 280px;
	flex-shrink: 0;
}

@media (max-width: 1100px) {
	main {
		flex-direction: column;
		gap: 1.5rem;
	}
	.side {
		width: 100%;
		max-width: 480px;
	}
	.stage { order: 1; }
	.tg-post { order: 2; }
	.credits { order: 3; height: 400px; }
}

.tg-post {
	background: rgba(30, 41, 59, .55);
	border: 1px solid rgba(148, 163, 184, .18);
	border-radius: 12px;
	padding: 1rem;
	max-height: 520px;
	overflow-y: auto;
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}
.tg-post a.tg-post-link { display: block; color: inherit; text-decoration: none; }
.tg-post img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	display: block;
	margin-bottom: .75rem;
}
.tg-post-text { font-size: .85rem; line-height: 1.5; color: #cbd5e1; word-wrap: break-word; }
.tg-post-text a { color: #7dd3fc; }
.tg-post-meta { margin-top: .75rem; font-size: .75rem; color: #64748b; }
.side-empty { color: #64748b; font-size: .85rem; text-align: center; padding: 1rem; }

.credits {
	height: 500px;
	overflow: hidden;
	position: relative;
	mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
	-webkit-mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
}
.credits-track {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
	animation: scroll-up 60s linear infinite;
}
.credits:hover .credits-track { animation-play-state: paused; }
@keyframes scroll-up {
	from { transform: translateY(0); }
	to { transform: translateY(-50%); }
}
.credit { text-align: center; font-size: .85rem; line-height: 1.4; }
.credit .author { display: block; color: #e2e8f0; font-weight: 600; letter-spacing: .01em; }
.credit .track { display: block; color: #94a3b8; font-size: .8rem; margin-top: .15rem; }

.site-footer {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: .55rem;
	padding: 1rem 1.5rem;
	border-top: 1px solid rgba(148, 163, 184, .12);
	color: #94a3b8;
	font-size: .85rem;
	letter-spacing: .01em;
}
.site-footer img { width: 18px; height: 18px; display: block; }

.stage {
	position: relative;
	display: inline-block;
	line-height: 0;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
}
.stage img {
	display: block;
	max-width: min(92vw, 1200px);
	max-height: 88vh;
	width: auto;
	height: auto;
}
.stage .card {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	line-height: normal;
}

.card {
	padding: 2.5rem 3rem;
	background: rgba(30, 41, 59, .55);
	border: 1px solid rgba(148, 163, 184, .18);
	border-radius: 12px;
	text-align: center;
	backdrop-filter: blur(5px) saturate(140%);
	-webkit-backdrop-filter: blur(5px) saturate(140%);
}

h1 {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	margin: 0 0 1.25rem;
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

p { margin: .25rem 0; color: #94a3b8; font-size: .9rem; letter-spacing: .01em; }

.elliptic-list {
	list-style: none;
	margin: 0 0 1rem;
	padding: .5rem .75rem;
	background: rgba(15, 23, 42, .35);
	border: 1px solid rgba(148, 163, 184, .14);
	border-radius: 8px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	text-align: left;
}
.elliptic-list:empty { display: none; }
.elliptic-item {
	padding: .35rem 0;
	border-bottom: 1px dashed rgba(148, 163, 184, .12);
}
.elliptic-item:last-child { border-bottom: 0; }
.elliptic-ts {
	display: block;
	color: #64748b;
	font-size: .65rem;
	letter-spacing: .02em;
	margin-bottom: .15rem;
}
.elliptic-val {
	display: block;
	color: #cbd5e1;
	font-size: .72rem;
	overflow-wrap: anywhere;
}

.actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .6rem;
	margin-bottom: 1rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .7rem 1.4rem;
	text-decoration: none;
	font-weight: 600;
	font-size: .95rem;
	border-radius: 999px;
	transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }

.tg-btn {
	background: #229ED9;
	color: #fff;
	box-shadow: 0 4px 14px rgba(34, 158, 217, .35);
}
.tg-btn:hover { background: #1d8bbf; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(34, 158, 217, .5); }

.gh-btn {
	background: rgba(255, 255, 255, .06);
	color: #e2e8f0;
	border: 1px solid rgba(148, 163, 184, .35);
}
.gh-btn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(148, 163, 184, .55); transform: translateY(-1px); }
