/* Shared by every page: tokens, nav, footer, falling-blocks background, buttons, cards, reveal. */
@font-face { font-family: "Pixelify"; src: url(/assets/PixelifySans-Variable.ttf) format("truetype"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Press"; src: url(/assets/PressStart2P-Regular.ttf) format("truetype"); font-display: swap; }
:root {
	--bg: #0b0816; --panel: #141022; --panel2: #1b1530; --line: #2e2846; --text: #ece9f7; --muted: #a39cbd;
	--red: #ff3b3b; --gold: #ffd700; --green: #4ade80; --blue: #1fa4e0; --violet: #8b5cf6; --pink: #f472b6; --orange: #ff8a3d;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; }
body { font-family: "Pixelify", system-ui, sans-serif; color: var(--text); font-size: 18px; line-height: 1.5; background: var(--bg); font-variant-ligatures: none; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.sym { font-family: system-ui, sans-serif; }
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.glow { position: fixed; inset: 0; z-index: 0; pointer-events: none;
	background: radial-gradient(circle at 12% 8%, rgba(139, 92, 246, .30), transparent 42%), radial-gradient(circle at 95% 90%, rgba(255, 59, 59, .20), transparent 42%); }
main, footer { position: relative; z-index: 1; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* nav: above everything else on the page */
nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); background: rgba(11, 8, 22, .78); border-bottom: 2px solid rgba(46, 40, 70, .7); }
nav .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Press"; font-size: 15px; letter-spacing: 1px; flex: none; }
.brand img { width: 36px; height: 36px; }
.navlinks { display: flex; gap: 6px; margin-left: auto; font-size: 16px; }
.navlinks a { color: var(--muted); padding: 6px 12px; border-radius: 8px; transition: color .15s, background .15s; white-space: nowrap; }
.navlinks a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.navlinks a.on { color: #fff; background: rgba(255, 59, 59, .18); box-shadow: inset 0 -3px 0 var(--red); }
.lang { display: flex; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; flex: none; }
.lang button { font: inherit; font-size: 14px; color: var(--muted); background: none; border: 0; padding: 4px 10px; cursor: pointer; }
.lang button.on { background: var(--red); color: #fff; }

/* buttons */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 700; font-size: 17px; padding: 13px 18px; border-radius: 10px; border: 2px solid var(--line); background: var(--panel2); color: var(--text); cursor: pointer; transition: transform .12s, box-shadow .12s, border-color .12s; box-shadow: 0 4px 0 #07050e; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 7px 0 #07050e; border-color: #4a4268; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #07050e; }
.btn.main { background: var(--red); border-color: #ff6b6b; color: #fff; box-shadow: 0 5px 0 #8f1717; }
.btn.main:hover { box-shadow: 0 8px 0 #8f1717; }
.btn.main::after { content: ""; position: absolute; inset: 0; border-radius: 8px; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); background-size: 250% 100%; animation: shine 3.2s infinite; pointer-events: none; }
@keyframes shine { 0%, 60% { background-position: 150% 0; } 100% { background-position: -50% 0; } }
.btn small { font-weight: 400; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.mi { width: 20px; height: 20px; flex: none; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }

/* headings and cards */
section { padding: 56px 0 8px; }
.h2 { display: flex; align-items: center; gap: 12px; font-family: "Press"; font-size: clamp(16px, 2.6vw, 22px); letter-spacing: 1px; margin-bottom: 22px; line-height: 1.4; }
.h2::before { content: ""; flex: none; width: 14px; height: 14px; background: var(--red); box-shadow: 18px 0 0 var(--gold), 36px 0 0 var(--green); margin-right: 40px; }
.sub { color: var(--muted); margin: -10px 0 22px; max-width: 46em; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cards > * { min-width: 0; }
.card { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 2px solid var(--line); border-radius: 16px; padding: 16px; transition: transform .15s, border-color .15s, background .15s; font: inherit; color: inherit; text-align: left; width: 100%; cursor: pointer; }
.card:hover { transform: translateY(-4px); border-color: var(--c); background: var(--panel2); }
.card .ic { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--c); color: #fff; box-shadow: 0 4px 0 rgba(0,0,0,.45); }
.card .ic .mi { width: 26px; height: 26px; }
.card > div { min-width: 0; }
.card b { display: block; font-size: 18px; }
.card span { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }

/* page title block used by the inner pages */
.pagehead { padding: 56px 0 8px; }
.pagehead .eyebrow { font-size: 15px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); }
.pagehead h1 { font-family: "Press"; font-size: clamp(24px, 5vw, 44px); line-height: 1.3; margin-top: 14px; text-shadow: 4px 4px 0 #e11d48; }
.pagehead p { color: var(--muted); font-size: 20px; margin-top: 16px; max-width: 38em; }

footer { margin-top: 72px; border-top: 2px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; padding: 24px 20px 40px; color: var(--muted); font-size: 15px; }
footer .fl { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-left: auto; }
footer a:hover { color: var(--text); }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--green); color: #0b2b16; font-weight: 700; padding: 10px 16px; border-radius: 10px; opacity: 0; transition: .2s; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.rv { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 760px) {
	nav .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 8px; row-gap: 6px; }
	.navlinks { order: 3; width: 100%; margin-left: 0; overflow-x: auto; scrollbar-width: none; }
	.navlinks::-webkit-scrollbar { display: none; }
	.navlinks { gap: 2px; }
	.navlinks a { padding: 5px 8px; font-size: 14px; }
	.lang { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.rv { opacity: 1; transform: none; }
}
