/* ESW: mapy CS2 z calloutami. Ladowane tylko na stronie narzedzia. */
.esw-cm {
	--c-card: #20212b;
	--c-line: rgba(255, 255, 255, 0.1);
	--c-muted: #a3a6b4;
	--c-t: #ffb35c;
	--c-ct: #6cb8ff;
	--c-m: #c9c3ff;
	padding: 22px 0 10px;
	background: #14151b;
	border-bottom: 1px solid var(--c-line);
	color: #e8e9ee;
}
.esw-cm__wrap {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 20px;
}
.esw-cm button {
	font-family: inherit;
	cursor: pointer;
}
.esw-cm button:focus-visible,
.esw-cm input:focus-visible {
	outline: 2px solid var(--esw-accent-soft, #a594ff);
	outline-offset: 2px;
}
.esw-cm .google-auto-placed,
.esw-cm ins.adsbygoogle {
	display: none !important;
}
.esw-cm [hidden] {
	display: none !important;
}

/* wybor mapy */
.esw-cm__maps {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
}
.esw-cm__maps button {
	padding: 8px 14px;
	background: var(--c-card);
	border: 1px solid var(--c-line);
	border-radius: 6px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}
.esw-cm__maps button.is-on {
	background: var(--esw-accent, #5c39f2);
	border-color: var(--esw-accent, #5c39f2);
}

.esw-cm__app {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 20px;
	align-items: start;
}

/* mapa */
.esw-cm__stage {
	position: relative;
	max-width: 860px;
	width: 100%;
	margin: 0 auto;
	aspect-ratio: 1 / 1;
	background: #14151b;
	border: 1px solid var(--c-line);
	border-top: 2px solid var(--esw-accent, #5c39f2);
	border-radius: 8px;
	overflow: hidden;
}
.esw-cm__stage img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.esw-cm__labels {
	position: absolute;
	inset: 0;
}
.esw-cm__labels.is-quiz {
	cursor: crosshair;
}
.esw-cm__lbl {
	position: absolute;
	transform: translate(-50%, -50%);
	padding: 2px 6px;
	background: rgba(12, 12, 20, 0.86);
	border: 0;
	border-left: 3px solid var(--c-m);
	border-radius: 3px;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.25;
	white-space: nowrap;
	transition: opacity 0.15s;
}
.esw-cm__lbl.s-t {
	border-left-color: var(--c-t);
}
.esw-cm__lbl.s-ct {
	border-left-color: var(--c-ct);
}
.esw-cm__lbl.is-off {
	opacity: 0.12;
	pointer-events: none;
}
.esw-cm__lbl.is-hit {
	background: var(--esw-accent, #5c39f2);
	z-index: 2;
}
.esw-cm__lbl.is-dot {
	width: 14px;
	height: 14px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--c-m);
}
.esw-cm__lbl.is-dot.s-t {
	background: var(--c-t);
}
.esw-cm__lbl.is-dot.s-ct {
	background: var(--c-ct);
}
.esw-cm__lbl.is-dot span {
	display: none;
}
.esw-cm__labels.is-quiz .esw-cm__lbl {
	opacity: 0;
	pointer-events: none;
}
.esw-cm__labels.is-quiz .esw-cm__lbl.is-good,
.esw-cm__labels.is-quiz .esw-cm__lbl.is-bad {
	opacity: 1;
	z-index: 3;
}
.esw-cm__lbl.is-good {
	background: #1f7a4d;
}
.esw-cm__lbl.is-bad {
	background: #a33a3a;
}
.esw-cm__lbl.is-ping {
	animation: esw-cm-ping 1.1s ease-out 2;
	z-index: 3;
}
@keyframes esw-cm-ping {
	0% {
		box-shadow: 0 0 0 0 rgba(165, 148, 255, 0.9);
	}
	100% {
		box-shadow: 0 0 0 14px rgba(165, 148, 255, 0);
	}
}
.esw-cm__quizbar {
	position: absolute;
	left: 50%;
	top: 12px;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: calc(100% - 24px);
	padding: 10px 16px;
	background: rgba(12, 12, 20, 0.94);
	border: 1px solid var(--esw-accent, #5c39f2);
	border-radius: 8px;
	font-size: 15px;
	z-index: 5;
}
.esw-cm__quizbar strong {
	color: #fff;
}
.esw-cm__quizbar strong.ok {
	color: #6fdc9d;
}
.esw-cm__quizbar strong.bad {
	color: #ff8a8a;
}
.esw-cm__quizbar span {
	padding: 2px 8px;
	background: #2b2552;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 700;
}
.esw-cm__quizbar button {
	padding: 5px 10px;
	background: var(--esw-accent, #5c39f2);
	border: 0;
	border-radius: 5px;
	color: #fff;
	font-weight: 700;
}

/* panel */
.esw-cm__panel {
	padding: 16px 18px;
	background: var(--c-card);
	border: 1px solid var(--c-line);
	border-radius: 8px;
}
.esw-cm .esw-cm__h {
	margin: 0 0 12px;
	font-size: 19px;
	color: #fff;
}
.esw-cm__search input {
	box-sizing: border-box;
	width: 100%;
	margin-bottom: 10px;
	padding: 9px 12px;
	background: #14151b;
	border: 1px solid var(--c-line);
	border-radius: 6px;
	color: #fff;
	font-size: 15px;
}
.esw-cm__filter {
	display: flex;
	margin-bottom: 8px;
	background: #2a2b37;
	border: 1px solid var(--c-line);
	border-radius: 6px;
	overflow: hidden;
}
.esw-cm__filter button {
	flex: 1;
	padding: 7px 6px;
	background: none;
	border: 0;
	color: #e8e9ee;
	font-size: 13px;
	font-weight: 600;
}
.esw-cm__filter button.is-on {
	background: var(--esw-accent, #5c39f2);
	color: #fff;
}
.esw-cm__modes {
	display: grid;
	gap: 8px;
	margin: 12px 0;
}
.esw-cm__btn {
	padding: 9px 12px;
	background: #2a2b37;
	border: 1px solid var(--c-line);
	border-radius: 6px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}
.esw-cm__btn--main {
	background: var(--esw-accent, #5c39f2);
	border-color: var(--esw-accent, #5c39f2);
}
.esw-cm__btn[aria-pressed="true"] {
	border-color: var(--esw-accent-soft, #a594ff);
}
.esw-cm__note {
	margin: 0 0 10px;
	padding: 8px 10px;
	background: rgba(255, 198, 107, 0.1);
	border-left: 3px solid #ffc66b;
	font-size: 13px;
	line-height: 1.4;
}
.esw-cm__list {
	max-height: 380px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-y: auto;
	scrollbar-width: thin;
}
.esw-cm__list li {
	margin: 0;
}
.esw-cm__list button {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 6px 4px;
	background: none;
	border: 0;
	border-bottom: 1px solid var(--c-line);
	color: #e8e9ee;
	font-size: 14px;
	text-align: left;
}
.esw-cm__list button:hover {
	background: rgba(255, 255, 255, 0.04);
}
.esw-cm__list b {
	flex: none;
	width: 26px;
	padding: 1px 0;
	border-radius: 3px;
	background: rgba(201, 195, 255, 0.18);
	color: var(--c-m);
	font-size: 10px;
	text-align: center;
}
.esw-cm__list .s-t b {
	background: rgba(255, 179, 92, 0.16);
	color: var(--c-t);
}
.esw-cm__list .s-ct b {
	background: rgba(108, 184, 255, 0.16);
	color: var(--c-ct);
}
.esw-cm__list em {
	color: var(--c-muted);
	font-style: normal;
}
.esw-cm__list small {
	margin-left: auto;
	color: var(--c-muted);
	font-weight: 700;
}
.esw-cm__list .is-hit button {
	background: rgba(92, 57, 242, 0.22);
}
.esw-cm__legend {
	margin: 10px 0 0;
	font-size: 12px;
	line-height: 1.6;
	color: var(--c-muted);
}
.esw-cm__legend span {
	display: inline-block;
	min-width: 22px;
	margin-left: 6px;
	padding: 0 4px;
	border-radius: 3px;
	font-weight: 700;
	text-align: center;
}
.esw-cm__legend span:first-child {
	margin-left: 0;
}
.esw-cm__legend .t {
	color: var(--c-t);
	background: rgba(255, 179, 92, 0.16);
}
.esw-cm__legend .ct {
	color: var(--c-ct);
	background: rgba(108, 184, 255, 0.16);
}
.esw-cm__legend .m {
	color: var(--c-m);
	background: rgba(201, 195, 255, 0.18);
}
.esw-cm__credit {
	margin: 12px 0 0;
	font-size: 12px;
	color: var(--c-muted);
}
.esw-cm__credit a {
	color: var(--esw-accent-soft, #a594ff);
}

@media only screen and (max-width: 999px) {
	.esw-cm__app {
		grid-template-columns: minmax(0, 1fr);
	}
	.esw-cm__list {
		max-height: 300px;
	}
}
@media only screen and (max-width: 640px) {
	.esw-cm__wrap {
		padding: 0 12px;
	}
	.esw-cm__lbl {
		padding: 1px 4px;
		font-size: 9px;
	}
	.esw-cm__maps button {
		padding: 7px 10px;
		font-size: 13px;
	}
}
