/* ============================
   DOOM GAME — Floating Button
   ============================ */
#doomgame-btn {
	position: fixed;
	top: 18px;
	left: 18px;
	z-index: 99990;
	width: 52px;
	height: 52px;
	background: #c00;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 0 0 3px #ff3300, 0 4px 18px rgba(0,0,0,.55);
	transition: transform .15s, box-shadow .15s;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}
#doomgame-btn:hover,
#doomgame-btn:focus {
	transform: scale(1.13);
	box-shadow: 0 0 0 4px #ff6600, 0 6px 24px rgba(0,0,0,.7);
	outline: none;
}
#doomgame-btn span {
	font-size: 24px;
	line-height: 1;
	filter: drop-shadow(0 1px 3px #000);
}

/* ============================
   DOOM GAME — Overlay
   ============================ */
#doomgame-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(0, 0, 0, .92);
	align-items: center;
	justify-content: center;
}
#doomgame-overlay.active {
	display: flex;
}

#doomgame-wrapper {
	position: relative;
	background: #000;
	border: 3px solid #c00;
	box-shadow: 0 0 60px rgba(200, 0, 0, .6);
	border-radius: 6px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
}

#doomgame-canvas {
	display: block;
	max-width: 100%;
	image-rendering: pixelated;
}

#doomgame-close {
	position: absolute;
	top: 6px;
	right: 8px;
	background: none;
	border: none;
	color: #c00;
	font-size: 22px;
	cursor: pointer;
	z-index: 10;
	line-height: 1;
	padding: 4px 8px;
	font-weight: bold;
	transition: color .15s;
}
#doomgame-close:hover { color: #ff4444; }

#doomgame-controls {
	background: #111;
	color: #ff6600;
	font-family: 'Courier New', monospace;
	font-size: 12px;
	padding: 7px 14px;
	letter-spacing: .04em;
	text-align: center;
	width: 100%;
	box-sizing: border-box;
	border-top: 1px solid #300;
}

/* Responsive */
@media (max-width: 860px) {
	#doomgame-canvas {
		width: 100vw;
		height: calc(100vw * 0.625);
	}
}
