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

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

#swCanvas {
	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 links: oben links/rechts liegen die HUD-Tafeln,
   unten mittig die Aktionsknöpfe — unten links bleibt frei. */
.sw-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(46, 26, 8, 0.78);
	color: #ffe9b0;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
}
.sw-fs-btn:hover { background: rgba(80, 48, 16, 0.88); }

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

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

/* Statuszeile unter dem Tisch (eigene Klasse — .bg-status gehört zu Backgammon) */
.sw-status {
	text-align: center;
	min-height: 1.4em;
	margin-top: 0.8rem;
	color: var(--text-muted, #5c5344);
}

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