* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
body, html {
	width: 100%;
	height: 100%;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: #1a1a2e;
	overflow-x: hidden;
	overscroll-behavior: none;
	touch-action: manipulation;
}
body {
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
	min-height: 100vh;
	min-height: 100dvh;
}

/* Game Container - vertically centered */
.game-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-width: 800px;
	margin: 0 auto;
	padding: 10px;
	min-height: 100vh;
	min-height: 100dvh;
	gap: 8px;
}

/* Top Bar */
.top-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: 720px;
	gap: 8px;
}
.player-card {
	background: rgba(255,255,255,0.08);
	border: 2px solid rgba(255,255,255,0.1);
	border-radius: 12px;
	padding: 8px 16px;
	text-align: center;
	min-width: 100px;
	transition: all 0.3s ease;
}
.player-card.active {
	background: rgba(76, 175, 80, 0.2);
	border-color: #4caf50;
	box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
}
.player-name {
	color: #aaa;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 2px;
}
.player-card.active .player-name {
	color: #4caf50;
}
.player-score {
	color: #fff;
	font-size: 26px;
	font-weight: 700;
}
.game-info {
	text-align: center;
	flex: 1;
}
.turn-indicator {
	color: #4caf50;
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 2px;
}
.phase-text {
	color: rgba(255,255,255,0.5);
	font-size: 11px;
}

/* Canvas */
.canvas-wrapper {
	position: relative;
	width: 720px;
	height: 720px;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 0 60px rgba(243,229,171,0.08);
	flex-shrink: 0;
}
#Carrom {
	background-color: #1a1a1a;
	position: absolute;
	top: 0;
	left: 0;
}
#Striker {
	position: absolute;
	top: 0;
	left: 0;
	cursor: crosshair;
	touch-action: none;
}

/* Bottom Bar */
.bottom-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	width: 100%;
	max-width: 720px;
	padding: 10px 16px;
	background: rgba(255,255,255,0.06);
	border-radius: 12px;
	border: 1px solid rgba(255,255,255,0.08);
}
.btn-reset {
	background: linear-gradient(135deg, #e74c3c, #c0392b);
	color: #fff;
	border: none;
	padding: 8px 20px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	text-transform: uppercase;
	letter-spacing: 1px;
	flex-shrink: 0;
}
.btn-reset:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}
.btn-reset:active {
	transform: translateY(0);
}

/* Power Slider */
.power-control {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
	min-width: 0;
}
.power-label {
	color: #aaa;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 1px;
	white-space: nowrap;
}
.slider-container {
	position: relative;
	flex: 1;
	height: 8px;
	background: rgba(255,255,255,0.1);
	border-radius: 4px;
	overflow: hidden;
	min-width: 60px;
}
.power-fill {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	border-radius: 4px;
	background: linear-gradient(90deg, #4ade80, #ef4444);
	transition: width 0.1s;
	pointer-events: none;
}
.power-slider {
	position: absolute;
	top: -6px;
	left: 0;
	width: 100%;
	height: 20px;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	cursor: pointer;
	z-index: 2;
}
.power-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0,0,0,0.3);
	cursor: pointer;
}
.power-slider::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0,0,0,0.3);
	cursor: pointer;
	border: none;
}
.power-value {
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	min-width: 28px;
	text-align: center;
}

/* Mobile Responsive */
@media (max-width: 760px) {
	.game-container {
		padding: 6px;
		justify-content: center;
		gap: 6px;
	}
	.canvas-wrapper {
		width: calc(100vw - 12px);
		height: calc(100vw - 12px);
		max-width: 720px;
		max-height: 720px;
		border-radius: 4px;
	}
	#Carrom, #Striker {
		width: 100%;
		height: 100%;
	}
	.top-bar {
		max-width: calc(100vw - 12px);
		gap: 6px;
	}
	.player-card {
		min-width: 75px;
		padding: 6px 10px;
	}
	.player-score {
		font-size: 20px;
	}
	.player-name {
		font-size: 10px;
	}
	.turn-indicator {
		font-size: 12px;
	}
	.phase-text {
		font-size: 10px;
	}
	.bottom-bar {
		max-width: calc(100vw - 12px);
		gap: 10px;
		padding: 8px 12px;
	}
	.btn-reset {
		padding: 8px 14px;
		font-size: 12px;
	}
	.power-label {
		font-size: 10px;
	}
	.power-value {
		font-size: 14px;
	}
}

@media (max-width: 380px) {
	.player-card {
		min-width: 60px;
		padding: 5px 6px;
	}
	.player-name {
		font-size: 9px;
		letter-spacing: 0.5px;
	}
	.player-score {
		font-size: 18px;
	}
	.turn-indicator {
		font-size: 11px;
	}
	.bottom-bar {
		gap: 8px;
		padding: 6px 8px;
	}
	.btn-reset {
		padding: 6px 10px;
		font-size: 11px;
	}
}
