@font-face {
	font-family: "Minecraft";
	font-style: normal;
	font-display: swap;
	font-weight: 400;
	src:
		url("https://cdn.jsdelivr.net/npm/@south-paw/typeface-minecraft/files/minecraft.woff2") format("woff2"),
		url("https://cdn.jsdelivr.net/npm/@south-paw/typeface-minecraft/files/minecraft.woff") format("woff");
}

:root {
	--accent: #ff7700;
	--accent-light: #ffb066;
	--bg: #0b0704;
	--text: #fff6ee;
	--text-dim: #b8a99a;
	--border: rgba(255, 176, 102, 0.18);
	--green: #2ecc71;
	--red: #ef4444;
}

* {
	box-sizing: border-box;
}

::selection {
	background: var(--accent);
	color: #1a0d00;
}

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

body {
	background: var(--bg);
	font-family: "Sora", system-ui, -apple-system, sans-serif;
	color: var(--text);
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 100vh;
	overflow-x: hidden;
	position: relative;
}

/* Background photo layer */
.bg-layer {
	position: fixed;
	inset: 0;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	filter: blur(2px);
	transform: scale(1.04);
	transition: opacity 0.8s ease;
	z-index: -3;
}

.bg-overlay {
	position: fixed;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(9, 6, 4, 0.3) 0%,
		rgba(9, 6, 4, 0.55) 35%,
		rgba(9, 6, 4, 0.94) 75%,
		rgba(9, 6, 4, 1) 100%
	);
	z-index: -2;
}

.glow {
	position: fixed;
	top: 42%;
	left: 50%;
	width: 900px;
	height: 900px;
	transform: translate(-50%, -50%);
	background: radial-gradient(circle, rgba(255, 119, 0, 0.22) 0%, rgba(255, 119, 0, 0.06) 45%, rgba(255, 119, 0, 0) 70%);
	pointer-events: none;
	z-index: -1;
}

/* Edge arrows to cycle backgrounds */
.edge-arrow {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	width: 46px;
	height: 46px;
	border: none;
	background: transparent;
	color: var(--text);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.15s ease, color 0.15s ease;
	z-index: 5;
}

.edge-arrow.visible {
	opacity: 1;
	pointer-events: auto;
}

.edge-arrow:hover {
	color: var(--accent);
}

.edge-arrow.visible:hover {
	transform: translateY(-50%) scale(1.15);
}

.edge-arrow svg {
	width: 26px;
	height: 26px;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7));
}

.edge-arrow-left { left: 20px; }
.edge-arrow-right { right: 20px; }

.page {
	position: relative;
	z-index: 1;
	flex: 1;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 24px;
}

.logo img {
	width: 190px;
	filter: drop-shadow(0 0 55px rgba(255, 119, 0, 0.5));
	animation: float 6s ease-in-out infinite;
}

@keyframes float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

.brand {
	margin: 20px 0 0;
	font-family: "Minecraft", "Sora", system-ui, sans-serif;
	font-size: 34px;
	font-weight: 400;
	letter-spacing: 6px;
	background: linear-gradient(180deg, #ffffff, var(--accent-light));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.status {
	margin: 14px 0 36px;
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: "Minecraft", "Sora", system-ui, sans-serif;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.5px;
	color: var(--text-dim);
}

.dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--text-dim);
}

.dot.online {
	background: var(--green);
	box-shadow: 0 0 10px var(--green);
	animation: pulse 2s ease-in-out infinite;
}

.dot.offline {
	background: var(--red);
	box-shadow: 0 0 10px var(--red);
}

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}

.actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.btn-title {
	line-height: 1.4;
}

.btn-caption {
	font-family: "Minecraft", "Sora", system-ui, sans-serif;
	font-size: 10px;
	color: #6b5a4c;
	line-height: 1.4;
}

.btn {
	font-family: inherit;
	border: 1px solid var(--border);
	background: rgba(255, 255, 255, 0.03);
	color: var(--text);
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-side {
	flex-direction: column;
	gap: 2px;
	width: 150px;
	font-family: "Minecraft", "Sora", system-ui, sans-serif;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 1px;
	padding: 10px 16px;
	border-radius: 999px;
}

.btn-side:hover {
	transform: translateY(-2px) scale(1.05);
}

.btn-ip {
	font-family: "Minecraft", "Sora", system-ui, sans-serif;
	font-size: 18px;
	font-weight: 400;
	letter-spacing: 1px;
	padding: 22px 34px;
	border-radius: 999px;
	background: var(--accent);
	border-color: var(--accent);
	color: var(--text);
	box-shadow: 0 0 40px -8px rgba(255, 119, 0, 0.85);
}

.btn-ip:hover {
	transform: translateY(-2px) scale(1.02);
	box-shadow: 0 0 55px -6px rgba(255, 119, 0, 1);
}

.btn-ip.copied {
	background: var(--green);
	border-color: var(--green);
	color: var(--text);
	box-shadow: 0 0 40px -8px rgba(46, 204, 113, 0.85);
}

.copy-icon {
	width: 16px;
	height: 16px;
	opacity: 0.8;
}

footer {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: 18px 0;
	font-family: "Minecraft", "Sora", system-ui, sans-serif;
	font-size: 11px;
	color: #6b5a4c;
	text-align: center;
}

footer p {
	margin: 4px 0;
}

footer a {
	color: #6b5a4c;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.15s ease;
}

footer a:hover {
	color: var(--accent);
}

@media (max-width: 560px) {
	.logo img { width: 130px; }
	.brand { font-size: 26px; letter-spacing: 4px; }

	.actions {
		flex-direction: column;
		gap: 12px;
	}

	.btn-side, .btn-ip {
		width: 240px;
	}

	.edge-arrow {
		width: 38px;
		height: 38px;
	}

	.edge-arrow-left { left: 8px; }
	.edge-arrow-right { right: 8px; }
}
