.bj-game {
	background:
		radial-gradient(circle at 50% 40%, rgba(30, 145, 93, 0.26), transparent 42%),
		linear-gradient(145deg, #0d563d 0%, #07392b 58%, #05261f 100%);
	border-radius: 18px;
	box-sizing: border-box;
	color: #fff;
	display: flex;
	flex-direction: column;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	min-height: 532px;
	overflow: hidden;
	position: relative;
}

.bj-game::before {
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
	background-size: 22px 22px;
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.bj-toolbar {
	align-items: center;
	background: rgba(2, 22, 17, 0.66);
	border-bottom: 1px solid rgba(255, 255, 255, 0.11);
	display: flex;
	justify-content: space-between;
	padding: 10px 15px;
	position: relative;
	z-index: 10;
}

.bj-brand small {
	color: #f1d06a;
	display: block;
	font-size: 10px;
	font-weight: 850;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.bj-brand h2 {
	color: #fff;
	font-size: clamp(24px, 3vw, 36px);
	line-height: 1;
	margin: 2px 0 0;
}

.bj-stats {
	display: flex;
	gap: 8px;
}

.bj-stats > div {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	min-width: 68px;
	padding: 6px 9px;
	text-align: center;
}

.bj-stats span {
	color: rgba(255, 255, 255, 0.62);
	display: block;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.bj-stats strong {
	color: #f4d572;
	display: block;
	font-size: 18px;
	line-height: 1.1;
}

.bj-table {
	display: grid;
	flex: 1;
	grid-template-rows: 1fr auto 1fr;
	min-height: 395px;
	padding: 12px 16px;
	position: relative;
	z-index: 2;
}

.bj-seat {
	align-items: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.bj-seat__header {
	align-items: center;
	display: flex;
	gap: 10px;
	margin: 6px 0;
}

.bj-seat__header span {
	color: rgba(255, 255, 255, 0.75);
	font-size: 13px;
	font-weight: 800;
}

.bj-seat__header strong {
	align-items: center;
	background: #f1d06a;
	border-radius: 999px;
	color: #152019;
	display: inline-flex;
	font-size: 14px;
	height: 31px;
	justify-content: center;
	min-width: 31px;
	padding: 0 7px;
}

.bj-hand {
	align-items: center;
	display: flex;
	justify-content: center;
	min-height: 122px;
	padding: 0 20px;
}

.bj-hand .bj-card {
	margin-left: -24px;
	transform: rotate(calc((var(--i, 0) - 1) * 2deg));
}

.bj-hand .bj-card:first-child {
	margin-left: 0;
}

.bj-empty-hand {
	align-items: center;
	border: 2px dashed rgba(255,255,255,.15);
	border-radius: 12px;
	color: rgba(255,255,255,.28);
	display: flex;
	font-size: 12px;
	font-weight: 850;
	height: 104px;
	justify-content: center;
	text-transform: uppercase;
	width: 150px;
}

.bj-card {
	aspect-ratio: 0.72;
	background: linear-gradient(145deg, #fff, #edf0f4);
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 9px;
	box-shadow: 0 8px 15px rgba(0,0,0,.32);
	color: #111318;
	height: 116px;
	position: relative;
	width: 82px;
}

.bj-card--red {
	color: #d52e45;
}

.bj-card--back {
	align-items: center;
	background:
		linear-gradient(45deg, rgba(255,255,255,.13) 25%, transparent 25%) 0 0 / 14px 14px,
		linear-gradient(-45deg, rgba(255,255,255,.13) 25%, transparent 25%) 0 0 / 14px 14px,
		#1b3b7a;
	border: 5px solid #f5f7fa;
	color: #f1d06a;
	display: flex;
	font-size: 16px;
	font-weight: 900;
	justify-content: center;
	letter-spacing: 0.08em;
}

.bj-card__corner {
	font-size: 16px;
	font-weight: 900;
	left: 6px;
	line-height: 0.82;
	position: absolute;
	top: 6px;
}

.bj-card__corner b,
.bj-card__corner small {
	display: block;
}

.bj-card__corner small {
	font-size: 13px;
	margin-top: 4px;
}

.bj-card__corner--bottom {
	bottom: 6px;
	left: auto;
	right: 6px;
	top: auto;
	transform: rotate(180deg);
}

.bj-card > strong {
	font-size: 40px;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
}

.bj-center {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 8px;
	justify-content: center;
}

.bj-table-logo {
	border: 2px solid rgba(241, 208, 106, 0.26);
	border-radius: 50%;
	display: flex;
	flex-direction: column;
	height: 88px;
	justify-content: center;
	text-align: center;
	width: 180px;
}

.bj-table-logo span {
	color: #f1d06a;
	font-size: 17px;
	font-weight: 950;
	letter-spacing: 0.08em;
}

.bj-table-logo strong,
.bj-table-logo small {
	color: rgba(255,255,255,.64);
	font-size: 10px;
}

.bj-message {
	background: rgba(2, 22, 17, 0.48);
	border: 1px solid rgba(255,255,255,.1);
	border-radius: 999px;
	color: rgba(255,255,255,.82);
	font-size: 12px;
	font-weight: 750;
	max-width: 420px;
	padding: 7px 14px;
	text-align: center;
}

.bj-message[data-kind="finished"] {
	border-color: rgba(241, 208, 106, 0.4);
	color: #f8e4a0;
}

.bj-controls {
	background: rgba(2, 22, 17, 0.7);
	border-top: 1px solid rgba(255,255,255,.1);
	padding: 10px 14px 11px;
	position: relative;
	z-index: 10;
}

.bj-bet-panel {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.bj-bet-label {
	color: rgba(255,255,255,.72);
	font-size: 12px;
}

.bj-bet-label strong {
	color: #f1d06a;
}

.bj-chip-row,
.bj-action-row {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	justify-content: center;
}

.bj-chip {
	align-items: center;
	background: #b73543;
	border: 4px dashed rgba(255,255,255,.55);
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-size: 11px;
	font-weight: 900;
	height: 43px;
	justify-content: center;
	width: 43px;
}

.bj-chip:nth-child(2) { background: #2e63aa; }
.bj-chip:nth-child(3) { background: #2d915f; }
.bj-chip:nth-child(4) { background: #171d2c; }
.bj-chip:nth-child(5) { background: #7a409b; }

.bj-chip.is-active {
	box-shadow: 0 0 0 4px #f1d06a;
	transform: translateY(-2px);
}

.bj-chip:disabled {
	cursor: not-allowed;
	opacity: .35;
}

.bj-action {
	background: rgba(255,255,255,.1);
	border: 1px solid rgba(255,255,255,.2);
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	font-size: 13px;
	font-weight: 850;
	min-height: 42px;
	padding: 8px 18px;
}

.bj-action:hover:not(:disabled) {
	background: rgba(255,255,255,.17);
	transform: translateY(-1px);
}

.bj-action:disabled {
	cursor: not-allowed;
	opacity: .35;
}

.bj-action--deal {
	background: linear-gradient(180deg, #f4d572, #dba62c);
	border-color: transparent;
	color: #152019;
}

.bj-controls > p {
	color: rgba(255,255,255,.4);
	font-size: 9px;
	margin: 7px 0 0;
	text-align: center;
}

@media (max-width: 700px) {
	.bj-game {
		border-radius: 10px;
		min-height: 486px;
	}

	.bj-toolbar {
		padding: 8px;
	}

	.bj-brand h2 {
		font-size: 24px;
	}

	.bj-stats {
		gap: 4px;
	}

	.bj-stats > div {
		min-width: 50px;
		padding: 4px 6px;
	}

	.bj-stats span {
		font-size: 8px;
	}

	.bj-stats strong {
		font-size: 15px;
	}

	.bj-table {
		min-height: 365px;
		padding: 8px;
	}

	.bj-card {
		height: 96px;
		width: 68px;
	}

	.bj-card > strong {
		font-size: 33px;
	}

	.bj-hand {
		min-height: 102px;
	}

	.bj-table-logo {
		height: 74px;
		width: 150px;
	}

	.bj-bet-panel {
		gap: 7px;
	}

	.bj-action {
		font-size: 11px;
		min-height: 37px;
		padding: 7px 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bj-action,
	.bj-chip {
		transition: none;
	}
}
