/* Bisca — Spielseiten-Styles. Canvas intern fest 1060×720, responsiv per CSS
   skaliert; die Klick-Koordinaten rechnet bisca.js über getBoundingClientRect()
   zurück (Muster Offiziersskat/Hokm/Schwimmen). */

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

#bsCanvas {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 14px;
	box-shadow: 0 14px 36px rgba(45, 26, 8, 0.45);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	user-select: none;
}

/* Vollbild-Knopf unten rechts: unten links sitzt der Kartenspiegel-Knopf,
   oben links und rechts liegen die HUD-Tafeln. */
.bs-fs-btn {
	position: absolute;
	bottom: 10px;
	right: 10px;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(240, 200, 110, 0.5);
	border-radius: 10px;
	background: rgba(46, 26, 8, 0.78);
	color: #ffe9b0;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
}
.bs-fs-btn:hover { background: rgba(80, 48, 16, 0.88); }

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

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

/* Statuszeile unter dem Tisch */
.bs-status {
	text-align: center;
	min-height: 1.4em;
	margin-top: 0.8rem;
	color: var(--text-muted, #5c5344);
}

/* Ergebniszeile unter dem Tisch */
.bs-ergebnis {
	text-align: center;
	font-weight: 600;
	min-height: 1.5em;
	margin-top: 0.8rem;
}

/* Kleine Kartenrang-Tabelle in den Spielregeln */
.bs-rangfolge {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0.8rem 0;
	padding: 0;
	list-style: none;
}
.bs-rangfolge li {
	background: var(--sand, #fdf3dc);
	border: 1px solid rgba(140, 100, 40, 0.28);
	border-radius: 10px;
	padding: 0.45rem 0.7rem;
	font-weight: 600;
	white-space: nowrap;
}
.bs-rangfolge li span {
	display: block;
	font-weight: 400;
	font-size: 0.82rem;
	opacity: 0.75;
}
