:root {
	--chrome-light: #e8e8e8;
	--chrome-mid: #c0c0c0;
	--chrome-dark: #808080;
	--chrome-darker: #404040;
	--chrome-black: #0a0a0a;
	--void-purple: #2a0a3a;
	--glow-purple: #8800cc;
	--glow-blue: #4400ff;
	--blood-red: #8b0000;
	--chrome-gradient: linear-gradient(
		180deg,
		#f0f0f0 0%,
		#c8c8c8 30%,
		#909090 60%,
		#b0b0b0 80%,
		#d0d0d0 100%
	);
	--chrome-bevel: linear-gradient(
		135deg,
		#ffffff 0%,
		#d0d0d0 40%,
		#888888 100%
	);
	--gothic-border: 2px solid #666;
	--metal-bg: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 50%, #1a1a1a 100%);
}

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

body {
	background: #000;
	font-family: 'VT323', monospace;
	overflow: hidden;
	height: 100vh;
	width: 100vw;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Cpath d='M0,0 L0,16 L4,12 L7,19 L9,18 L6,11 L11,11 Z' fill='white' stroke='black' stroke-width='1'/%3E%3C/svg%3E")
			0 0,
		default;
}

/* ── OUTER DESKTOP ── */
.desktop {
	width: 100vw;
	height: 100vh;
	background: #008080;
	background-image:
		repeating-linear-gradient(
			0deg,
			transparent,
			transparent 31px,
			rgba(0, 0, 0, 0.03) 31px,
			rgba(0, 0, 0, 0.03) 32px
		),
		repeating-linear-gradient(
			90deg,
			transparent,
			transparent 31px,
			rgba(0, 0, 0, 0.03) 31px,
			rgba(0, 0, 0, 0.03) 32px
		);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ── IE WINDOW ── */
.ie-window {
	width: 98vw;
	height: 97vh;
	display: flex;
	flex-direction: column;
	border: 2px solid #fff;
	border-right-color: #404040;
	border-bottom-color: #404040;
	box-shadow:
		2px 2px 0 #000,
		inset 1px 1px 0 #dfdfdf;
	background: var(--chrome-mid);
}

/* Title Bar */
.ie-titlebar {
	background: linear-gradient(90deg, #000080 0%, #1084d0 60%, #000080 100%);
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 4px;
	flex-shrink: 0;
}
.ie-titlebar-text {
	color: white;
	font-family: 'VT323', monospace;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 6px;
}
.ie-titlebar-icon {
	width: 16px;
	height: 16px;
	background: linear-gradient(135deg, #4af 0%, #00f 100%);
	border-radius: 2px;
	font-size: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: bold;
}
.ie-titlebar-buttons {
	display: flex;
	gap: 2px;
}
.ie-tbtn {
	width: 16px;
	height: 14px;
	background: var(--chrome-gradient);
	border: 1px solid #fff;
	border-right-color: #404040;
	border-bottom-color: #404040;
	font-size: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-family: 'VT323', monospace;
	color: #000;
	font-weight: bold;
}
.ie-tbtn:hover {
	background: linear-gradient(180deg, #fff 0%, #d0d0d0 100%);
}
.ie-tbtn.close:hover {
	background: #cc0000;
	color: white;
}

/* Menu Bar */
.ie-menubar {
	background: var(--chrome-mid);
	height: 20px;
	display: flex;
	align-items: center;
	padding: 0 4px;
	border-bottom: 1px solid var(--chrome-dark);
	flex-shrink: 0;
	position: relative;
	z-index: 1000;
}
.ie-menu-item {
	padding: 2px 8px;
	font-family: 'VT323', monospace;
	font-size: 14px;
	color: #000;
	cursor: pointer;
	position: relative;
	user-select: none;
}
.ie-menu-item:hover,
.ie-menu-item.active {
	background: #000080;
	color: white;
}
.ie-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--chrome-mid);
	border: 1px solid #fff;
	border-right-color: #404040;
	border-bottom-color: #404040;
	box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
	min-width: 180px;
	z-index: 9999;
}
.ie-menu-item.active .ie-dropdown {
	display: block;
}
.ie-dd-item {
	padding: 3px 20px 3px 24px;
	font-family: 'VT323', monospace;
	font-size: 14px;
	color: #000;
	cursor: pointer;
	white-space: nowrap;
	display: flex;
	justify-content: space-between;
}
.ie-dd-item:hover {
	background: #000080;
	color: white;
}
.ie-dd-sep {
	height: 1px;
	background: var(--chrome-dark);
	margin: 2px 4px;
}
.ie-dd-item.disabled {
	color: #999;
	cursor: default;
}
.ie-dd-item.disabled:hover {
	background: none;
	color: #999;
}

/* Toolbar */
.ie-toolbar {
	background: var(--chrome-mid);
	height: 36px;
	display: flex;
	align-items: center;
	padding: 2px 4px;
	gap: 2px;
	border-bottom: 2px solid var(--chrome-dark);
	flex-shrink: 0;
}
.ie-tool-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2px 6px;
	min-width: 48px;
	height: 30px;
	background: transparent;
	border: 1px solid transparent;
	cursor: pointer;
	font-family: 'VT323', monospace;
	font-size: 10px;
	color: #000;
	gap: 1px;
}
.ie-tool-btn:hover {
	background: var(--chrome-light);
	border-color: #fff;
	border-right-color: #404040;
	border-bottom-color: #404040;
}
.ie-tool-btn:active {
	border-color: #404040;
	border-right-color: #fff;
	border-bottom-color: #fff;
}
.ie-tool-icon {
	font-size: 14px;
}
.ie-tool-sep {
	width: 1px;
	height: 24px;
	background: var(--chrome-dark);
	margin: 0 2px;
	border-right: 1px solid #fff;
}

/* Address Bar */
.ie-addressbar {
	background: var(--chrome-mid);
	height: 26px;
	display: flex;
	align-items: center;
	padding: 2px 4px;
	gap: 4px;
	border-bottom: 1px solid var(--chrome-dark);
	flex-shrink: 0;
}
.ie-addr-label {
	font-family: 'VT323', monospace;
	font-size: 14px;
	color: #000;
	padding: 0 4px;
}
.ie-addr-input {
	flex: 1;
	height: 20px;
	background: white;
	border: 1px solid var(--chrome-dark);
	border-top-color: #404040;
	border-left-color: #404040;
	font-family: 'VT323', monospace;
	font-size: 13px;
	padding: 0 4px;
	color: #000080;
	display: flex;
	align-items: center;
	gap: 4px;
}
.ie-addr-icon {
	font-size: 12px;
}
.ie-addr-text {
	flex: 1;
	outline: none;
	border: none;
	font-family: 'VT323', monospace;
	font-size: 13px;
	color: #000080;
	background: transparent;
}
.ie-go-btn {
	background: var(--chrome-gradient);
	border: 1px solid #fff;
	border-right-color: #404040;
	border-bottom-color: #404040;
	padding: 2px 8px;
	font-family: 'VT323', monospace;
	font-size: 13px;
	cursor: pointer;
	color: #000;
}
.ie-go-btn:hover {
	background: linear-gradient(180deg, #fff 0%, #e0e0e0 100%);
}

/* Content Area */
.ie-content {
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	background: #000;
	position: relative;
	scrollbar-width: thin;
	scrollbar-color: var(--chrome-mid) var(--chrome-dark);
}
.ie-content::-webkit-scrollbar {
	width: 16px;
}
.ie-content::-webkit-scrollbar-track {
	background: var(--chrome-mid);
	border-left: 1px solid var(--chrome-dark);
}
.ie-content::-webkit-scrollbar-thumb {
	background: var(--chrome-gradient);
	border: 1px solid #fff;
	border-right-color: #404040;
	border-bottom-color: #404040;
}

/* Wraps scrollable column so .starfield (absolute inset 0) spans full content height,
   not only the scrollport (fixes sky ending below the player / folder row). */
.ie-scroll-inner {
	position: relative;
	min-height: 100%;
}

/* Night sky fades into solid #000 at LATEST_TRANSMISSIONS */
.transmissions-block {
	position: relative;
}

.sky-edge-fade {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: clamp(72px, 14vw, 220px);
	pointer-events: none;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0) 0%,
		rgba(0, 0, 0, 0.2) 30%,
		rgba(0, 0, 0, 0.65) 72%,
		#000 100%
	);
}

.content-solid {
	position: relative;
	z-index: 1;
	background: #000;
}

/* Status Bar */
.ie-statusbar {
	background: var(--chrome-mid);
	height: 20px;
	display: flex;
	align-items: center;
	border-top: 1px solid var(--chrome-dark);
	flex-shrink: 0;
}
.ie-status-panel {
	padding: 0 8px;
	font-family: 'VT323', monospace;
	font-size: 13px;
	color: #000;
	border-right: 1px solid var(--chrome-dark);
	height: 100%;
	display: flex;
	align-items: center;
}
.ie-status-main {
	flex: 1;
}
.ie-status-zone {
	min-width: 120px;
}

/* ══════════════════════════════════
   STARFIELD
══════════════════════════════════ */
.starfield {
	position: absolute;
	inset: 0;
	background-color: #000;
	overflow: hidden;
	z-index: 0;
}

/* Tiled Y2K star photo — homepage only */
.starfield.starfield--y2k {
	background-image: url("/images/star-background-y2k.jpg");
	background-repeat: repeat;
	background-size: auto;
}
.star {
	position: absolute;
	background: white;
	border-radius: 50%;
	animation: twinkle var(--dur, 3s) ease-in-out infinite;
	animation-delay: var(--delay, 0s);
}
@keyframes twinkle {
	0%,
	100% {
		opacity: var(--min-op, 0.2);
		transform: scale(1);
	}
	50% {
		opacity: 1;
		transform: scale(1.5);
	}
}

/* ══════════════════════════════════
   PAGE CONTENT
══════════════════════════════════ */
.page-content {
	position: relative;
	z-index: 2;
	min-height: 100%;
}

/* Scanlines */
.scanlines {
	position: fixed;
	inset: 0;
	background: repeating-linear-gradient(
		0deg,
		transparent,
		transparent 2px,
		rgba(0, 0, 0, 0.18) 2px,
		rgba(0, 0, 0, 0.18) 4px
	);
	pointer-events: none;
	z-index: 1;
}

/* ── HEADER ── */
.site-header {
	text-align: center;
	padding: 30px 20px 20px;
	position: relative;
	isolation: isolate;
	perspective: 500px;
}

/* Spinning decorations — each corner has its own motion */
.spin-deco {
	position: absolute;
	top: 30px;
	z-index: 2;
	pointer-events: none;
	transform-style: preserve-3d;
}
/* Classic in-plane spin (like a record) */
.spin-deco.left,
.deco.left {
	left: 60px;
	animation: decoSpinZ 4s linear infinite;
}
.spin-deco.no-spin,
.deco.no-spin {
	animation: none;
}
/* “Horizontal” coin-style spin: rotates around the vertical axis */
.spin-deco.right,
.deco.right {
	right: 60px;
	animation: decoSpinY 5s linear infinite;
}
/* Bottom flanking — tilt / flip around a horizontal line through the image */
.spin-deco.bottom-left,
.deco.bottom-left {
	top: auto;
	bottom: 0;
	left: 200px;
	animation: decoSpinX 4.5s linear infinite;
}
/* Bottom — gentle wobble + pulse (no full 360) */
.spin-deco.bottom-right,
.deco.bottom-right {
	top: auto;
	bottom: 0;
	right: 200px;
	animation: decoSpinZ 6s linear infinite;
}

@media (max-width: 800px) {
	.spin-deco.bottom-left,
	.deco.bottom-left {
		left: 100px;
		bottom: 30px;
	}
	.spin-deco.bottom-right,
	.deco.bottom-right {
		right: 100px;
		bottom: 30px;
	}
}

@keyframes decoSpinZ {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}
@keyframes decoSpinY {
	from {
		transform: rotateY(0deg);
	}
	to {
		transform: rotateY(360deg);
	}
}
@keyframes decoSpinX {
	from {
		transform: rotateX(0deg);
	}
	to {
		transform: rotateX(360deg);
	}
}
@keyframes decoBreatheSway {
	0%,
	100% {
		transform: rotate(0deg) scale(1) translate(0, 0);
	}
	25% {
		transform: rotate(-6deg) scale(1.08) translate(-2px, 2px);
	}
	50% {
		transform: rotate(6deg) scale(0.95) translate(1px, -1px);
	}
	75% {
		transform: rotate(-3deg) scale(1.05) translate(-1px, 1px);
	}
}

.spin-deco svg,
.spin-deco img,
.deco img {
	width: 60px;
	height: 60px;
	display: block;
	filter: drop-shadow(0 0 6px #8800cc);
}

/* Logo */
.logo-container {
	display: inline-block;
	position: relative;
	z-index: 1;
	animation: float 3s ease-in-out infinite;
}
@keyframes float {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-8px);
	}
}

.logo-moon {
	width: 120px;
	height: 120px;
	margin: 0 auto 10px;
	position: relative;
	filter: drop-shadow(0 0 20px #6600aa) drop-shadow(0 0 40px #330066);
}

.logo-moon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.logo-wordmark {
	display: block;
	margin: 0 auto;
	max-width: min(92vw, 350px);
	line-height: 0;
	filter: drop-shadow(0 0 12px rgba(102, 0, 170, 0.85)) drop-shadow(2px 3px 6px rgba(0, 0, 0, 0.9));
}

.logo-wordmark img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: contain;
}

.version-badge {
	position: absolute;
	top: -10px;
	right: -40px;
	background: linear-gradient(135deg, #333 0%, #666 50%, #333 100%);
	border: 1px solid #888;
	color: #ccc;
	font-family: 'Press Start 2P', monospace;
	font-size: 6px;
	padding: 3px 6px;
	transform: rotate(12deg);
	box-shadow: 0 0 6px #6600aa;
}

/* ── AUDIO PLAYER ── */
.player-container {
	max-width: 600px;
	margin: 0 auto 75px auto;
	padding: 0 20px;
}

.player-shell {
	background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 50%, #1a1a1a 100%);
	border: 2px solid #555;
	border-top-color: #888;
	border-left-color: #888;
	box-shadow:
		inset 0 0 20px rgba(100, 0, 150, 0.2),
		0 0 20px rgba(80, 0, 120, 0.4),
		4px 4px 0 #000;
	padding: 12px;
}

.player-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}
.player-label {
	font-family: 'VT323', monospace;
	font-size: 12px;
	color: #666;
	letter-spacing: 2px;
}
.player-time {
	font-family: 'VT323', monospace;
	font-size: 18px;
	color: #aa44ff;
	text-shadow: 0 0 8px #6600aa;
}

.player-track {
	font-family: 'VT323', monospace;
	font-size: 20px;
	color: #ddd;
	margin-bottom: 10px;
	text-shadow: 1px 1px 0 #000;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Visualizer */
.visualizer {
	display: flex;
	align-items: flex-end;
	gap: 3px;
	height: 50px;
	margin-bottom: 8px;
	padding: 4px;
	background: #000;
	border: 1px solid #333;
}
.viz-bar {
	flex: 1;
	background: linear-gradient(180deg, #aa00ff 0%, #6600cc 50%, #330066 100%);
	animation: vizAnim var(--dur, 0.5s) ease-in-out infinite alternate;
	min-height: 4px;
	box-shadow: 0 0 4px #8800cc;
}
@keyframes vizAnim {
	from {
		height: var(--min-h, 10%);
	}
	to {
		height: var(--max-h, 80%);
	}
}

/* Progress bar */
.progress-container {
	margin-bottom: 10px;
	cursor: pointer;
}
.progress-track {
	height: 8px;
	background: #1a1a1a;
	border: 1px solid #444;
	border-top-color: #222;
	position: relative;
	cursor: pointer;
}
.progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #6600cc 0%, #aa44ff 100%);
	width: 0%;
	transition: width 0.1s;
	box-shadow: 0 0 6px #8800cc;
}
.progress-handle {
	position: absolute;
	top: -3px;
	width: 14px;
	height: 14px;
	background: var(--chrome-gradient);
	border: 1px solid #fff;
	border-right-color: #404040;
	border-bottom-color: #404040;
	left: 0%;
	transform: translateX(-50%);
	cursor: grab;
}

/* Controls */
.player-controls {
	display: flex;
	justify-content: center;
	gap: 8px;
}
.ctrl-btn {
	background: linear-gradient(180deg, #3a3a3a 0%, #1a1a1a 50%, #2a2a2a 100%);
	border: 2px solid #666;
	border-top-color: #888;
	border-left-color: #888;
	border-right-color: #333;
	border-bottom-color: #333;
	color: #ccc;
	width: 40px;
	height: 36px;
	font-size: 14px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.1s;
	box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
}
.ctrl-btn:hover {
	background: linear-gradient(180deg, #4a4a4a 0%, #2a2a2a 50%, #3a3a3a 100%);
	color: #aa44ff;
	box-shadow:
		0 0 8px #6600aa,
		inset 0 0 6px rgba(0, 0, 0, 0.5);
}
.ctrl-btn:active {
	border-top-color: #333;
	border-left-color: #333;
	border-right-color: #888;
	border-bottom-color: #888;
}
.ctrl-btn.play {
	background: linear-gradient(180deg, #4a004a 0%, #2a002a 50%, #3a003a 100%);
	color: #cc44ff;
	box-shadow: 0 0 10px #6600aa;
}
.ctrl-btn.play:hover {
	box-shadow:
		0 0 16px #aa00ff,
		inset 0 0 6px rgba(0, 0, 0, 0.5);
}

/* Spotify placeholder */
.spotify-placeholder {
	margin-top: 10px;
	border: 1px solid #333;
	background: #111;
	padding: 8px;
	text-align: center;
	color: #555;
	font-family: 'VT323', monospace;
	font-size: 13px;
}

/* ── NAV BUTTONS ── */
.nav-buttons {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin: 20px auto;
	padding: 0 20px;
}
.nav-btn {
	padding: 10px 30px;
	font-family: 'Press Start 2P', monospace;
	font-size: 11px;
	color: var(--chrome-light);
	background: linear-gradient(180deg, #2a2a2a 0%, #111 50%, #222 100%);
	border: 2px solid #888;
	border-top-color: #ccc;
	border-left-color: #ccc;
	border-right-color: #333;
	border-bottom-color: #333;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
	text-shadow:
		0 0 8px #6600aa,
		1px 1px 0 #000;
	box-shadow:
		inset 0 0 10px rgba(100, 0, 150, 0.1),
		0 0 10px rgba(80, 0, 120, 0.3);
	transition: all 0.1s;
	letter-spacing: 1px;
}
.nav-btn:hover {
	background: linear-gradient(180deg, #3a003a 0%, #1a001a 50%, #2a002a 100%);
	color: #cc88ff;
	box-shadow:
		inset 0 0 10px rgba(150, 0, 200, 0.3),
		0 0 20px rgba(120, 0, 180, 0.6);
	border-color: #aa44ff;
}
.nav-btn:active {
	border-top-color: #333;
	border-left-color: #333;
	border-right-color: #ccc;
	border-bottom-color: #ccc;
}

/* ── SECTION HEADERS ── */
.section-header {
	font-family: 'Press Start 2P', monospace;
	font-size: 12px;
	color: #999;
	letter-spacing: 3px;
	padding: 0 20px;
	margin: 20px 0 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	text-shadow: 0 0 8px #6600aa;
}
.section-header::after {
	content: '';
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, #555 0%, #330066 50%, transparent 100%);
}

/* ── ALBUM GRID ── */
.album-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	padding: 0 20px 20px;
}
.album-card {
	background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
	border: 1px solid #444;
	border-top-color: #666;
	border-left-color: #666;
	position: relative;
	cursor: pointer;
	transition: all 0.2s;
	box-shadow: 2px 2px 0 #000;
}
.album-card:hover {
	border-color: #8800cc;
	box-shadow:
		0 0 12px rgba(136, 0, 204, 0.5),
		2px 2px 0 #000;
}
.album-card.is-playing {
	border: 2px solid #aa00ff;
	box-shadow:
		0 0 16px rgba(170, 0, 255, 0.65),
		0 0 28px rgba(136, 0, 204, 0.35),
		2px 2px 0 #000;
}
.album-card.is-playing:hover {
	border-color: #cc66ff;
}
.album-thumb {
	width: 100%;
	aspect-ratio: 1;
	background: linear-gradient(135deg, #1a001a 0%, #0d000d 50%, #1a0a1a 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 40px;
	border-bottom: 1px solid #333;
}
.album-badge {
	position: absolute;
	top: 6px;
	right: 6px;
	font-family: 'Press Start 2P', monospace;
	font-size: 6px;
	padding: 2px 4px;
	text-transform: uppercase;
}
.badge-new {
	background: #00aa00;
	color: #000;
}
.badge-hot {
	background: #cc0000;
	color: #fff;
}
.album-info {
	padding: 8px 8px 6px;
}
.album-title {
	font-family: 'VT323', monospace;
	font-size: 14px;
	color: #ccc;
	margin-bottom: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.album-artist {
	font-family: 'VT323', monospace;
	font-size: 12px;
	color: #666;
}

.transmissions-empty {
	font-family: 'VT323', monospace;
	font-size: 16px;
	color: #666;
	padding: 0 20px 20px;
	margin: 0;
}

.album-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ── MARQUEE ── */
.marquee-bar {
	background: #000;
	border-top: 2px solid #333;
	border-bottom: 2px solid #333;
	padding: 4px 0;
	font-family: 'VT323', monospace;
	font-size: 14px;
	color: #888;
	margin: 10px 0 0;
	overflow: hidden;
}
marquee {
	display: block;
}

/* ── FOOTER ── */
.site-footer {
	text-align: center;
	padding: 16px;
	border-top: 1px solid #222;
	background: linear-gradient(180deg, #0a0a0a 0%, #000 100%);
}
.footer-logo {
	font-family: 'Pirata One', cursive;
	font-size: 20px;
	color: #888;
	margin-bottom: 8px;
	text-shadow: 0 0 8px #330066;
}
.footer-links {
	display: flex;
	justify-content: flex-end;
	gap: 16px;
	padding: 0 20px;
	margin-bottom: 6px;
}
.footer-links a {
	font-family: 'VT323', monospace;
	font-size: 14px;
	color: #666;
	text-decoration: underline;
	cursor: pointer;
}
.footer-links a:hover {
	color: #aa44ff;
}
.footer-copy {
	font-family: 'VT323', monospace;
	font-size: 12px;
	color: #444;
	letter-spacing: 1px;
}

/* ══════════════════════════════════
   GAME POPUP
══════════════════════════════════ */
.game-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
	z-index: 5000;
	align-items: center;
	justify-content: center;
}
.game-overlay.active {
	display: flex;
}

.game-window {
	background: var(--chrome-mid);
	border: 2px solid #fff;
	border-right-color: #404040;
	border-bottom-color: #404040;
	box-shadow:
		4px 4px 0 #000,
		inset 1px 1px 0 #dfdfdf;
	display: flex;
	flex-direction: column;
}
.game-titlebar {
	background: linear-gradient(90deg, #000080 0%, #1084d0 60%, #000080 100%);
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 4px;
	cursor: move;
	user-select: none;
	flex-shrink: 0;
}
.game-titlebar-text {
	color: white;
	font-family: 'VT323', monospace;
	font-size: 14px;
}
.game-close-btn {
	width: 14px;
	height: 12px;
	background: var(--chrome-gradient);
	border: 1px solid #fff;
	border-right-color: #404040;
	border-bottom-color: #404040;
	font-size: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #000;
	font-weight: bold;
}
.game-close-btn:hover {
	background: #cc0000;
	color: white;
}
.game-body {
	padding: 0;
	background: #000;
	flex: 1;
	overflow: hidden;
}
canvas {
	display: block;
}

/* DOOM window */
.doom-window {
	width: 90vw;
	max-width: 900px;
	height: 80vh;
}
.doom-body {
	width: 100%;
	height: calc(100% - 20px);
	background: #000;
}
#doom-jsdos {
	width: 100%;
	height: 100%;
	min-height: 0;
}

/* Canvas game windows */
.canvas-window {
}

/* ══════════════════════════════════
   DIALOGS
══════════════════════════════════ */
.dialog-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 8000;
	align-items: center;
	justify-content: center;
}
.dialog-overlay.active {
	display: flex;
}
.dialog-box {
	background: var(--chrome-mid);
	border: 2px solid #fff;
	border-right-color: #404040;
	border-bottom-color: #404040;
	box-shadow: 4px 4px 0 #000;
	min-width: 300px;
	max-width: 500px;
}
.dialog-titlebar {
	background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 4px;
}
.dialog-title {
	color: white;
	font-family: 'VT323', monospace;
	font-size: 14px;
}
.dialog-close {
	width: 14px;
	height: 12px;
	background: var(--chrome-gradient);
	border: 1px solid #fff;
	border-right-color: #404040;
	border-bottom-color: #404040;
	font-size: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #000;
	font-weight: bold;
}
.dialog-close:hover {
	background: #cc0000;
	color: white;
}
.dialog-body {
	padding: 16px;
	font-family: 'VT323', monospace;
	font-size: 14px;
	color: #000;
	line-height: 1.6;
}
.dialog-body pre {
	background: #000;
	color: #0f0;
	padding: 8px;
	font-size: 11px;
	max-height: 300px;
	overflow-y: auto;
	font-family: 'VT323', monospace;
	font-size: 13px;
}
.dialog-footer {
	padding: 8px 16px;
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	border-top: 1px solid var(--chrome-dark);
}
.dialog-btn {
	background: var(--chrome-gradient);
	border: 2px solid #fff;
	border-right-color: #404040;
	border-bottom-color: #404040;
	padding: 3px 16px;
	font-family: 'VT323', monospace;
	font-size: 14px;
	cursor: pointer;
	color: #000;
	min-width: 60px;
}
.dialog-btn:hover {
	background: linear-gradient(180deg, #fff 0%, #e0e0e0 100%);
}
.dialog-btn:active {
	border-color: #404040;
	border-right-color: #fff;
	border-bottom-color: #fff;
}

/* ══════════════════════════════════
   SECRET SEQUENCE INDICATOR
══════════════════════════════════ */
.secret-indicator {
	position: fixed;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.9);
	border: 1px solid #6600aa;
	color: #aa44ff;
	font-family: 'VT323', monospace;
	font-size: 16px;
	padding: 4px 12px;
	z-index: 9000;
	display: none;
	box-shadow: 0 0 10px #6600aa;
	letter-spacing: 2px;
}
