@font-face {
	font-family: "Rubik";
	src: url("/assets/rubik-cyrillic.woff2") format("woff2");
	font-weight: 300 900;
	font-display: swap;
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Rubik";
	src: url("/assets/rubik-latin.woff2") format("woff2");
	font-weight: 300 900;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--bg: #0e0605;
	--panel: rgba(30, 15, 12, 0.72);
	--panel-edge: rgba(255, 122, 26, 0.16);
	--text: #fff3ea;
	--muted: #b98a76;
	--orange: #ff6a1f;
	--orange-hi: #ffa43c;
	--orange-lo: #c21a00;
	--violet: #8a3ffc;
	--green: #5ec64d;
	color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
	min-height: 100vh;
	min-height: 100dvh;
	background:
		radial-gradient(60rem 40rem at 50% -10%, rgba(138, 63, 252, 0.22), transparent 60%),
		radial-gradient(50rem 36rem at 50% 115%, rgba(255, 106, 31, 0.18), transparent 60%),
		var(--bg);
	color: var(--text);
	font: 400 16px/1.5 "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 40px 16px 28px;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
	background-size: 32px 32px;
	mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

main {
	position: relative;
	width: 100%;
	max-width: 520px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin-bottom: 6px;
	text-decoration: none;
	color: inherit;
}

.brand img {
	width: 112px;
	height: 112px;
	image-rendering: pixelated;
	filter: drop-shadow(0 10px 28px rgba(255, 106, 31, 0.35));
	animation: bob 4s ease-in-out infinite;
}

@keyframes bob {
	50% { transform: translateY(-6px); }
}

.wordmark {
	font-weight: 800;
	font-size: 34px;
	letter-spacing: 0.06em;
	line-height: 1;
	background: linear-gradient(180deg, var(--orange-hi), var(--orange) 55%, var(--orange-lo));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.card {
	background: var(--panel);
	border: 1px solid var(--panel-edge);
	border-radius: 20px;
	padding: 24px;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

h1, h2 {
	margin: 0;
	font-weight: 700;
	line-height: 1.2;
}

h1 { font-size: 26px; }
h2 { font-size: 15px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

.lead {
	margin: 8px 0 20px;
	color: var(--muted);
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.tags li {
	font-size: 13px;
	font-weight: 500;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(255, 164, 60, 0.1);
	color: var(--orange-hi);
}

.btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 56px;
	padding: 0 20px;
	border: 0;
	border-radius: 14px;
	font: inherit;
	font-size: 18px;
	font-weight: 700;
	text-decoration: none;
	color: #fff;
	cursor: pointer;
	background: linear-gradient(180deg, var(--orange-hi), var(--orange));
	box-shadow: 0 4px 0 var(--orange-lo), 0 12px 30px rgba(255, 106, 31, 0.35);
	transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--orange-lo), 0 6px 18px rgba(255, 106, 31, 0.3); }
.btn svg { width: 22px; height: 22px; flex: none; }

.btn-ghost {
	min-height: 48px;
	margin-top: 10px;
	font-size: 15px;
	font-weight: 500;
	color: var(--muted);
	background: transparent;
	box-shadow: inset 0 0 0 1px rgba(255, 164, 60, 0.22);
}

.btn-ghost:hover { color: var(--text); filter: none; box-shadow: inset 0 0 0 1px rgba(255, 164, 60, 0.45); }
.btn-ghost:active { transform: translateY(1px); box-shadow: inset 0 0 0 1px rgba(255, 164, 60, 0.45); }

.hint {
	margin: 14px 0 0;
	font-size: 13px;
	color: var(--muted);
	text-align: center;
}

.ip {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
	padding: 6px 6px 6px 16px;
	border-radius: 14px;
	background: rgba(0, 0, 0, 0.35);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.ip code {
	flex: 1;
	font: 700 18px/1 "Rubik", system-ui, sans-serif;
	letter-spacing: 0.02em;
	overflow-wrap: anywhere;
}

.copy {
	flex: none;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	color: #fff;
	background: var(--violet);
	cursor: pointer;
	transition: background 0.15s ease, transform 0.08s ease;
	-webkit-tap-highlight-color: transparent;
}

.copy:active { transform: scale(0.94); }
.copy svg { grid-area: 1 / 1; width: 22px; height: 22px; transition: opacity 0.15s ease, transform 0.15s ease; }
.copy .i-done { opacity: 0; transform: scale(0.6); }
.copy.done { background: var(--green); }
.copy.done .i-copy { opacity: 0; transform: scale(0.6); }
.copy.done .i-done { opacity: 1; transform: none; }

.links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 14px;
}

.links a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	border-radius: 12px;
	font-weight: 500;
	color: var(--text);
	text-decoration: none;
	background: rgba(255, 255, 255, 0.05);
	transition: background 0.15s ease;
}

.links a:hover { background: rgba(255, 255, 255, 0.09); }
.links svg { width: 18px; height: 18px; }

footer {
	margin-top: auto;
	padding-top: 28px;
	font-size: 13px;
	color: rgba(185, 138, 118, 0.6);
}

.center { text-align: center; }

@media (max-width: 380px) {
	.card { padding: 20px; }
	h1 { font-size: 23px; }
	.links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.brand img { animation: none; }
}
