.tetris-body {
	justify-content: center;
	/* align-items: center; */
	/* min-height: 100vh; */
	margin-top: 20px;
	font-family: 'Courier New', monospace;
	color: #eee;
	display: none;
}

.tetris-container {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.board-wrapper {
	position: relative;
}

canvas#tetris-board {
	border: 3px solid #302040;
	border-radius: 4px;
	box-shadow: 0 0 20px rgba(60, 40, 80, 0.5);
	background: #0c0810;
}

.side-panel {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 160px;
}

.left-panel,
.right-panel {
	justify-content: flex-start;
}

.panel-box {
	background: #302040;
	border: 2px solid #604080;
	border-radius: 8px;
	padding: 15px;
	text-align: center;
}

.panel-box h3 {
	margin-bottom: 10px;
	color: #ff7fbf;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.panel-box .value {
	font-size: 24px;
	font-weight: bold;
	color: #fff;
}

canvas#tetris-next-piece {
	display: block;
	margin: 0 auto;
	background: #0c0810;
	border-radius: 4px;
}

.t-controls {
	font-size: 11px;
	line-height: 1.8;
	color: #00ffff;
	text-align: left;
}

.t-controls kbd {
	background: #302040;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 10px;
	color: #ff7fff;
}

.t-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #00000080;
	opacity: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	border-radius: 4px;
	gap: 15px;
	transition-duration: 0.2s;
}

.t-overlay.hidden {
	opacity: 0;
	pointer-events: none;
}

.stopped.hidden {
	display: none;
}

.t-overlay h2 {
	color: #e94560;
	font-size: 28px;
}

.t-overlay p {
	color: #aaa;
	font-size: 14px;
}

.t-score {
	position: absolute;
	left: 0;
	width: 100%;
	opacity: 1;
	text-align: center;
	-webkit-text-stroke: 1px black;
}
.t-score.bg {
	z-index:-1;
	background-image: linear-gradient(to right, #ffffff00, #ffffff80, #ffffff80, #ffffff00);
	border-radius: 8px;
}
.trans-flash {
	animation: trans-anim 2s infinite;
}
@keyframes trans-anim {
	0%, 100% {
		color: #55cdfc;
	}
	25% {
		color: white;
	}
	50% {
		color: #f7a8b8;
	}
	75% {
		color: white;
	}
}

.btn {
	background: #e94560;
	color: #fff;
	border: none;
	padding: 10px 24px;
	font-family: 'Courier New', monospace;
	font-size: 14px;
	border-radius: 4px;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.btn:hover {
	background: #ff6b6b;
}