#wp-game svg {
	background: #f0f0f0;
	display: block;
}
#scoreboard {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 18px;
    color: #000;
}

#startButton {
	position: absolute;
	z-index: 10;
	left: 50%;
	transform: translateX(-50%);
	font-size: 20px;
	padding: 10px 20px;
	border: none;
	border-radius: 8px;
	background: #28a745;
	color: white;
	cursor: pointer;
}

#startButton {
	top: 50%;
	transform: translate(-50%, -50%);
}

.droplet {
	position: absolute;
	font-size: 40px;
	transition: background-color 0.5s ease, filter 0.5s ease;
	background-color: black;
	color: white;
	padding: 5px;
	border-radius: 50%;
	width: 45px;
	height: 45px;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}
/* Mức nước từ bẩn tới sạch */
.dirty { background-color: rgba(0, 0, 0, 0.8); }     /* đen đậm */
.grey { background-color: rgba(128, 128, 128, 0.7); } /* xám */
.blue { background-color: rgba(52, 152, 219, 0.6); }  /* xanh đục */
.cyan { background-color: rgba(26, 188, 156, 0.5); }  /* xanh biển */
.green { background-color: rgba(46, 204, 113, 0.4); } /* xanh lá */
.clean { background-color: rgba(7,190,205,0.2);}/* gần như trong suốt */
.crystal { background-color: rgb(110,244,255,0.2); border: 1px solid #fff; } /* tinh khiết */
.droplet.grey {
	background-color: gray;
}

.droplet.blue {
	background-color: lightblue;
}

.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	justify-content: center;
	align-items: center;
	z-index: 9999;
	padding: 10px;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 500px;
    max-width: 90%;
}

.modal-success {
	background-color: #d4edda;
	color: #155724;
}

.modal-error {
	background-color: #f8d7da;
	color: #721c24;
}

.modal-warning {
	background-color: #fff3cd;
	color: #856404;
}

button.reset {
	background: red;
	color: #fff;
	border: 0;
	padding: 10px 20px;
	font-size: 16px;
	text-transform: uppercase;
	font-weight: bold;
	border-radius: 5px;
}



#wp-game {
	width: 700px;
	max-width: 100%;
	height: 80vh;
	margin: 0 auto;
	position: relative;
	overflow: hidden;
	background: #f0f0f0;
}

#scoreboard,
#startButton,
.droplet {
	position: absolute;
	z-index: 10;
}

div#wp-game svg>* {
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-drag: none;
	-webkit-user-drag: none;
	touch-action: manipulation;
}
/*
@keyframes popFade {
0% {
  opacity: 1;
  transform:scale(1);
}
50% {
  transform:  scale(1.5);
   opacity: 0.5;
}
100% {
  opacity: 0;
  transform: scale(2);
}
}

.score-effect {
animation: popFade 1s ease-in-out;
transform-origin: center;
pointer-events: none;
}*/