main {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.container {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 2rem;
	gap: 20px;
}

iframe,
.main-hr {
	display: none;
}

iframe {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}

hr {
	width: 100%;
	flex-shrink: 0;
	border: none;
	border-top: 1px solid var(--border-color);
	margin: 20px 0;
}

.server-status-bar {
	display: flex;
	align-items: center;
	flex-direction: column;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px;
}

.status-item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.status-text {
	display: flex;
	flex-direction: column;
}

.status-text .label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #71717a;
	font-weight: 600;
}

.status-text .value {
	font-size: 0.95rem;
	font-weight: 600;
	color: #f4f4f5;
}

.status-dot {
	position: relative;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: var(--accent-emerald);
	box-shadow: 0px 0px 8px var(--accent-emerald);
}

.status-dot::after {
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 1px solid var(--accent-emerald);
	animation: pulse 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.copy-ip {
	font-family: inherit;
	background-color: var(--bg-card);
	padding: 5px;
	border-radius: 15px;
	border: 2px solid var(--border-color);
	transition: var(--transition-fast);
}

.copy-ip:hover {
	background-color: var(--bg-card-hover);
	border-radius: 15px;
	cursor: pointer;
}

.toaster {
	position: fixed;
	bottom: 70px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 9999;
	pointer-events: none;
	font-size: 1.2rem;
	padding: 20px;
	background-color: var(--bg-card);
	border: 4px solid var(--accent-emerald);
}

.plugins-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 1rem 2rem;
}

.plugin-card {
	position: relative;
	background-color: var(--bg-card);
	border: 2px solid var(--border-color);
	border-radius: var(--radius-md);
	padding: 20px;
	overflow: hidden;
	transition: var(--transition-fast);
	animation: card-enter linear both;
	animation-timeline: view();
	animation-range: entry 50% cover 25%;
}

.plugin-card h3 {
	margin: -20px -20px 15px -20px;
	padding: 20px 20px 12px 20px;
	border-bottom: 1px solid var(--border-color);
}

.plugin-card a {
	position: absolute;
	inset: 0;
	z-index: 1;
	color: transparent;
}

.plugin-card::after {
	content: "";
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: linear-gradient(
		60deg,
		transparent 40%,
		rgba(118, 161, 255, 0.788) 80%,
		transparent 60%
	);
	transform: translateX(-100%);
	transition: transform 2s cubic-bezier(0.16, 1, 0.3, 1);
	pointer-events: none;
	z-index: 2;
	mix-blend-mode: screen;
}

.plugin-card:focus-within::after,
.plugin-card:hover::after {
	transform: translateX(100%);
	transition: transform 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.plugin-card:focus-within,
.plugin-card:hover {
	background-color: var(--bg-card-hover);
	border-color: var(--accent-cyan);
	box-shadow:
		0px 0px 0px 1px color-mix(in srgb, var(--accent-cyan) 10%, transparent),
		0px 4px 16px -2px
			color-mix(in srgb, var(--accent-cyan) 15%, transparent),
		0px 12px 32px 0px
			color-mix(in srgb, var(--accent-cyan) 42%, transparent);
}

.plugin-card:has(a:focus-visible) {
	outline: 2px solid var(--accent-emerald);
	outline-offset: 4px;
}

@keyframes pulse {
	0% {
		transform: scale(0.6);
		opacity: 0.8;
	}
	100% {
		transform: scale(2.2);
		opacity: 0;
	}
}

@keyframes card-enter {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (min-width: 768px) {
	iframe,
	.main-hr {
		display: block;
	}
	.server-status-bar {
		flex-direction: row;
	}
}

@media (min-width: 992px) {
}
