* {
	box-sizing: border-box;
}
body {
	margin: 0;
	height: 100vh;
	overflow: hidden;
	background-color: #17172e;
	color: white;
}
.arcade-room {
	position: relative;
	width: 100%;
	height: 100vh;
	background-color: #17172e;
}
.arcade-floor {
	position: absolute;
	bottom: 0;
	width: 100%;
	height: var(--floor-height);
	background-color: #292942;
	border-top: 4px solid #8e5bff;
	box-shadow: 0 -8px 25px rgba(142, 91, 255, 0.3);
	background-image: 
		linear-gradient(45deg, #31314d 25%, transparent 25%, transparent 75%, #31314d 75%),
		linear-gradient(45deg, #31314d 25%, transparent 25%, transparent 75%, #31314d 75%),
		linear-gradient(to right, transparent 98%, #444466 100%), 
		linear-gradient(to bottom, transparent 98%, #444466 100%);
	background-size: 80px 80px, 80px 80px, 80px 80px, 80px 80px;
	background-position: 0 0, 40px 40px, 0 0, 0 0;
}
.arcade-machine {
	position: absolute;
	width: 140px;
	height: 280px;
	background-color: #4b3a77;
	border: 4px solid #101225;
	border-radius: 8px;
	left: 12%;
	bottom: 30%;
	z-index: 2;
}
.arcade-machine:has(.zooming) {
	z-index: 100;
}
.machine-screen {
	width: 80%;
	height: 75px;
	margin: 45px auto 0;
	background-color: #52f7ff;
	border: 4px solid #101225;
	box-shadow: 0 0 15px rgba(82, 247, 255, 0.6);
	display: block;
	padding: 0;
	cursor: pointer;
	transition: box-shadow 0.3s ease;
}
.machine-screen:hover {
	box-shadow: 0 0 25px rgba(82, 247, 255, 0.9);
}
.machine-controls {
	position: absolute;
	width: 90%;
	height: 45px;
	background-color: #252847;
	border: 3px solid #101225;
	top: 140px;
	left: 5%;
}
.joystick {
	position: absolute;
	left: 10px;
	top: 25%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	background-color: #ff4fc8;
	border-radius: 50%;
}
.joystick::after {
	content:"";
	position: absolute;
	width: 5px;
	height: 12px;
	background-color: #b9b8d4;
	top: 14px;
	left: 50%;
	transform: translateX(-50%);
}
.machine-button {
	position: absolute;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background-color: #ffe66d;
	box-shadow: 0 0 6px #ffe66d;
}
.machine-button:nth-child(2) {
	left: 65px;
	top: 12px;
}
.machine-button:nth-child(3) {
	left: 90px;
	top: 12px;
	background-color: #ff4fc8;
	box-shadow: 0 0 6px #ff4fc8;
}
.machine-title {
	position: absolute;
	top: 12px;
	width: 100%;
	text-align: center;
	font-size: 18px;
	font-weight: bold;
	color: #ffe66d;
	text-shadow: 0 0 8px #ffe66d;
}
.arcade-machine::after {
	content:"";
	position: absolute;
	bottom: 0;
	left: 10%;
	width: 80%;
	height: 20px;
	background-color: #30254d;
	border-top: 3px solid #101225;
}
.arcade-machine::before {
	content:"";
	position: absolute;
	bottom: -15px;
	left: 0;
	width: 100%;
	height: 20px;
	background-color: rgba(0, 0, 0, 0.5);
	border-radius: 50%;
	filter: blur(8px);
}
.room-door {
	position: absolute;
	right: 2%;
	bottom: var(--floor-height);
	width: 160px;
	height: 260px;
	background-color: #39305c;
	border: 5px solid #77719a;
	border-bottom: none;
	z-index: 2;
	text-decoration: none;
	transition: box-shadow 0.3s ease;
}
.room-door-sign {
	position: absolute;
	top: 30px;
	width: 100%;
	text-align: center;
	font-size: 20px;
	font-weight: bold;
	color: #52f7ff;
	text-shadow: 0 0 10px #52f7ff;
}
.room-door:hover {
	box-shadow:
		-10px 0 20px -8px #52f7ff,
		10px 0 20px -8px #52f7ff,
		0 -10px 20px -8px #52f7ff;
	cursor: pointer;
}
.construction-sign {
	position: absolute;
	top: 100px;
	left: 10px;
	width: 80%;
	padding: 10px 5px;
	background-color: #ffffff;
	color: #cc2222;
	text-align: center;
	font-size: 10px;
	font-weight: bold;
	border: 3px solid #101225;
	box-shadow: 5px 7px 12px rgba(0, 0, 0, 0.5);
}
.construction-sign::before {
	content:"";
	position: absolute;
	width: 2px;
	height: 75px;
	background-color: #d5d1bf;
	bottom: 100%;
	left: 0;
	transform-origin: bottom center;
	transform: rotate(42deg);
}
.construction-sign::after {
	content:"";
	position: absolute;
	width: 2px;
	height: 75px;
	background-color: #d5d1bf;
	bottom: 100%;
	right: 0;
	transform-origin: bottom center;
	transform: rotate(-42deg);
}
.birdpipe.zooming {
	position: fixed;
	margin: 0;
	z-index: 1000;
	transition: none;
}
.close-game {
	position: fixed;
	top: 20px;
	right: 20px;
	width: 45px;
	height: 45px;
	background-color: #cc2222;
	color: white;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	z-index: 2000;
	display: none;
}
.birdpipe-game {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	border: none;
	z-index: 1500;
	visibility: hidden;
}
.game-loading {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #ffe66d;
	font-size: 24px;
	font-weight: bold;
	text-shadow: 0 0 10px #ffe66d;
	z-index: 1600;
	display: none;
}
:root {
	--floor-height: 35%;
}
