@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Sora"; src: url("/assets/fonts/sora-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Sora"; src: url("/assets/fonts/sora-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrainsmono-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
	--bg: #0a0708;
	--bg-2: #120c0d;
	--card: rgba(255, 255, 255, 0.035);
	--card-hover: rgba(255, 255, 255, 0.06);
	--line: rgba(255, 255, 255, 0.08);
	--line-strong: rgba(255, 255, 255, 0.16);
	--text: #f6eeee;
	--text-2: #b6a6a6;
	--text-3: #7d6e6e;
	--red: #e5322d;
	--red-2: #ff5a3c;
	--gold: #ffb347;
	--radius: 18px;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--display: "Sora", "Inter", system-ui, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
	color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.6 var(--font);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
em { font-style: normal; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 8px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--red-2); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--text-3); font-size: 0.92rem; }

.glow {
	position: fixed; inset: 0; pointer-events: none; z-index: -1;
	background:
		radial-gradient(60vw 50vh at 78% 8%, rgba(229, 50, 45, 0.20), transparent 70%),
		radial-gradient(50vw 40vh at 10% 30%, rgba(255, 140, 60, 0.07), transparent 70%),
		var(--bg);
}

/* ---- buttons ---- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	padding: 12px 20px; border-radius: 12px;
	border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04);
	color: var(--text); font: 600 0.95rem/1 var(--font); text-decoration: none; cursor: pointer;
	transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-1px); }
.btn-primary {
	border-color: transparent;
	background: linear-gradient(135deg, var(--red-2), var(--red));
	box-shadow: 0 10px 30px -10px rgba(229, 50, 45, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary:hover { background: linear-gradient(135deg, #ff6b4f, #f03a34); box-shadow: 0 14px 36px -10px rgba(229, 50, 45, 0.85); }
.btn-lg { padding: 16px 26px; font-size: 1.02rem; border-radius: 14px; }
.btn-sm { padding: 9px 14px; font-size: 0.88rem; border-radius: 10px; }

/* ---- nav ---- */
.nav {
	position: sticky; top: 0; z-index: 50;
	padding-top: env(safe-area-inset-top, 0px);
	background: rgba(10, 7, 8, 0.72);
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.05rem var(--display); letter-spacing: 0.12em; }
.brand img { filter: drop-shadow(0 0 10px rgba(229, 50, 45, 0.5)); }
.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-links a { padding: 8px 14px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); background: var(--card); }
.nav-links a[aria-current] { color: var(--text); background: var(--card-hover); }

/* ---- hero ---- */
.hero { padding-block: clamp(48px, 9vw, 110px) clamp(40px, 7vw, 90px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.kicker {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong);
	background: rgba(255, 255, 255, 0.03); color: var(--text-2); font: 500 0.85rem var(--mono);
}
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 10px #3ddc84; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); font-weight: 700; margin: 22px 0 20px; letter-spacing: -0.035em; }
.hero h1 em {
	background: linear-gradient(100deg, var(--gold), var(--red-2) 45%, var(--red));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--text-2); font-size: clamp(1.02rem, 1.6vw, 1.18rem); max-width: 560px; }
.center .lead { margin-inline: auto; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta.center { justify-content: center; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 26px 0 0; color: var(--text-3); font: 500 0.84rem var(--mono); }
.meta li::before { content: "◆ "; color: var(--red); font-size: 0.7em; vertical-align: 1px; }

.hero-art { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.crystal { position: absolute; inset: 8%; display: grid; place-items: center; }
.crystal img {
	position: relative; width: 78%; height: auto;
	filter: drop-shadow(0 0 40px rgba(229, 50, 45, 0.55)) drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
	animation: bob 6s ease-in-out infinite;
}
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 90, 60, 0.25); }
.r1 { inset: 0; animation: spin 40s linear infinite; border-style: dashed; }
.r2 { inset: 12%; border-color: rgba(255, 179, 71, 0.18); animation: spin 28s linear infinite reverse; }
.r3 { inset: 24%; background: radial-gradient(circle, rgba(229, 50, 45, 0.28), transparent 70%); border: 0; }
.float-card {
	position: absolute; display: flex; align-items: center; gap: 10px;
	padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line-strong);
	background: rgba(18, 12, 13, 0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.8); font-size: 0.82rem; color: var(--text-2);
	animation: bob 7s ease-in-out infinite;
}
.float-card b { color: var(--text); font-family: var(--display); }
.fc-coins { top: 10%; left: -4%; }
.fc-coins b { color: var(--gold); }
.fc-friend { bottom: 16%; left: -8%; animation-delay: -2s; }
.fc-friend i { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #3ddc84, #1d8f55); }
.fc-friend span { display: grid; line-height: 1.3; }
.fc-fps { top: 30%; right: -6%; animation-delay: -4s; flex-direction: column; align-items: flex-start; gap: 0; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- sections ---- */
.section { padding-block: clamp(56px, 8vw, 100px); }
.page-top { padding-top: clamp(48px, 7vw, 90px); }
.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-top: 12px; }
.eyebrow { display: inline-block; color: var(--red-2); font: 500 0.82rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.page-title { font-size: clamp(2.4rem, 6vw, 4rem); margin: 12px 0 14px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
	padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card);
	transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.card:hover { border-color: rgba(255, 90, 60, 0.35); background: var(--card-hover); transform: translateY(-3px); }
.card h3 { font-size: 1.15rem; margin: 18px 0 8px; }
.card p { color: var(--text-2); font-size: 0.95rem; }
.icon {
	display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
	background: linear-gradient(135deg, rgba(255, 90, 60, 0.22), rgba(229, 50, 45, 0.06)); border: 1px solid rgba(255, 90, 60, 0.3);
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--red-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.band {
	display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
	padding: clamp(28px, 5vw, 52px); border-radius: 26px; border: 1px solid rgba(255, 90, 60, 0.25);
	background: radial-gradient(120% 140% at 0% 0%, rgba(229, 50, 45, 0.18), transparent 60%), var(--bg-2);
}
.band h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 12px 0 10px; }
.band p { color: var(--text-2); }

.lookup { display: flex; gap: 10px; width: 100%; }
.lookup input {
	flex: 1; min-width: 0; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong);
	background: rgba(0, 0, 0, 0.35); color: var(--text); font: 500 1rem var(--font);
}
.lookup input:focus { outline: none; border-color: var(--red-2); box-shadow: 0 0 0 3px rgba(255, 90, 60, 0.2); }
.lookup-big { max-width: 560px; margin: 34px auto 0; }
.lookup-big input { padding: 17px 18px; font-size: 1.08rem; }

.result { max-width: 560px; margin: 22px auto 30px; }
.player {
	display: flex; align-items: center; gap: 18px; text-align: left;
	padding: 22px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--card);
	animation: pop 0.35s ease;
}
.avatar {
	flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 14px;
	background: linear-gradient(135deg, var(--red-2), #7a1512); font: 700 1.6rem var(--display); color: #fff;
	image-rendering: pixelated;
}
.player-info { flex: 1; min-width: 0; }
.player-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 700 1.25rem var(--display); }
.player-sub { color: var(--text-3); font-size: 0.88rem; margin-top: 4px; }
.player-coins { text-align: right; }
.player-coins b { display: block; font: 700 1.9rem var(--display); color: var(--gold); line-height: 1; }
.player-coins span { color: var(--text-3); font-size: 0.82rem; }
.rank { padding: 3px 9px; border-radius: 999px; font: 600 0.72rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.rank-owner { background: rgba(255, 90, 60, 0.18); color: var(--red-2); border: 1px solid rgba(255, 90, 60, 0.4); }
.rank-vip { background: rgba(255, 179, 71, 0.15); color: var(--gold); border: 1px solid rgba(255, 179, 71, 0.4); }
.rank-plus { background: rgba(140, 120, 255, 0.15); color: #b9a8ff; border: 1px solid rgba(140, 120, 255, 0.4); }
.result-msg { padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text-2); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); text-align: left; }
.steps b {
	display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
	background: rgba(255, 90, 60, 0.15); color: var(--red-2); font: 700 1rem var(--display); border: 1px solid rgba(255, 90, 60, 0.35);
}
.steps h3 { margin: 16px 0 6px; font-size: 1.1rem; }
.steps p { color: var(--text-2); font-size: 0.94rem; }
.steps-small { margin-top: 26px; }

.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red-2); font-size: 1.3rem; line-height: 1; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--text-2); padding-bottom: 18px; }

.dl-card {
	display: flex; align-items: center; gap: 20px; text-align: left; margin-top: 36px;
	padding: 24px; border-radius: 22px; border: 1px solid rgba(255, 90, 60, 0.3);
	background: radial-gradient(120% 160% at 0% 0%, rgba(229, 50, 45, 0.16), transparent 60%), var(--bg-2);
}
.dl-os { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); color: #6cb8ff; }
.dl-text { flex: 1; min-width: 0; }
.dl-text h2 { font-size: 1.3rem; }
.dl-text p { color: var(--text-2); font-size: 0.92rem; margin-top: 4px; }
.note { margin: 26px 0 14px; padding: 18px 20px; border-radius: 14px; border: 1px solid rgba(255, 179, 71, 0.3); background: rgba(255, 179, 71, 0.06); text-align: left; }
.note b { color: var(--gold); }
.note p { color: var(--text-2); font-size: 0.94rem; margin-top: 4px; }

.invite-card { display: grid; gap: 16px; justify-items: center; margin-top: 34px; padding: 34px 26px; border-radius: 22px; border: 1px solid var(--line-strong); background: var(--card); }
.invite-code { font: 500 clamp(2rem, 7vw, 2.8rem) var(--mono); letter-spacing: 0.14em; color: var(--gold); }
.big-404 { display: block; font: 700 clamp(5rem, 18vw, 9rem) var(--display); line-height: 1; background: linear-gradient(100deg, var(--gold), var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.legal h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 10px; }
.legal h2 { font-size: 1.25rem; margin: 34px 0 10px; }
.legal h3 { font-size: 1.02rem; margin: 20px 0 6px; }
.legal p, .legal li, .legal address { color: var(--text-2); font-style: normal; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal { padding-bottom: 80px; }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--line); margin-top: 40px; padding-block: 44px calc(28px + env(safe-area-inset-bottom, 0px)); background: rgba(0, 0, 0, 0.25); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand { max-width: 420px; }
.footer-brand p { color: var(--text-3); font-size: 0.88rem; margin-top: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: flex-start; }
.footer-links a { color: var(--text-2); text-decoration: none; font-size: 0.94rem; }
.footer-links a:hover { color: var(--text); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 0.82rem; }

/* ---- reveal on scroll ---- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-art { max-width: 380px; order: -1; }
	.cards, .steps { grid-template-columns: 1fr 1fr; }
	.band { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.wrap { padding-inline: 18px; }
	.nav-inner { gap: 12px; }
	.nav-links { gap: 0; }
	.nav-links a { padding: 8px 9px; font-size: 0.9rem; }
	.nav-links a:first-child { display: none; }
	.nav .btn span { display: none; }
	.brand span { display: none; }
	.cards, .steps { grid-template-columns: 1fr; }
	.hero-art { max-width: 300px; }
	.fc-friend { left: 0; }
	.fc-coins { left: 0; }
	.fc-fps { right: 0; }
	.lookup { flex-direction: column; }
	.dl-card { flex-direction: column; text-align: center; }
	.player { flex-wrap: wrap; }
	.player-coins { text-align: left; width: 100%; }
	.cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* ---- maintenance (release.downloadsOpen false) ---- */
.btn-off { cursor: not-allowed; color: var(--text-2); border-style: dashed; background: rgba(255, 179, 71, 0.05); border-color: rgba(255, 179, 71, 0.35); }
.btn-off:hover { transform: none; background: rgba(255, 179, 71, 0.05); }
.btn-off svg { color: var(--gold); }
.kicker-wait i { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.dl-paused { border-color: rgba(255, 179, 71, 0.35); background: radial-gradient(120% 160% at 0% 0%, rgba(255, 179, 71, 0.12), transparent 60%), var(--bg-2); }
.dl-paused .dl-os { color: var(--gold); }
.dl-paused + .muted { margin-top: 18px; }
.muted a { color: var(--text-2); }
