/* Blackjack — Spielseiten-Styles. Canvas intern fest 1060×720, responsiv per
   CSS skaliert; Klick-Koordinaten werden in blackjack.js über
   getBoundingClientRect() zurückgerechnet (Hokm-/Offiziersskat-Muster). */

.bj-wrap {
	max-width: 1060px;
	margin: 0 auto;
	position: relative;
}

#bjCanvas {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(20, 35, 25, 0.35);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	user-select: none;
}

/* Vollbild-Knopf unten links (oben liegen Ablage/Schlitten und die HUD-Tafeln,
   unten mittig sitzt der Spieler — unten links bleibt frei) */
.bj-fs-btn {
	position: absolute;
	bottom: 10px;
	left: 10px;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(240, 200, 110, 0.5);
	border-radius: 10px;
	background: rgba(40, 20, 6, 0.75);
	color: #ffe9b0;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
}
.bj-fs-btn:hover { background: rgba(70, 40, 14, 0.85); }

.bj-bar {
	max-width: 1060px;
	margin: 0.6rem auto 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.bj-bar .bg-status { margin: 0; flex: 1; }
.bj-leave { flex-shrink: 0; }

/* Echtes Vollbild: Canvas mittig, Seitenverhältnis erhalten */
.bj-wrap:fullscreen {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #0c2418;
}
.bj-wrap:fullscreen #bjCanvas {
	width: auto;
	height: auto;
	max-width: 100vw;
	max-height: 100vh;
	border-radius: 0;
}

/* Pseudo-Vollbild für iOS (keine Fullscreen-API): fixiertes Overlay */
.bj-wrap.bj-pseudo-fs {
	position: fixed;
	inset: 0;
	z-index: 9999;
	max-width: none;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #0c2418;
}
.bj-wrap.bj-pseudo-fs #bjCanvas {
	width: auto;
	height: auto;
	max-width: 100vw;
	max-height: 100vh;
	border-radius: 0;
}
body.bj-noscroll { overflow: hidden; }
