#tmf-open-btn {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 999998;
	padding: 10px 20px;
	background: #000;
	color: #fff;
	border: 2px solid #fff;
	border-radius: 5px;
	cursor: pointer;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	font-weight: bold;
	box-shadow: 0 4px 15px rgba(0,0,0,0.3);
	transition: transform 0.2s;
}

#tmf-open-btn:hover {
	transform: scale(1.05);
	background: #333;
}

#tmf-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.3s ease;
}

.tmf-modal-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

#tmf-modal-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
}

#tmf-modal-content {
	position: relative;
	background: #222;
	padding: 30px;
	border-radius: 10px;
	box-shadow: 0 0 30px rgba(0,0,0,0.5);
	border: 1px solid #444;
	max-width: 90vw;
	max-height: 90vh;
}

#tmf-close-btn {
	position: absolute;
	top: 10px;
	right: 15px;
	background: none;
	border: none;
	color: #fff;
	font-size: 30px;
	cursor: pointer;
	line-height: 1;
}

#tmf-game-container {
	display: flex;
	gap: 20px;
	color: #fff;
}

#tmf-canvas {
	background: #000;
	border: 4px solid #333;
	box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

#tmf-stats {
	display: flex;
	flex-direction: column;
	justify-content: center;
	font-family: 'Courier New', Courier, monospace;
	font-size: 20px;
}

#tmf-start-btn {
	margin-top: 20px;
	padding: 10px;
	background: #4CAF50;
	border: none;
	color: white;
	border-radius: 4px;
	cursor: pointer;
}

#tmf-start-btn:hover {
	background: #45a049;
}