:root {
	--gruber-bg: #181818;
	--gruber-bg-1: #282828;
	--gruber-bg-2: #453d41;
	--gruber-bg-3: #484848;
	--gruber-bg-4: #52494e;
	--gruber-fg: #e4e4ef;
	--gruber-fg-1: #f4f4ff;
	--gruber-white: #ffffff;
	--gruber-black: #000000;
	--gruber-red: #f43841;
	--gruber-red-1: #ff4f58;
	--gruber-green: #73c936;
	--gruber-yellow: #ffdd33;
	--gruber-brown: #cc8c3c;
	--gruber-quartz: #95a99f;
  --gruber-niagara: #ffdd33;
	--gruber-niagara-1: #303540;
	--gruber-wisteria: #9e95c7;
	--screen-glow: #96a6c8;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

@font-face {
	font-family: 'C64';
	src: local('Courier New'), local('Courier'), monospace;
}

body {
	font-family: 'C64', 'Courier New', monospace;
	background: var(--gruber-bg);
	color: var(--gruber-fg);
	overflow-x: hidden;
	line-height: 1.4;
	font-size: 16px;
}

a {
	color: var(--gruber-yellow);
}

a:hover {
	color: var(--gruber-yellow);
}

a:visited {
	color: var(--gruber-brown);
}

a:active {
	color: var(--gruber-red);
}

.container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px;
	position: relative;
	z-index: 1;
}

.crt-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.3) 100%);
	pointer-events: none;
	z-index: 999;
}

.scanlines {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(
		0deg,
		rgba(0, 0, 0, 0.15) 0px,
		rgba(0, 0, 0, 0.15) 1px,
		transparent 1px,
		transparent 2px
	);
	pointer-events: none;
	z-index: 998;
	animation: flicker 0.15s infinite;
}

@keyframes flicker {
	0% { opacity: 0.95; }
	50% { opacity: 1; }
	100% { opacity: 0.95; }
}

.c64-header {
	background: var(--gruber-bg-1);
	border: 4px solid var(--gruber-niagara);
	padding: 20px;
	margin-bottom: 20px;
	box-shadow:
		0 0 20px rgba(150, 166, 200, 0.3),
		inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.header-content {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	margin-bottom: 15px;
}

.left {
	display: flex;
	flex-direction: row;
	gap: 20px;
}

.logo-sprite {
	width: 64px;
	height: 64px;
	background: var(--gruber-bg-2);
	border: 3px solid var(--gruber-niagara);
	flex-shrink: 0;
	position: relative;
	box-shadow: 0 0 10px var(--screen-glow);
}

.logo-sprite::before {
	content: '◆';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 40px;
	color: var(--gruber-yellow);
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
	50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.1); }
}

.header-text h1 {
	font-size: 24px;
	letter-spacing: 2px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
	margin-bottom: 5px;
	color: var(--gruber-fg-1);
}

.system-info {
	font-size: 14px;
	color: var(--gruber-quartz);
}

.status-bar {
	background: var(--gruber-niagara-1);
	padding: 10px;
	border: 2px solid var(--gruber-niagara);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.status-item {
	font-size: 14px;
	color: var(--gruber-fg);
}

/* Glitch Effect */
.glitch {
	position: relative;
}

.glitch::before,
.glitch::after {
	content: attr(data-text);
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0.8;
}

.glitch::before {
	animation: glitch-1 2.5s infinite;
	color: var(--gruber-red);
	z-index: -1;
}

.glitch::after {
	animation: glitch-2 2.5s infinite;
	color: var(--gruber-niagara);
	z-index: -2;
}

@keyframes glitch-1 {
	0%, 100% { transform: translate(0); }
	20% { transform: translate(-2px, 2px); }
	40% { transform: translate(-2px, -2px); }
	60% { transform: translate(2px, 2px); }
	80% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
	0%, 100% { transform: translate(0); }
	20% { transform: translate(2px, -2px); }
	40% { transform: translate(2px, 2px); }
	60% { transform: translate(-2px, -2px); }
	80% { transform: translate(-2px, 2px); }
}

/* Blink Animation */
.blink {
	animation: blink 1s step-end infinite;
}

@keyframes blink {
	0%, 50% { opacity: 1; }
	51%, 100% { opacity: 0; }
}

/* Footer */
.c64-footer {
	background: var(--gruber-bg-1);
	border: 4px solid var(--gruber-niagara);
	padding: 15px;
	margin-top: 20px;
	text-align: center;
	box-shadow: 0 0 20px rgba(150, 166, 200, 0.3);
}

.footer-content p {
	margin: 5px 0;
	font-size: 14px;
	color: var(--gruber-quartz);
}

/* Responsive Design */
@media (max-width: 768px) {
	.container {
		padding: 10px;
	}

	.header-content {
		flex-direction: column;
		text-align: center;
	}

	.header-text h1 {
		font-size: 18px;
	}

	.logo-sprite {
		width: 48px;
		height: 48px;
	}

	.logo-sprite::before {
		font-size: 30px;
	}
}

@media (max-width: 480px) {
	body {
		font-size: 14px;
	}

	.header-text h1 {
		font-size: 16px;
		letter-spacing: 1px;
	}

	.system-info {
		font-size: 12px;
	}
}
