* {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
	background-color: #000000;
	color: #ffffff;
	font-family: "Comic Sans MS", "Comic Sans", cursive;
	min-height: 100%;
}

a {
	color: #ffffff;
	text-decoration: none;
}

a:hover,
a:focus {
	text-decoration: underline;
}

.topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem 2rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.7);
	position: sticky;
	top: 0;
	background-color: #000000;
	z-index: 100;
}

.brand {
	font-size: 1.5rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nav-links {
	display: flex;
	gap: 1.5rem;
	font-size: 1rem;
}

.nav-links a {
	padding-bottom: 0.25rem;
	border-bottom: 2px solid transparent;
	transition: border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus {
	border-color: rgba(255, 255, 255, 0.7);
}

.nav-links a.active {
	border-color: #ffffff;
}

.content {
	padding: 2.5rem 2rem 4rem;
	max-width: 1100px;
	margin: 0 auto;
	line-height: 1.7;
}

.hero {
	text-align: center;
	padding: 3rem 2rem;
	border: 1px solid rgba(255, 255, 255, 0.7);
	margin-bottom: 3rem;
}

.hero h1 {
	font-size: 2.5rem;
	margin-bottom: 0.5rem;
}

.hero p {
	margin: 0.5rem 0;
	color: rgba(255, 255, 255, 0.7);
}

.pillars {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 2rem;
}

.pillars article {
	border: 1px solid rgba(255, 255, 255, 0.7);
	padding: 1.5rem;
}

.call-to-action {
	margin-top: 3rem;
	text-align: center;
	padding: 2rem;
	border: 1px solid rgba(255, 255, 255, 0.7);
}

.store .catalog {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

.store .item {
	border: 1px solid rgba(255, 255, 255, 0.7);
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.ghost {
	background-color: transparent;
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.7);
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ghost:hover,
.ghost:focus {
	background-color: rgba(255, 255, 255, 0.12);
	color: #ffffff;
}

.chat-panel {
	border: 1px solid rgba(255, 255, 255, 0.7);
	padding: 2rem;
	margin-top: 2rem;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.username-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.username-form input,
.chat-input input {
	background-color: transparent;
	border: 1px solid rgba(255, 255, 255, 0.7);
	color: #ffffff;
	padding: 0.75rem 1rem;
	font-size: 1rem;
}

.username-form input:focus,
.chat-input input:focus {
	outline: none;
	border-color: #ffffff;
}

.chat-room {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.chat-log {
	min-height: 300px;
	max-height: 400px;
	overflow-y: auto;
	border: 1px solid rgba(255, 255, 255, 0.7);
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.message {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.message .meta {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.7);
}

.chat-input {
	display: flex;
	gap: 1rem;
}

.chat-input button {
	flex-shrink: 0;
}

.contact ul {
	list-style: none;
	padding: 0;
	margin: 2rem 0;
	border: 1px solid rgba(255, 255, 255, 0.7);
}

.contact ul li {
	padding: 1rem 1.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}

.contact ul li:last-child {
	border-bottom: none;
}

.contact .label {
	display: inline-block;
	width: 100px;
	color: rgba(255, 255, 255, 0.7);
}

.note {
	border: 1px solid rgba(255, 255, 255, 0.7);
	padding: 1.5rem;
}

.footer {
	text-align: center;
	padding: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.7);
	color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 720px) {
	.topbar {
		flex-direction: column;
		gap: 1rem;
		text-align: center;
	}

	.nav-links {
		flex-wrap: wrap;
		justify-content: center;
	}

	.chat-input {
		flex-direction: column;
		align-items: stretch;
	}

	.chat-input button {
		width: 100%;
	}
}
