/* Materiał przy artykule — podziękowanie po zapisie: agent przybija piątkę (SVG z widok.php, lh_ma_podziekowanie).
   Blok stoi na limonkowym tle; animacja rusza, gdy material.js zdejmie „hidden”; przy prefers-reduced-motion od razu poza końcowa. */
.lh-ma .lh-ma-dzieki {
	display: flex;
	align-items: center;
	gap: 20px;
	color: #0b0e14;
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	text-align: left;
}
.lh-ma .lh-ma-agent {
	flex: 0 0 auto;
	width: 112px;
	height: 112px;
	overflow: visible;
	display: block;
}
.lh-ma .lh-ma-dz-tytul {
	font-size: 24px;
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 4px;
	color: #0b0e14;
}
.lh-ma .lh-ma-dz-tekst {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0;
	color: #0b0e14;
}
.lh-ma .lh-ma-dz-drobne {
	font-size: 13px;
	line-height: 1.45;
	margin: 10px 0 0;
	color: rgba(11, 14, 20, .72);
}
@media (max-width: 479px) {
	.lh-ma .lh-ma-dzieki { flex-direction: column; text-align: center; gap: 12px; }
	.lh-ma .lh-ma-agent { width: 104px; height: 104px; }
	.lh-ma .lh-ma-dz-tytul { font-size: 21px; }
	.lh-ma .lh-ma-dz-tekst { font-size: 17px; }
}

/* Części postaci: punkt obrotu w układzie rysunku (viewBox 0 0 120 120). */
.lh-ma-agent .lh-ma-bot,
.lh-ma-agent .lh-ma-unos,
.lh-ma-agent .lh-ma-cien,
.lh-ma-agent .lh-ma-ramie,
.lh-ma-agent .lh-ma-dlon,
.lh-ma-agent .lh-ma-glowa,
.lh-ma-agent .lh-ma-mrug,
.lh-ma-agent .lh-ma-blysk,
.lh-ma-agent .lh-ma-plask { transform-box: view-box; }
.lh-ma-agent .lh-ma-bot   { transform-origin: 60px 110px; }
.lh-ma-agent .lh-ma-cien  { transform-origin: 60px 113px; }
.lh-ma-agent .lh-ma-ramie { transform-origin: 77px 78px; }
.lh-ma-agent .lh-ma-dlon  { transform-origin: 105.5px 33px; }
.lh-ma-agent .lh-ma-glowa { transform-origin: 60px 72px; }
.lh-ma-agent .lh-ma-mrug  { transform-origin: 60px 46px; }
.lh-ma-agent .lh-ma-blysk,
.lh-ma-agent .lh-ma-plask { transform-origin: 105.5px 32px; }
.lh-ma-agent .lh-ma-k     { transform-box: fill-box; transform-origin: center; }

/* Stan końcowy (bez animacji): ręka w górze, błysk i konfetti schowane. */
.lh-ma-agent .lh-ma-blysk,
.lh-ma-agent .lh-ma-plask,
.lh-ma-agent .lh-ma-k,
.lh-ma-agent .lh-ma-oczy-radosc { opacity: 0; }

/* Animacja rusza sama, gdy material.js zdejmie z bloku atrybut hidden. */
.lh-ma-dzieki .lh-ma-bot   { animation: lh-ma-wskok .6s cubic-bezier(.3, 1.4, .5, 1) both; }
.lh-ma-dzieki .lh-ma-cien  { animation: lh-ma-cien-wskok .6s ease-out both, lh-ma-cien-unos 2.8s ease-in-out 2.2s 2; }
.lh-ma-dzieki .lh-ma-unos  { animation: lh-ma-unos 2.8s ease-in-out 2.2s 2; }
.lh-ma-dzieki .lh-ma-ramie { animation: lh-ma-ramie 1.2s ease-in-out .4s both; }
.lh-ma-dzieki .lh-ma-dlon  { animation: lh-ma-dlon 1.2s ease-in-out .4s both; }
.lh-ma-dzieki .lh-ma-glowa { animation: lh-ma-glowa 1.2s ease-in-out .4s both; }
.lh-ma-dzieki .lh-ma-blysk { animation: lh-ma-blysk .6s ease-out 1.12s both; }
.lh-ma-dzieki .lh-ma-plask { animation: lh-ma-plask .5s ease-out 1.12s both; }
.lh-ma-dzieki .lh-ma-k     { animation: lh-ma-konfetti 1.05s cubic-bezier(.2, .7, .4, 1) 1.14s both; }
.lh-ma-dzieki .lh-ma-oczy  { animation: lh-ma-oczy-zwykle .95s linear 1.08s both; }
.lh-ma-dzieki .lh-ma-oczy-radosc { animation: lh-ma-oczy-radosne .95s linear 1.08s both; }
.lh-ma-dzieki .lh-ma-mrug  { animation: lh-ma-mrugniecie 3.4s ease-in-out 2.6s 3; }
.lh-ma-dzieki .lh-ma-lampka { animation: lh-ma-lampka .6s ease-out 1.12s both; }
.lh-ma-dzieki .lh-ma-dz-tytul  { animation: lh-ma-wjazd .45s ease-out .3s both; }
.lh-ma-dzieki .lh-ma-dz-tekst  { animation: lh-ma-wjazd .45s ease-out .55s both; }
.lh-ma-dzieki .lh-ma-dz-drobne { animation: lh-ma-wjazd .45s ease-out .8s both; }

@keyframes lh-ma-wskok {
	0%   { transform: translateY(34px) scale(.55); opacity: 0; }
	45%  { transform: translateY(-9px) scale(.94, 1.08); opacity: 1; }
	70%  { transform: translateY(0) scale(1.08, .92); }
	86%  { transform: translateY(0) scale(.98, 1.02); }
	100% { transform: none; opacity: 1; }
}
@keyframes lh-ma-cien-wskok {
	0%   { transform: scale(.3); opacity: 0; }
	45%  { transform: scale(.7); opacity: .6; }
	70%  { transform: scale(1.1); opacity: 1; }
	100% { transform: none; opacity: 1; }
}
@keyframes lh-ma-unos {
	0%, 100% { transform: none; }
	50% { transform: translateY(-3px); }
}
@keyframes lh-ma-cien-unos {
	0%, 100% { transform: none; }
	50% { transform: scale(.88); }
}
/* ramię: w dół -> w górę z odbiciem -> machnięcie -> wypchnięcie dłoni (piątka ok. 1,15 s) -> spokój */
@keyframes lh-ma-ramie {
	0%   { transform: rotate(105deg) scale(.55); }
	25%  { transform: rotate(-14deg); }
	38%  { transform: rotate(9deg); }
	50%  { transform: rotate(-5deg); }
	62%  { transform: rotate(-11deg); }
	74%  { transform: rotate(-9deg); }
	100% { transform: none; }
}
@keyframes lh-ma-dlon {
	0%, 50% { transform: none; }
	62%  { transform: scale(1.6); }
	72%  { transform: scale(1.35); }
	84%  { transform: scale(1.12); }
	100% { transform: none; }
}
@keyframes lh-ma-glowa {
	0%, 48% { transform: none; }
	62%  { transform: rotate(5deg); }
	80%  { transform: rotate(-2deg); }
	100% { transform: none; }
}
@keyframes lh-ma-blysk {
	0%   { transform: scale(.45); opacity: 0; }
	22%  { transform: scale(.9); opacity: 1; }
	100% { transform: scale(1.35); opacity: 0; }
}
@keyframes lh-ma-plask {
	0%   { transform: scale(.4); opacity: 0; }
	1%   { transform: scale(.42); opacity: .9; }
	100% { transform: scale(1.7); opacity: 0; }
}
@keyframes lh-ma-konfetti {
	0%   { transform: translate(0, 0) rotate(0) scale(.3); opacity: 0; }
	12%  { opacity: 1; }
	60%  { transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1); opacity: 1; }
	100% { transform: translate(var(--x), calc(var(--y) + 20px)) rotate(calc(var(--r) * 1.7)) scale(.9); opacity: 0; }
}
@keyframes lh-ma-oczy-zwykle {
	0%   { opacity: 1; }
	6%, 86% { opacity: 0; }
	100% { opacity: 1; }
}
@keyframes lh-ma-oczy-radosne {
	0%   { opacity: 0; }
	6%, 86% { opacity: 1; }
	100% { opacity: 0; }
}
@keyframes lh-ma-mrugniecie {
	0%, 90%, 100% { transform: none; }
	95% { transform: scaleY(.12); }
}
@keyframes lh-ma-lampka {
	0%, 100% { fill: #ffffff; }
	25% { fill: #a3e635; }
}
@keyframes lh-ma-wjazd {
	0%   { opacity: 0; transform: translateY(8px); }
	100% { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.lh-ma-dzieki,
	.lh-ma-dzieki * { animation: none !important; }
}
