/* Pursuit — Spielseiten-Styles. Dunkle Dschungel-Arkade-Optik, bewusst
   abgesetzt vom hellen Site-Theme (wie bei Backgammon/Hokm/Chahar Barg).
   Canvas ist intern fest 684x540, skaliert nach außen responsiv — die
   Steuerung läuft über Tastatur/D-Pad-Buttons, keine Klick-Koordinaten
   auf dem Canvas, daher ist die CSS-Skalierung hier unproblematisch. */

.pu-hud {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: .6rem;
	max-width: 684px;
	margin: 0 auto .6rem;
	padding: .6rem 1.1rem;
	background: linear-gradient(180deg, #2b1d10, #1c1409);
	border: 2px solid #8a5a2b;
	border-radius: 14px;
	box-shadow: 0 8px 22px rgba(20, 14, 6, .35);
	font-family: var(--font-display);
	color: #ffe9a8;
	flex-wrap: wrap;
}
.pu-hud-item { display: flex; flex-direction: column; align-items: center; min-width: 70px; }
.pu-hud-label { font-size: .68rem; letter-spacing: .06em; color: #c9a15c; text-transform: uppercase; font-family: var(--font-body); }
.pu-hud-value { font-size: 1.35rem; line-height: 1.2; }
.pu-lives { display: flex; gap: .15rem; }
.pu-lives img { width: 26px; height: 26px; object-fit: contain; }

.pu-wrap {
	max-width: 684px;
	margin: 0 auto;
	position: relative;
	background: radial-gradient(ellipse at center, #16240f 0%, #0c1509 100%);
	border-radius: 16px;
	padding: 6px;
	box-shadow: 0 10px 30px rgba(10, 15, 6, .4);
}

#puCanvas {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	user-select: none;
}

.pu-fs-btn {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(240, 200, 110, .5);
	border-radius: 10px;
	background: rgba(20, 20, 14, .65);
	color: #ffe9b0;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}
.pu-fs-btn:hover { background: rgba(45, 60, 38, .85); }

.pu-wrap:fullscreen { display: flex; align-items: center; justify-content: center; background: #0c1509; padding: 0; }
.pu-wrap:fullscreen #puCanvas { width: auto; height: auto; max-width: 100vw; max-height: 100vh; border-radius: 0; }

.pu-wrap.pu-pseudo-fs {
	position: fixed; inset: 0; z-index: 9999; max-width: none; margin: 0; padding: 0;
	display: flex; align-items: center; justify-content: center; background: #0c1509;
}
.pu-wrap.pu-pseudo-fs #puCanvas { width: auto; height: auto; max-width: 100vw; max-height: 100vh; border-radius: 0; }
body.pu-noscroll { overflow: hidden; }

.pu-status { text-align: center; margin: .8rem 0 0; font-weight: 600; min-height: 1.4em; }

.pu-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.6rem;
	flex-wrap: wrap;
	margin-top: 1.1rem;
}

.pu-dpad {
	display: grid;
	grid-template-columns: repeat(3, 48px);
	grid-template-rows: repeat(3, 48px);
	gap: 4px;
}
.pu-dpad button {
	grid-column: var(--c); grid-row: var(--r);
	border: none; border-radius: 10px;
	background: var(--jungle);
	color: #fff;
	font-size: 1.3rem;
	cursor: pointer;
	box-shadow: 0 3px 0 var(--jungle-dark);
}
.pu-dpad button:active { transform: translateY(2px); box-shadow: none; }
.pu-dpad-up { --c: 2; --r: 1; }
.pu-dpad-left { --c: 1; --r: 2; }
.pu-dpad-right { --c: 3; --r: 2; }
.pu-dpad-down { --c: 2; --r: 3; }

.pu-side-btns { display: flex; flex-direction: column; gap: .5rem; }
.pu-side-btns button {
	width: 48px; height: 48px;
	border: none; border-radius: 10px;
	background: var(--jungle);
	color: #fff;
	font-size: 1.2rem;
	cursor: pointer;
	box-shadow: 0 3px 0 var(--jungle-dark);
}
.pu-side-btns button:active { transform: translateY(2px); box-shadow: none; }

.pu-legend { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: .3rem; }
.pu-legend-item { display: flex; align-items: center; gap: .4rem; font-weight: 600; }
.pu-legend-item img { width: 30px; height: 30px; object-fit: contain; }
