.game-live-stats {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 1050;
	width: min(420px, calc(100vw - 32px));
	background: #1e232b;
	background-image: none !important;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
	color: #e2e8f0;
	font-size: 13px;
	display: none;
	flex-direction: column;
	overflow: hidden;
}

.game-live-stats.is-open {
	display: flex;
}

.game-live-stats__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.game-live-stats__title {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: #f1f5f9;
	display: flex;
	align-items: center;
	gap: 8px;
}

.game-live-stats__title i {
	color: #0ac18f;
	font-size: 14px;
}

.game-live-stats__close {
	background: none;
	border: none;
	color: #94a3b8;
	cursor: pointer;
	font-size: 16px;
	padding: 4px 6px;
	line-height: 1;
}

.game-live-stats__close:hover {
	color: #f1f5f9;
}

.game-live-stats__toolbar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
}

.game-live-stats__session-label {
	flex: 1;
	height: 34px;
	display: flex;
	align-items: center;
	padding: 0 10px;
	font-size: 13px;
	font-weight: 500;
	color: #94a3b8;
	background: #2a3140;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
}

.game-live-stats__filter {
	flex: 1;
	height: 34px;
	background: #2a3140;
	background-image: none!important;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	color: #e2e8f0;
	padding: 0 10px;
	font-size: 13px;
	cursor: pointer;
}

.game-live-stats__refresh {
	width: 34px;
	height: 34px;
	background: #2a3140;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	color: #94a3b8;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.game-live-stats__refresh:hover {
	color: #0ac18f;
	border-color: rgba(10, 193, 143, 0.35);
}

.game-live-stats__summary {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	margin: 0 16px;
	background: rgba(255, 255, 255, 0.06);
	border-radius: 10px;
	overflow: hidden;
}

.game-live-stats__stat {
	background: #252b36;
	padding: 12px 14px;
}

.game-live-stats__stat-label {
	color: #94a3b8;
	font-size: 12px;
	margin-bottom: 6px;
}

.game-live-stats__stat-value {
	font-size: 15px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 6px;
	line-height: 1.2;
	word-break: break-all;
}

.game-live-stats__stat-value img {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.game-live-stats__stat-value.is-profit-positive {
	color: #38cb74;
}

.game-live-stats__stat-value.is-profit-negative {
	color: #ff5722;
}

.game-live-stats__stat-value.is-wins {
	color: #38cb74;
}

.game-live-stats__stat-value.is-losses {
	color: #ff5722;
}

.game-live-stats__stat-value.is-neutral {
	color: #f1f5f9;
}

.game-live-stats__chart-wrap {
	padding: 12px 16px 16px;
	height: 180px;
	background: rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	margin: 0 16px 16px;
}

.game-live-stats__chart-wrap canvas {
	width: 100% !important;
	height: 100% !important;
}

body:not(.dark_mode) .game-live-stats {
	background: #fff;
	border-color: rgba(0, 0, 0, 0.08);
	color: #334155;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

body:not(.dark_mode) .game-live-stats__title {
	color: #0f172a;
}

body:not(.dark_mode) .game-live-stats__stat {
	background: #f8fafc;
}

body:not(.dark_mode) .game-live-stats__summary {
	background: #e2e8f0;
}

body:not(.dark_mode) .game-live-stats__session-label {
	background: #f1f5f9;
	border-color: #e2e8f0;
	color: #64748b;
}

body:not(.dark_mode) .game-live-stats__chart-wrap {
	background: #f1f5f9;
}

body:not(.dark_mode) .game-live-stats__filter,
body:not(.dark_mode) .game-live-stats__refresh {
	background: #f1f5f9;
	border-color: #e2e8f0;
	color: #475569;
}

body:not(.dark_mode) .game-live-stats__stat-value.is-neutral {
	color: #0f172a;
}

.gx-btn.is-active-stats {
	color: #03a9f4;
	border-color: rgba(10, 193, 143, 0.45);
}
