* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
html,
body {
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #0a0e1a;
	touch-action: none;
	-webkit-text-size-adjust: none;
	user-select: none;
	-webkit-user-select: none;
}
#app {
	position: fixed;
	inset: 0;
	touch-action: none;
}
canvas {
	display: block;
	touch-action: none;
}

:root {
	--hud-opacity: 0.65;
	/* Skala UI zależna od monitora: bazowa wysokość 940 px = 1.0.
         Wartość liczbową ustawia main.ts (innerHeight/940, clamp 1–2.2) —
         na 3440×1440 ~1.53, na typowym laptopie ~1.0, mobile zawsze 1. */
	--ui-scale: 1;
}
/* zoom skaluje cały układ px wewnątrz — jedna reguła zamiast
       przepisywania wszystkich font-size/width na jednostki viewportu */
#hud,
#overlay,
#pause-overlay,
#settings-overlay,
#help-overlay {
	zoom: var(--ui-scale);
}
@media (hover: none) and (pointer: coarse) {
	#hud,
	#overlay,
	#pause-overlay,
	#settings-overlay,
	#help-overlay {
		zoom: 1;
	}
}
#hud {
	position: fixed;
	inset: 0;
	pointer-events: none;
	font-family: "Segoe UI", system-ui, sans-serif;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
	z-index: 10;
}
.hud-panel {
	position: absolute;
	top: 16px;
	left: 16px;
	background: rgba(10, 20, 40, var(--hud-opacity, 0.65));
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 12px;
	padding: 12px 18px;
	min-width: 260px;
	backdrop-filter: blur(4px);
}
.hud-row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin: 4px 0;
	font-size: 15px;
}
.hud-label {
	opacity: 0.75;
}
#hud-money {
	color: #7cfc8a;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
#hud-flats {
	color: #ffd54a;
	font-weight: 700;
}
#hud-contract {
	color: #6ec6ff;
	font-weight: 600;
}
#hud-hp-bar {
	position: fixed;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 200px;
	height: 6px;
	background: rgba(10, 20, 40, 0.85);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-top: none;
	border-bottom-left-radius: 6px;
	border-bottom-right-radius: 6px;
	z-index: 12;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
#hud-hp-fill {
	height: 100%;
	width: 100%;
	background: #ef5350;
	transition: width 0.2s;
}
#hud-duty-bar {
	width: 100%;
	height: 6px;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 3px;
	margin-top: 4px;
	overflow: hidden;
}
#hud-duty-fill {
	height: 100%;
	width: 0%;
	background: #7cfc8a;
	border-radius: 3px;
	transition:
		width 0.3s,
		background 0.3s;
}
#hud-stamina-bar {
	width: 100%;
	height: 6px;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 3px;
	margin-top: 2px;
	overflow: hidden;
}
#hud-stamina-fill {
	height: 100%;
	width: 100%;
	background: #42a5f5;
	border-radius: 3px;
	transition:
		width 0.15s,
		background 0.3s;
}
#hud-logo {
	position: absolute;
	bottom: 14px;
	right: 16px;
	height: 54px;
	opacity: 0.9;
	pointer-events: none;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}
#pause-overlay {
	position: fixed;
	inset: 0;
	z-index: 25;
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	background: rgba(5, 10, 25, 0.7);
	color: #fff;
	font-family: "Segoe UI", system-ui, sans-serif;
}
#pause-logo {
	width: min(38vw, 460px);
	max-height: 24vh;
	height: auto;
	object-fit: contain;
	margin-bottom: 10px;
}
.pause-actions {
	display: flex;
	gap: 12px;
	margin-top: 18px;
}
.pause-actions button {
	padding: 12px 28px;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	background: rgba(10, 20, 40, 0.75);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 30px;
	cursor: pointer;
	pointer-events: auto;
	transition:
		transform 0.15s,
		background 0.15s;
}
.pause-actions button:hover {
	background: rgba(30, 50, 90, 0.95);
	transform: scale(1.05);
}
#pause-overlay.visible {
	display: flex;
}
#pause-overlay h2 {
	font-size: 42px;
	letter-spacing: 4px;
}
#pause-overlay p {
	margin-top: 10px;
	font-size: 15px;
	opacity: 0.8;
}
/* mobile: napis na dole, wyśrodkowany, w dwóch liniach */
.pause-mobile {
	display: none;
	position: absolute;
	bottom: 48px;
	left: 0;
	right: 0;
	text-align: center;
}
.pause-mobile p {
	margin: 2px 0;
	font-size: 14px;
	opacity: 0.9;
}
.pause-mobile .sub {
	font-size: 11px;
	opacity: 0.6;
}
.slot-info {
	width: 190px;
	text-align: left;
	font-size: 12px;
	opacity: 0.8;
	font-variant-numeric: tabular-nums;
}
.slot-info.empty {
	opacity: 0.4;
	font-style: italic;
}
#hud-b2b-row {
	display: none;
	margin-top: 6px;
}
#hud-b2b-row.active {
	display: block;
}

/* Top Bar with Settings and Help */
#hud-top-bar {
	position: absolute;
	top: 16px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 11;
	pointer-events: auto;
}
#hud-settings-btn,
#hud-help-btn,
#hud-pause-btn {
	background: rgba(10, 20, 40, var(--hud-opacity, 0.65));
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 24px;
	padding: 8px 18px;
	font-size: 13px;
	color: #fff;
	cursor: pointer;
	font-weight: 600;
	backdrop-filter: blur(4px);
	transition: background 0.15s;
}
#hud-settings-btn:hover,
#hud-help-btn:hover,
#hud-pause-btn:hover {
	background: rgba(30, 50, 90, 0.8);
}

/* Mobile Controls Overlay */
#mobile-controls {
	display: none;
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 12;
	user-select: none;
	-webkit-user-select: none;
}

@media (hover: none) and (pointer: coarse), (max-width: 1024px) {
	#mobile-controls {
		display: block;
	}
	#hint {
		display: none; /* Ukryj opis klawiszy na telefonie */
	}
	/* dashboard do ~połowy szerokości ekranu (lewa strona) */
	.hud-panel {
		transform: scale(0.7);
		transform-origin: top left;
		top: 8px;
		left: 8px;
	}
	/* prawa kolumna: karta celu (mieszkanie + miasto + cena) u góry.
         Stała szerokość + skala 0.85 (origin top-right) → wspólna prawa
         krawędź 8px, jak lewy panel od lewej. 2×ID (#hud .hud-goal) bije
         bazowe .hud-goal (top/right 16px) stojące DALEJ w pliku. */
	#hud .hud-goal {
		width: 190px;
		transform: scale(0.85);
		transform-origin: top right;
		top: 8px;
		right: 8px;
	}
	/* obła pigułka pod kartą, z odstępem: ⚙ Ustawienia | ❓ Pomoc | ⏸.
         Szerokość = widoczna szerokość karty (190×0.85 ≈ 162px), wspólna
         prawa krawędź 8px. Bez skalowania, żeby krawędzie były ostre. */
	#hud #hud-top-bar {
		top: 104px;
		left: auto;
		right: 8px;
		width: 162px;
		transform: none;
		display: flex;
		justify-content: stretch;
		gap: 0;
		background: rgba(10, 20, 40, var(--hud-opacity, 0.65));
		border: 1px solid rgba(255, 255, 255, 0.15);
		border-radius: 999px;
		overflow: hidden;
		backdrop-filter: blur(4px);
	}
	#hud-settings-btn,
	#hud-help-btn,
	#hud-pause-btn {
		min-width: 0;
		background: transparent;
		border: none;
		border-radius: 0;
		backdrop-filter: none;
		font-size: 9px;
		padding: 7px 2px;
		text-align: center;
		white-space: nowrap;
	}
	/* Ustawienia i Pomoc dzielą przestrzeń po połowie; pauza to wąski
	   stały segment na końcu — równe tercje ściskały teksty, a ikonie
	   pauzy wystarczy kwadrat (pomysł Bartka, 2026-07-12) */
	#hud-settings-btn,
	#hud-help-btn {
		flex: 1 1 0;
	}
	#hud-pause-btn {
		flex: 0 0 30px;
	}
	/* kreska-separator z lekkim 3D: ciemna linia + jasny highlight obok
	   (grawerowany rowek) — wizualnie oddziela segmenty pigułki */
	#hud-help-btn,
	#hud-pause-btn {
		border-left: 1px solid rgba(0, 0, 0, 0.45);
		box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.18);
	}
	/* na telefonie bez literek klawiszy */
	.key-hint {
		display: none;
	}
	/* pauza mobile: napis na dole zamiast desktopowego */
	.pause-desktop {
		display: none;
	}
	.pause-mobile {
		display: block;
	}
	/* 2×ID dla wyższej specyficzności: bazowa reguła "#joystick-base
	   { display: none }" stoi DALEJ w pliku i przy równej specyficzności
	   wygrywała kaskadą — joystick nigdy się nie pokazywał (regresja po
	   ekstrakcji CSS z index.html: media query trafił przed reguły bazowe) */
	#joystick-zone #joystick-base {
		display: block;
		left: 40px;
		bottom: 40px;
		transform: none;
	}
	.launcher-actions {
		flex-direction: column;
		align-items: center;
		width: 100%;
		max-width: 320px;
		margin: 10px auto;
	}
	#overlay-start-btn {
		width: 100%;
		text-align: center;
		margin-bottom: 8px;
	}
	.launcher-sub-actions {
		display: flex;
		gap: 10px;
		width: 100%;
		justify-content: center;
	}
	.launcher-sub-actions button,
	#overlay-help-btn {
		flex: 1;
		text-align: center;
		padding: 12px 10px;
		font-size: 14px;
		white-space: nowrap;
		border-radius: 20px;
	}
	/* napisy na dole maleńkie — muszą się mieścić na ekranie w całości */
	.toast {
		font-size: 10px;
		padding: 5px 10px;
		white-space: normal;
		max-width: 90vw;
		text-align: center;
		line-height: 1.3;
	}
	#toasts {
		bottom: 168px;
		max-width: 92vw;
	}
	.mobile-btn {
		font-size: 11px;
	}
	#mbtn-jump {
		font-size: 10px;
	}
	#overlay p {
		font-size: 11px;
		padding: 0 10px;
	}
	/* tablet/landscape: logo połowa ekranu, ale nie wyżej niż 1/3 wysokości */
	#overlay-logo {
		width: 50vw;
		max-height: 32vh;
		height: auto;
	}
	#hud-logo {
		height: 34px;
		opacity: 0.7;
	}
}
/* telefon (wąski ekran): logo duże, ale całość MUSI zmieścić się bez scrolla —
       logo ograniczone i szerokością, i wysokością (28dvh), reszta ściśnięta */
@media (hover: none) and (pointer: coarse) and (max-width: 600px) {
	#overlay-logo {
		width: auto;
		max-width: 94vw;
		max-height: 26vh;
		max-height: 28dvh;
		height: auto;
		margin-top: 0; /* logo pod samą górą ekranu */
	}
	.launcher-actions {
		margin: 10px auto;
	}
	.disclaimer {
		font-size: 9px;
		line-height: 1.35;
		padding-top: 8px;
	}
}

#joystick-zone {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 50%;
	height: 50%;
	pointer-events: auto;
}

#joystick-base {
	position: absolute;
	width: 120px;
	height: 120px;
	background: rgba(255, 255, 255, 0.08);
	border: 2px solid rgba(255, 255, 255, 0.15);
	border-radius: 50%;
	display: none;
	pointer-events: none;
}

#joystick-stick {
	position: absolute;
	width: 60px;
	height: 60px;
	background: rgba(255, 255, 255, 0.3);
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

#mobile-actions {
	position: absolute;
	bottom: 24px;
	right: 24px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	pointer-events: none;
}

.mobile-btn {
	pointer-events: auto;
	background: rgba(10, 20, 40, 0.75);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #fff;
	font-size: 18px;
	font-weight: bold;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	user-select: none;
	-webkit-user-select: none;
	touch-action: manipulation;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
	transition:
		background 0.1s,
		transform 0.1s;
}

.mobile-btn:active {
	background: rgba(124, 252, 138, 0.5);
	border-color: #7cfc8a;
	transform: scale(0.92);
}

#mobile-dpad {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.mbtn-row {
	display: flex;
	gap: 44px;
}

#mobile-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}

.mbtn-row-actions {
	display: flex;
	gap: 12px;
}

.action-btn {
	width: 70px;
	height: 60px;
	border-radius: 12px;
	font-size: 14px;
}

#mbtn-jump {
	width: 152px;
	height: 54px;
	border-radius: 12px;
	font-size: 15px;
	background: rgba(255, 213, 74, 0.75);
	color: #1a1a1a;
	border-color: rgba(255, 213, 74, 0.5);
}

#mbtn-jump:active {
	background: rgba(255, 213, 74, 0.95);
	border-color: #ffd54a;
}

.setting-group {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	text-align: left;
}
.setting-group h4 {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 12px;
	opacity: 0.6;
}

.setting-row select {
	flex: 1;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #fff;
	padding: 4px 8px;
	border-radius: 4px;
}

#settings-overlay {
	position: fixed;
	inset: 0;
	z-index: 30;
	display: none;
	align-items: flex-start;
	justify-content: center;
	background: rgba(5, 10, 25, 0.85);
	color: #fff;
	text-align: center;
	font-family: "Segoe UI", system-ui, sans-serif;
	overflow-y: auto;
	padding: 16px;
}
#settings-overlay.visible {
	display: flex;
}
#settings-panel {
	margin: auto;
}
/* jak #help-panel: width 100% + max-width → na telefonie panel mieści się
       w ekranie z marginesami (padding overlaya 16px); min-width 380px wypychał
       ramkę poza wąski ekran */
#settings-panel {
	background: rgba(10, 20, 40, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 16px;
	padding: 24px 32px;
	max-width: 720px;
	width: 100%;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}
@media (max-width: 700px) {
	#settings-panel {
		padding: 16px 14px;
	}
	/* belka tytułowa ma ujemne marginesy równe paddingowi panelu (desktop
         -24/-32) — przy zmniejszonym paddingu musi zmaleć, inaczej wystaje z ramki */
	#settings-panel .modal-titlebar {
		margin: -16px -14px 12px;
	}
	.slot-row {
		flex-wrap: wrap;
	}
	.slot-row .slot-info {
		width: auto;
	}
	/* telefon: przyciski slotów tylko z ikonami (💾/📂) — napisy się nie mieszczą */
	.slot-btn-label {
		display: none;
	}
}
#settings-panel h2 {
	font-size: 24px;
	margin-bottom: 16px;
}
.setting-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 12px 0;
}
.setting-row label {
	width: 130px;
	text-align: right;
	font-size: 14px;
	opacity: 0.85;
}
.setting-row input[type="range"] {
	flex: 1;
	height: 6px;
	-webkit-appearance: none;
	appearance: none;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 3px;
	outline: none;
}
.setting-row input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 16px;
	height: 16px;
	background: #7cfc8a;
	border-radius: 50%;
	cursor: pointer;
}
.setting-row .val {
	width: 40px;
	font-variant-numeric: tabular-nums;
	font-size: 13px;
	opacity: 0.8;
}
#settings-mute {
	margin: 8px auto 16px;
	padding: 8px 20px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #fff;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
}
#settings-mute.active {
	background: #ef5350;
	border-color: #ef5350;
}
.settings-slots {
	margin: 8px 0;
}
.slot-row {
	display: flex;
	align-items: center;
	gap: 8px;
	justify-content: center;
	margin: 6px 0;
}
.slot-row span {
	width: 60px;
	text-align: right;
	font-size: 13px;
	opacity: 0.8;
}
.slot-row button,
#settings-reset {
	padding: 7px 14px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #fff;
	border-radius: 8px;
	cursor: pointer;
	font-size: 13px;
}
.slot-row button:hover,
#settings-reset:hover {
	background: rgba(255, 255, 255, 0.2);
}
.slot-row button.slot-delete-btn {
	padding: 7px 10px;
	background: rgba(239, 83, 80, 0.15);
	border: 1px solid rgba(239, 83, 80, 0.35);
	color: #ff8a80;
}
.slot-row button.slot-delete-btn:hover {
	background: rgba(239, 83, 80, 0.4);
}
#settings-reset {
	display: block;
	margin: 4px auto 10px;
	border-color: rgba(239, 83, 80, 0.6);
}
#settings-close {
	display: block;
	margin: 12px auto 0;
	padding: 10px 24px;
	background: #ffd54a;
	border: none;
	color: #1a1a1a;
	border-radius: 8px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 700;
}
#damage-flash {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 15;
	background: radial-gradient(
		ellipse at center,
		transparent 42%,
		rgba(220, 30, 30, 0.55) 100%
	);
	opacity: 0;
	transition: opacity 0.12s ease-out;
}
#damage-flash.active {
	opacity: 1;
}
#hud-b2b-bar {
	width: 100%;
	height: 6px;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 3px;
	margin-top: 4px;
	overflow: hidden;
}
#hud-b2b-fill {
	height: 100%;
	width: 0%;
	background: #ff8800;
	border-radius: 3px;
	transition: width 0.3s;
}

.hud-goal {
	position: absolute;
	top: 16px;
	right: 16px;
	text-align: right;
	background: rgba(10, 20, 40, var(--hud-opacity, 0.65));
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 12px;
	padding: 12px 18px;
}
.hud-goal h3 {
	font-size: 13px;
	opacity: 0.75;
	font-weight: 600;
}
.hud-goal .big {
	font-size: 22px;
	font-weight: 800;
	color: #ffd54a;
}
.hud-goal .next {
	font-size: 12px;
	opacity: 0.85;
	margin-top: 4px;
}

#toasts {
	position: absolute;
	bottom: 90px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}
.toast {
	background: rgba(20, 40, 20, 0.85);
	border: 1px solid #7cfc8a;
	padding: 10px 22px;
	border-radius: 24px;
	font-size: 16px;
	font-weight: 600;
	animation:
		toast-in 0.3s ease,
		toast-out 0.5s ease 3.2s forwards;
	white-space: nowrap;
}
.toast.gold {
	border-color: #ffd54a;
	background: rgba(60, 45, 5, 0.88);
}
.toast.red {
	border-color: #ef5350;
	background: rgba(60, 10, 10, 0.88);
}
@keyframes toast-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
}
@keyframes toast-out {
	to {
		opacity: 0;
		transform: translateY(-10px);
	}
}

#hint {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 13px;
	opacity: 0.75;
	background: rgba(0, 0, 0, 0.45);
	padding: 8px 16px;
	border-radius: 8px;
	white-space: nowrap;
}

#overlay {
	position: fixed;
	inset: 0;
	z-index: 20;
	display: flex;
	flex-direction: column;
	align-items: center;
	/* "safe center": gdy treść wyższa niż ekran, scroll zaczyna się od GÓRY
         (zwykłe center wypychało górę poza viewport — logo "za nisko") */
	justify-content: center;
	justify-content: safe center;
	background: rgba(5, 10, 25, 0.82);
	color: #fff;
	text-align: center;
	font-family: "Segoe UI", system-ui, sans-serif;
	cursor: pointer;
	overflow-y: auto;
	padding: 24px 0;
}
/* logo duże i WYSOKO: stały margines od góry zamiast auto-centrowania;
       disclaimer trzyma dół przez margin-top:auto, więc reszta siedzi u góry */
#overlay-logo {
	width: min(60vw, 880px);
	height: auto;
	max-height: 44vh;
	object-fit: contain;
	margin: 2vh auto 6px;
	image-rendering: auto;
}
#overlay h1 {
	font-size: 34px;
	margin-bottom: 4px;
	letter-spacing: 1px;
}
#overlay h1 span {
	color: #7cfc8a;
}
#overlay p {
	font-size: 14px;
	opacity: 0.85;
	margin: 2px 0;
	max-width: 900px;
	line-height: 1.4;
}
#overlay .start {
	margin-top: 14px;
	font-size: 18px;
	font-weight: 700;
	color: #ffd54a;
	animation: pulse 1.4s infinite;
}
#overlay.hidden {
	display: none;
}
@keyframes pulse {
	50% {
		opacity: 0.5;
	}
}
#overlay.victory h1 {
	color: #ffd54a;
	font-size: 52px;
}
.ov-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(300px, 430px));
	gap: 10px;
	justify-content: center;
	margin-top: 10px;
	max-width: 900px;
}
@media (max-width: 700px) {
	.ov-grid {
		grid-template-columns: 1fr;
	}
}
.ov-section {
	text-align: left;
	background: rgba(20, 30, 50, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	padding: 8px 14px;
}
.ov-section h3 {
	font-size: 12px;
	letter-spacing: 1.5px;
	opacity: 0.7;
	margin-bottom: 4px;
	text-transform: uppercase;
}
.ov-section ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.ov-section li {
	font-size: 12.5px;
	line-height: 1.55;
	display: flex;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}
.ov-section li:last-child {
	border-bottom: none;
}
.ov-section .v {
	color: #ffd54a;
	font-weight: 600;
}
.ov-section .green {
	color: #7cfc8a;
	font-weight: 600;
}
.ov-section .blue {
	color: #6ec6ff;
	font-weight: 600;
}
.ov-section .orange {
	color: #ff8800;
	font-weight: 600;
}
.ov-section .red {
	color: #ef5350;
	font-weight: 600;
}

/* Launcher layout inside overlay start screen */
.launcher-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
	padding: 0 16px;
	/* logo+przyciski wycentrowane (margin:auto na logo), disclaimer na dole;
         dvh = realnie widoczny ekran na mobile (100vh wlicza pasek adresu → scroll) */
	min-height: calc(100vh - 48px);
	min-height: calc(100dvh - 48px);
}

#overlay-start-btn {
	display: inline-block;
	margin: 16px auto;
	padding: 14px 48px;
	font-size: 20px;
	font-weight: 800;
	color: #1a1a1a;
	background: #ffd54a;
	border: none;
	border-radius: 30px;
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(255, 213, 74, 0.4);
	transition:
		transform 0.15s,
		background 0.15s;
}
#overlay-start-btn:hover {
	background: #ffe070;
	transform: scale(1.05);
}
#overlay-start-btn:active {
	transform: scale(0.98);
}

#launcher-settings {
	margin-top: 24px;
	background: rgba(10, 20, 40, 0.8);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 16px;
	padding: 20px 24px;
	max-width: 780px;
	width: 100%;
	text-align: left;
}
#launcher-settings h3 {
	font-size: 13px;
	letter-spacing: 2px;
	margin-bottom: 16px;
	opacity: 0.8;
	color: #6ec6ff;
	text-transform: uppercase;
	text-align: center;
}
.launcher-row {
	display: flex;
	gap: 32px;
}
@media (max-width: 768px) {
	.launcher-row {
		flex-direction: column;
		gap: 20px;
	}
}
.launcher-col {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.launcher-btn {
	padding: 7px 14px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #fff;
	border-radius: 8px;
	cursor: pointer;
	font-size: 13px;
	transition: background 0.15s;
}
.launcher-btn:hover {
	background: rgba(255, 255, 255, 0.2);
}
.launcher-btn.danger {
	border-color: rgba(239, 83, 80, 0.6);
}
.launcher-btn.danger:hover {
	background: rgba(239, 83, 80, 0.2);
}

/* Help Overlay Panel */
#help-overlay {
	position: fixed;
	inset: 0;
	z-index: 35;
	display: none;
	/* flex-start + margin:auto na panelu — panel wyższy niż ekran scrolluje
         się OD GÓRY (align-items:center ucinał górę na telefonie) */
	align-items: flex-start;
	justify-content: center;
	background: rgba(5, 10, 25, 0.93);
	color: #fff;
	font-family: "Segoe UI", system-ui, sans-serif;
	overflow-y: auto;
	padding: 16px;
}
#help-overlay.visible {
	display: flex;
}
#help-panel {
	background: rgba(10, 20, 40, 0.96);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 16px;
	padding: 24px 32px;
	max-width: 960px;
	width: 100%;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
	text-align: center;
	margin: auto;
}
.panel-logo {
	display: block;
	margin: 0 auto 10px;
	height: 60px;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}
/* beleczka tytułowa modali (Ustawienia / Pomoc) z X w prawym rogu */
.modal-titlebar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: -24px -32px 14px;
	padding: 8px 10px 8px 16px;
	background: rgba(255, 255, 255, 0.07);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 16px 16px 0 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1px;
	text-align: left;
}
.modal-x {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
	opacity: 0.65;
	border-radius: 6px;
	transition:
		opacity 0.15s,
		background 0.15s;
}
.modal-x:hover {
	opacity: 1;
	background: rgba(239, 83, 80, 0.35);
}
.disclaimer {
	font-size: 10px;
	line-height: 1.45;
	opacity: 0.55;
	max-width: 680px;
	text-align: center;
	/* margin-top:auto + auto na logo = treść wycentrowana, disclaimer na dole */
	margin: auto auto 0;
	padding-top: 16px;
}
.version-line {
	font-size: 5px;
	color: #556070;
	margin: 6px auto 0;
	letter-spacing: 0.5px;
}
#help-panel h2 {
	font-size: 28px;
	margin-bottom: 16px;
	color: #ffd54a;
}
#help-close-btn {
	display: block;
	margin: 20px auto 0;
	padding: 10px 24px;
	background: #ffd54a;
	border: none;
	color: #1a1a1a;
	border-radius: 8px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 700;
	transition: background 0.15s;
}
#help-close-btn:hover {
	background: #ffe070;
}

/* Launcher Actions: Start na górze, pod nim Ustawienia + Pomoc */
.launcher-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin: 16px auto;
	justify-content: center;
}
#overlay-start-btn {
	margin: 0;
}
.launcher-sub-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
}
#overlay-settings-btn {
	display: inline-block;
	padding: 14px 32px;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	background: rgba(10, 20, 40, 0.75);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 30px;
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
	transition:
		transform 0.15s,
		background 0.15s;
	pointer-events: auto;
}
#overlay-settings-btn:hover {
	background: rgba(30, 50, 90, 0.95);
	transform: scale(1.05);
}
#overlay-settings-btn:active {
	transform: scale(0.98);
}
#overlay-help-btn {
	display: inline-block;
	padding: 14px 32px;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	background: rgba(10, 20, 40, 0.75);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 30px;
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
	transition:
		transform 0.15s,
		background 0.15s;
	pointer-events: auto;
}
#overlay-help-btn:hover {
	background: rgba(30, 50, 90, 0.95);
	transform: scale(1.05);
}
#overlay-help-btn:active {
	transform: scale(0.98);
}
