.pool-game-wrapper {
	--pool-table-color: #0b6b3a;
	max-width: 960px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #eee;
	background: #16181c;
	border-radius: 12px;
	padding: 16px;
	box-sizing: border-box;
}

.pool-loading {
	text-align: center;
	padding: 40px 0;
	color: #999;
}

.pool-topbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}

.pool-topbar .pool-tabs {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.pool-btn {
	background: #2a2f38;
	color: #eee;
	border: 1px solid #3a4150;
	border-radius: 8px;
	padding: 8px 14px;
	font-size: 13px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.pool-btn:hover {
	background: #3a4150;
}

.pool-btn.active {
	background: #3a8c5a;
	border-color: #4fae72;
}

.pool-status-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #1f232a;
	border-radius: 8px;
	padding: 8px 12px;
	margin-bottom: 10px;
	font-size: 14px;
	flex-wrap: wrap;
	gap: 8px;
}

.pool-status-bar .pool-turn-indicator {
	font-weight: 600;
}

.pool-canvas-container {
	position: relative;
	width: 100%;
	background: #05070a;
	border-radius: 10px;
	overflow: hidden;
	touch-action: none;
}

.pool-canvas-container canvas {
	display: block;
	width: 100%;
	height: auto;
	touch-action: none;
}

.pool-power-meter {
	position: absolute;
	right: 10px;
	bottom: 10px;
	width: 16px;
	height: 140px;
	background: rgba(0, 0, 0, 0.4);
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #444;
}

.pool-power-meter-fill {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 0%;
	background: linear-gradient(180deg, #ff4d4d, #ffd24d 60%, #4dff88);
	transition: height 0.05s linear;
}

.pool-controls-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: space-between;
	margin-top: 10px;
	font-size: 13px;
}

.pool-controls-row label {
	display: flex;
	align-items: center;
	gap: 6px;
}

.pool-panel {
	background: #1f232a;
	border-radius: 8px;
	padding: 12px;
	margin-top: 10px;
	font-size: 13px;
}

.pool-panel table {
	width: 100%;
	border-collapse: collapse;
}

.pool-panel th,
.pool-panel td {
	text-align: left;
	padding: 4px 6px;
	border-bottom: 1px solid #2c313a;
}

.pool-room-code {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 2px;
	background: #05070a;
	border-radius: 6px;
	padding: 6px 12px;
	display: inline-block;
}

.pool-hidden {
	display: none !important;
}

.pool-toast {
	position: absolute;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.75);
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 13px;
	z-index: 5;
	pointer-events: none;
}

@media (max-width: 600px) {
	.pool-game-wrapper {
		padding: 8px;
		border-radius: 0;
	}
	.pool-status-bar,
	.pool-controls-row {
		font-size: 12px;
	}
	.pool-power-meter {
		width: 12px;
		height: 100px;
	}
}
