/* custom fonts */
@font-face {
	font-family: "Pixel Game";
	src: url("../fonts/Pixel Game.otf") format("opentype");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Game Paused";
	src: url("../fonts/Game Paused.otf") format("opentype");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

/* main variables */
:root {
	--bg:        #07070f;
	--bg-2:      #0c0c1a;
	--panel:     rgba(18, 19, 38, 0.72);
	--panel-solid:#11122a;
	--line:      rgba(58, 107, 255, 0.28);

	--blue:      #3a6bff;   /* logo blue        */
	--cyan:      #19e8ff;   /* neon accent      */
	--magenta:   #ff2d7e;   /* hot pink accent  */
	--silver:    #b8c0d6;   /* logo silver      */

	--text:      #dfe4f7;
	--muted:     #8a92b2;

	--font-display: "Pixel Game", "Courier New", monospace;
	--font-arcade:  "Game Paused", "Pixel Game", monospace;
	--font-body:    "Source Sans Pro", "Segoe UI", system-ui, sans-serif;

	--glow-blue:  0 0 6px rgba(58,107,255,.8), 0 0 18px rgba(58,107,255,.5);
	--glow-cyan:  0 0 6px rgba(25,232,255,.8), 0 0 18px rgba(25,232,255,.45);
	--glow-pink:  0 0 6px rgba(255,45,126,.8), 0 0 18px rgba(255,45,126,.45);

	--maxw: 1140px;
}

/* reset box base */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background:
		radial-gradient(1200px 700px at 50% -10%, rgba(58,107,255,.16), transparent 60%),
		radial-gradient(900px 600px at 90% 10%, rgba(255,45,126,.10), transparent 60%),
		var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.7;
	letter-spacing: .2px;
	overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--cyan); text-decoration: none; transition: color .2s ease, text-shadow .2s ease; }
a:hover { color: #fff; text-shadow: var(--glow-cyan); }

h1, h2, h3 { font-family: var(--font-display); font-weight: normal; line-height: 1.15; }

p { margin: 0 0 1.1em; color: #c6cbe2; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* crt scanline overlay */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 9999;
	background: repeating-linear-gradient(
		to bottom,
		rgba(0,0,0,0) 0,
		rgba(0,0,0,0) 2px,
		rgba(0,0,0,.16) 3px,
		rgba(0,0,0,0) 4px
	);
	mix-blend-mode: multiply;
	opacity: .55;
}
/* vignette */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 9998;
	background: radial-gradient(120% 120% at 50% 50%, transparent 60%, rgba(0,0,0,.55) 100%);
}
body.no-crt::before { display: none; }

/****************
 * Header / Nav *
 ****************/
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(7,7,15,.78);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 68px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-display);
	font-size: 20px;
	color: #fff;
	letter-spacing: 1px;
}
.brand:hover { color: #fff; text-shadow: var(--glow-blue); }
.brand img { width: 40px; height: 40px; filter: drop-shadow(0 0 6px rgba(58,107,255,.7)); }

.nav-links {
	list-style: none;
	display: flex;
	gap: 26px;
	margin: 0;
	padding: 0;
	align-items: center;
}
.nav-links a {
	font-family: var(--font-arcade);
	font-size: 15px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--silver);
	padding: 6px 2px;
	position: relative;
}
.nav-links a::after {
	content: "";
	position: absolute;
	left: 0; bottom: -2px;
	width: 0; height: 2px;
	background: var(--cyan);
	box-shadow: var(--glow-cyan);
	transition: width .25s ease;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
	font-family: var(--font-arcade) !important;
	border: 1px solid var(--blue);
	border-radius: 4px;
	padding: 8px 16px !important;
	color: #fff !important;
	box-shadow: var(--glow-blue);
	background: rgba(58,107,255,.12);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: rgba(58,107,255,.28); }

.nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--line);
	border-radius: 4px;
	width: 44px; height: 40px;
	cursor: pointer;
	padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
	content: "";
	display: block;
	width: 22px; height: 2px;
	margin: 0 auto;
	background: var(--cyan);
	box-shadow: var(--glow-cyan);
	position: relative;
	transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after  { position: absolute; top: 7px; }
.nav-toggle.open span { background: transparent; box-shadow: none; }
.nav-toggle.open span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span::after  { transform: translateY(-7px) rotate(-45deg); }

/********
 * Hero *
 ********/
.hero {
	position: relative;
	overflow: hidden;
	text-align: center;
	padding: 90px 0 120px;
	border-bottom: 1px solid var(--line);
}
/* synthwave grid floor flowing */
.hero .grid-floor {
	position: absolute;
	left: 50%;
	bottom: -2px;
	width: 200%;
	height: 45%;
	transform: translateX(-50%) perspective(420px) rotateX(68deg);
	transform-origin: bottom center;
	background-image:
		linear-gradient(to right, rgba(58,107,255,.35) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(58,107,255,.35) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: linear-gradient(to top, #000 10%, transparent 85%);
	-webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
	animation: grid-scroll 5s linear infinite;
	pointer-events: none;
}
@keyframes grid-scroll {
	from { background-position: 0 0; }
	to   { background-position: 0 56px; }
}

.hero-inner { position: relative; z-index: 2; }

.hero-logo {
	width: 220px;
	height: 220px;
	margin: 0 auto 26px;
	filter: drop-shadow(0 0 18px rgba(58,107,255,.55));
	animation: float 6s ease-in-out infinite;
}
@keyframes float {
	0%,100% { transform: translateY(0); }
	50%     { transform: translateY(-14px); }
}

.hero h1 {
	font-size: clamp(38px, 8vw, 86px);
	margin: 0 0 18px;
	color: #fff;
	letter-spacing: 2px;
	text-shadow:
		0 0 8px rgba(58,107,255,.9),
		0 0 26px rgba(58,107,255,.55),
		3px 3px 0 rgba(255,45,126,.5);
}
.hero h1 .accent { color: var(--cyan); text-shadow: var(--glow-cyan); }

.hero .tagline {
	font-family: var(--font-arcade);
	font-size: clamp(13px, 2.4vw, 18px);
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--silver);
	margin-bottom: 14px;
}
.hero .blurb {
	max-width: 620px;
	margin: 0 auto 36px;
	color: #c6cbe2;
}

.insert-coin {
	font-family: var(--font-arcade);
	font-size: 14px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--magenta);
	text-shadow: var(--glow-pink);
	margin-top: 30px;
	animation: blink 1.2s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/***********
 * Buttons *
 ***********/
.btn-arcade {
	display: inline-block;
	font-family: var(--font-arcade);
	font-size: 16px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #fff;
	padding: 14px 30px;
	border: 2px solid var(--cyan);
	border-radius: 6px;
	background: rgba(25,232,255,.08);
	box-shadow: var(--glow-cyan), inset 0 0 12px rgba(25,232,255,.15);
	cursor: pointer;
	transition: transform .12s ease, background .2s ease, box-shadow .2s ease;
}
.btn-arcade:hover {
	color: #fff;
	background: rgba(25,232,255,.2);
	transform: translateY(-2px);
	text-shadow: none;
	box-shadow: 0 0 10px rgba(25,232,255,.9), 0 0 28px rgba(25,232,255,.6), inset 0 0 16px rgba(25,232,255,.25);
}
.btn-arcade:active { transform: translateY(0); }

.btn-blue {
	border-color: var(--blue);
	background: rgba(58,107,255,.1);
	box-shadow: var(--glow-blue), inset 0 0 12px rgba(58,107,255,.15);
}
.btn-blue:hover {
	background: rgba(58,107,255,.24);
	box-shadow: 0 0 10px rgba(58,107,255,.9), 0 0 28px rgba(58,107,255,.6), inset 0 0 16px rgba(58,107,255,.25);
}
.btn-discord { border-color: #5865F2; background: rgba(88,101,242,.14);
	box-shadow: 0 0 6px rgba(88,101,242,.8), 0 0 18px rgba(88,101,242,.5), inset 0 0 12px rgba(88,101,242,.15); }
.btn-discord:hover { background: rgba(88,101,242,.3);
	box-shadow: 0 0 10px rgba(88,101,242,.95), 0 0 30px rgba(88,101,242,.6), inset 0 0 16px rgba(88,101,242,.25); }

/************
 * Sections *
 ************/
.section { padding: 84px 0; position: relative; }
.section-alt {
	background:
		linear-gradient(180deg, rgba(12,12,26,.0), rgba(12,12,26,.7), rgba(12,12,26,0)),
		var(--bg-2);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.section-heading { text-align: center; margin-bottom: 54px; }
.section-heading .eyebrow {
	font-family: var(--font-arcade);
	font-size: 13px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--magenta);
	text-shadow: var(--glow-pink);
	display: block;
	margin-bottom: 14px;
}
.section-heading h2 {
	font-size: clamp(26px, 5vw, 44px);
	color: #fff;
	margin: 0;
	text-shadow: 0 0 10px rgba(58,107,255,.6), 2px 2px 0 rgba(255,45,126,.4);
}
.section-heading .lead {
	max-width: 720px;
	margin: 18px auto 0;
	color: var(--muted);
}

/* ----- About grid ----- */
.about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: stretch;
}
.about-copy h3 {
	font-size: 22px;
	color: var(--cyan);
	text-shadow: var(--glow-cyan);
	margin: 0 0 16px;
}

/* Discord embed shell */
.discord-frame {
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 10px;
	background: var(--panel);
	box-shadow: var(--glow-blue);
	height: 100%;
	display: flex;
	flex-direction: column;
}
.discord-frame .frame-label {
	font-family: var(--font-arcade);
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--silver);
	padding: 4px 6px 10px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.discord-frame .dot {
	width: 9px; height: 9px; border-radius: 50%;
	background: #43b581; box-shadow: 0 0 8px #43b581;
}
.discord-frame iframe {
	width: 100%;
	flex: 1;
	min-height: 480px;
	border: 0;
	border-radius: 6px;
	display: block;
}

/* ----- staff cards ----- */
.team-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
	max-width: 860px;
	margin: 0 auto;
}
.person {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 32px 26px;
	text-align: center;
	position: relative;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.person:hover {
	transform: translateY(-6px);
	border-color: var(--blue);
	box-shadow: var(--glow-blue);
}
.person .avatar {
	width: 130px; height: 130px;
	margin: 0 auto 18px;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid var(--blue);
	box-shadow: var(--glow-blue);
}
.person .avatar img { width: 100%; height: 100%; object-fit: cover; }
.person .name {
	font-family: var(--font-display);
	font-size: 22px;
	color: #fff;
	margin: 0 0 4px;
	text-shadow: var(--glow-blue);
}
.person .position {
	font-family: var(--font-arcade);
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--magenta);
	text-shadow: var(--glow-pink);
	margin-bottom: 14px;
}
.person p { font-size: 15.5px; color: var(--muted); }

.social {
	list-style: none;
	padding: 0;
	margin: 18px 0 0;
	display: flex;
	justify-content: center;
	gap: 12px;
}
.social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px; height: 40px;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--silver);
	font-size: 18px;
	transition: transform .18s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.social a:hover {
	color: #fff;
	border-color: var(--cyan);
	box-shadow: var(--glow-cyan);
	transform: translateY(-3px);
	text-shadow: none;
}

/**********
 * Footer *
 **********/
.site-footer {
	border-top: 1px solid var(--line);
	background: var(--bg);
	padding: 40px 0;
	text-align: center;
}
.site-footer .foot-logo {
	width: 56px; height: 56px;
	margin: 0 auto 16px;
	filter: drop-shadow(0 0 8px rgba(58,107,255,.6));
}
.site-footer .copyright {
	font-family: var(--font-arcade);
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0;
}
.site-footer .crt-toggle {
	margin-top: 18px;
	background: none;
	border: 1px solid var(--line);
	color: var(--muted);
	font-family: var(--font-arcade);
	font-size: 11px;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: 4px;
	cursor: pointer;
	transition: color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.site-footer .crt-toggle:hover {
	color: var(--cyan);
	border-color: var(--cyan);
	box-shadow: var(--glow-cyan);
}

/*****************
 * Scroll reveal *
 *****************/
.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }

/***********************
 * Responsive Elements *
 ***********************/
@media (max-width: 860px) {
	.about-grid { grid-template-columns: 1fr; }
	.discord-frame { order: -1; }
}
@media (max-width: 720px) {
	.nav-toggle { display: block; }
	.nav-links {
		position: absolute;
		top: 68px; left: 0; right: 0;
		flex-direction: column;
		gap: 0;
		background: rgba(7,7,15,.97);
		border-bottom: 1px solid var(--line);
		max-height: 0;
		overflow: hidden;
		transition: max-height .3s ease;
	}
	.nav-links.open { max-height: 360px; }
	.nav-links li { width: 100%; text-align: center; }
	.nav-links a { display: block; padding: 16px; width: 100%; }
	.nav-links a::after { display: none; }
	.nav-cta { margin: 12px auto; display: inline-block; }
	.team-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; }
}