/* UPRAVA WANTEE (6. 10. 2026): pas "Hraj a ziskaj zlavu" na hlavnej strane - tri karty hier (Kacaci Lov, Ovocny masaker,
   pexeso Medical) v jednotnom style. Vykresluje ho common/home (twig common/hry_pas) na mieste HTML modulu "WanteeHomeBlockPexeso".
   Scena kacic je z kacicky-banner.css (rovnake nazvy ws-kacb-*), preto sa na domovskej strane uz banner kacic nenacitava. */

.ws-hp {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: 34px 0 38px;
	overflow-x: clip;
	background: #faf5e8;
	font-family: inherit;
}

.ws-hp *,
.ws-hp *::before,
.ws-hp *::after {
	box-sizing: border-box;
}

.ws-hp-obal {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px;
}

.ws-hp-nadpis {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 16px;
	color: #a67f34;
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.ws-hp-nadpis::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: rgba(166, 127, 52, .35);
}

.ws-hp-zoznam {
	display: grid;
	grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
	gap: 20px;
}

.ws-hk {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 340px;
	border-radius: 20px;
	overflow: hidden;
	background: var(--hk-bg);
	color: #fff;
	text-decoration: none;
	box-shadow: 0 16px 30px -18px var(--hk-tien);
	transition: transform .18s ease, box-shadow .18s ease;
}

.ws-hk:hover,
.ws-hk:focus-visible {
	color: #fff;
	transform: translateY(-3px);
	box-shadow: 0 22px 34px -18px var(--hk-tien);
}

.ws-hk:focus-visible {
	outline: 3px solid #ffe27a;
	outline-offset: 3px;
}

.ws-hk-kacice {
	--hk-bg: linear-gradient(135deg, #0e1b4d 0%, #1b3786 58%, #2c58b8 100%);
	--hk-tien: rgba(14, 27, 77, .85);
}

.ws-hk-ovocie {
	--hk-bg: linear-gradient(135deg, #042630 0%, #0a5260 58%, #118391 100%);
	--hk-tien: rgba(4, 38, 48, .85);
}

.ws-hk-psiky {
	--hk-bg: linear-gradient(135deg, #064a58 0%, #0b7f97 58%, #17bfd8 100%);
	--hk-tien: rgba(6, 74, 88, .85);
}

.ws-hk-pexeso {
	--hk-bg: linear-gradient(135deg, #2a0508 0%, #4a0910 58%, #7d1b26 100%);
	--hk-tien: rgba(74, 9, 16, .85);
}

.ws-hk-text {
	position: relative;
	z-index: 6;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding: 24px 24px 14px;
}

.ws-hk-chip {
	padding: 3px 11px;
	border-radius: 999px;
	border: 1px solid rgba(255, 226, 122, .6);
	background: rgba(255, 226, 122, .14);
	color: #ffe27a;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .1em;
}

.ws-hk-title {
	max-width: calc(100% - 56px);
	font-size: clamp(1.2rem, 1rem + .55vw, 1.5rem);
	font-weight: 800;
	line-height: 1.2;
	color: #fff;
	text-wrap: balance;
}

.ws-hk-sub {
	font-size: .92rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, .86);
}

.ws-hk-cta {
	margin-top: auto;
	padding: 10px 26px;
	border-radius: 999px;
	background: #cda349;
	color: #fff;
	font-weight: 700;
	font-size: .98rem;
	box-shadow: 0 0 0 0 rgba(255, 226, 122, .6);
	animation: ws-hk-pulz 2.8s ease-out infinite;
	transition: background .15s ease;
}

.ws-hk:hover .ws-hk-cta,
.ws-hk:focus-visible .ws-hk-cta {
	background: #b78f35;
}

.ws-hk-sub {
	margin-bottom: 8px;
}

.ws-hk-scena {
	position: relative;
	flex: 0 0 150px;
	height: 150px;
	overflow: hidden;
}

.ws-hk-svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.ws-hk-znacka {
	position: absolute;
	z-index: 7;
	top: 16px;
	right: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: linear-gradient(135deg, #e0433a, #a8241c);
	color: #fff;
	font-size: .98rem;
	font-weight: 800;
	transform: rotate(-10deg);
	box-shadow: 0 8px 14px -6px rgba(0, 0, 0, .5);
	animation: ws-hk-kyv 3.2s ease-in-out infinite;
}

/* scena psikov: obrazok z hry + oranzovy sesthuholnik z ponozky */
.ws-hk-obr {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center bottom;
	animation: ws-hk-plav 3.6s ease-in-out infinite;
}

.ws-hk-hex {
	position: absolute;
	top: -10px;
	right: 8%;
	width: 74px;
	height: 84px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 114'%3E%3Cpath d='M50 4L96 30V84L50 110L4 84V30Z' fill='rgba(255,255,255,.05)' stroke='%23f5962d' stroke-opacity='.6' stroke-width='5' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* animacie scen s SVG (ovocie, pexeso) */
.ws-hk-f {
	transform-box: fill-box;
	transform-origin: center;
	animation: ws-hk-plav 3.4s ease-in-out infinite;
}

.ws-hk-f2 { animation-delay: -1.1s; animation-duration: 3.9s; }
.ws-hk-f3 { animation-delay: -2.2s; animation-duration: 3.1s; }
.ws-hk-f4 { animation-delay: -.6s; animation-duration: 3.6s; }

.ws-hk-iskra {
	transform-box: fill-box;
	transform-origin: center;
	animation: ws-hk-blik 1.9s ease-in-out infinite;
}

.ws-hk-iskra2 { animation-delay: -.7s; }
.ws-hk-iskra3 { animation-delay: -1.3s; }

.ws-hk-stopa-siroka,
.ws-hk-stopa {
	fill: none;
	stroke-linecap: round;
}

.ws-hk-stopa-siroka {
	stroke: rgba(150, 255, 246, .26);
	stroke-width: 14;
}

.ws-hk-stopa {
	stroke: rgba(255, 255, 255, .92);
	stroke-width: 4;
}

@keyframes ws-hk-plav {
	0%, 100% { transform: translateY(0) rotate(0deg); }
	50% { transform: translateY(-7px) rotate(3deg); }
}

@keyframes ws-hk-blik {
	0%, 100% { opacity: .15; transform: scale(.6); }
	50% { opacity: 1; transform: scale(1.2); }
}

@keyframes ws-hk-kyv {
	0%, 100% { transform: rotate(-10deg) scale(1); }
	50% { transform: rotate(-4deg) scale(1.07); }
}

@keyframes ws-hk-pulz {
	0% { box-shadow: 0 0 0 0 rgba(255, 226, 122, .6); }
	70%, 100% { box-shadow: 0 0 0 14px rgba(255, 226, 122, 0); }
}

/* scena kacic (z kacicky-banner.css, ostava tam pre produkt) - v karte je scena vysoka 150 px a siroka ako karta */
.ws-hk-kacice .ws-kacb-hex {
	position: absolute;
	top: 6px;
	right: 24%;
	width: 66px;
	height: 76px;
	background: rgba(140, 190, 240, .16);
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.ws-kacb-vlny {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
}

.ws-kacb-vlny-zadna {
	z-index: 1;
	height: 84px;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 22'%3E%3Cpath d='M0 11Q15 0 30 11T60 11T90 11T120 11V22H0Z' fill='%234a86d4'/%3E%3C/svg%3E") 0 0 / 120px 22px repeat-x,
		linear-gradient(#4a86d4, #3a75c2) 0 21px / 100% 100% no-repeat;
	animation: ws-kacb-vlna-zadna 9s linear infinite;
}

.ws-kacb-vlny-predna {
	z-index: 5;
	height: 40px;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 22'%3E%3Cpath d='M0 11Q15 0 30 11T60 11T90 11T120 11V22H0Z' fill='%23245aa5'/%3E%3C/svg%3E") 0 0 / 120px 22px repeat-x,
		linear-gradient(#245aa5, #173f7c) 0 21px / 100% 100% no-repeat;
	animation: ws-kacb-vlna-predna 6s linear infinite;
}

/* stredna hladina je vykreslena tienom pod zadnymi kacickami */
.ws-kacb-scena::after {
	content: "";
	position: absolute;
	z-index: 3;
	left: 0;
	right: 0;
	bottom: 0;
	height: 64px;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 22'%3E%3Cpath d='M0 11Q15 0 30 11T60 11T90 11T120 11V22H0Z' fill='%233a75c2'/%3E%3C/svg%3E") 0 0 / 120px 22px repeat-x,
		linear-gradient(#3a75c2, #245aa5) 0 21px / 100% 100% no-repeat;
	animation: ws-kacb-vlna-stredna 7.5s linear infinite;
	pointer-events: none;
}

.ws-kacb-plav {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	animation: ws-kacb-plav var(--dur, 18s) linear infinite;
	animation-delay: var(--del, 0s);
}

.ws-kacb-skok {
	position: absolute;
	left: 0;
	bottom: var(--dno, 30px);
	width: var(--sir, 70px);
}

.ws-kacb-hoj {
	position: relative;
	display: block;
	animation: ws-kacb-hoj 2.6s ease-in-out infinite;
	animation-delay: var(--hdel, 0s);
}

.ws-kacb-kacka {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.ws-kacb-kacka .t { fill: var(--t); stroke: rgba(0, 0, 0, .28); stroke-width: 1.6; }
.ws-kacb-kacka .s { fill: var(--s); stroke: rgba(0, 0, 0, .28); stroke-width: 1.6; }
.ws-kacb-kacka .b { fill: #e5502b; stroke: rgba(0, 0, 0, .28); stroke-width: 1.6; }
.ws-kacb-kacka .w { fill: var(--s); opacity: .55; }
.ws-kacb-kacka .g { fill: #fff; opacity: .38; }

/* kazda kacicka ma svoju hladinu, rychlost a polohu */
.ws-kacb-k1 { --dno: 28px; --sir: 98px; --dur: 20s; --del: -4s; --hdel: -.4s; z-index: 4; }
.ws-kacb-k2 { --dno: 50px; --sir: 64px; --dur: 16s; --del: -10s; --hdel: -1.1s; z-index: 2; animation-direction: reverse; }
.ws-kacb-k3 { --dno: 12px; --sir: 128px; --dur: 25s; --del: -15s; --hdel: -1.8s; z-index: 4; }
.ws-kacb-k4 { --dno: 52px; --sir: 56px; --dur: 18s; --del: -1s; --hdel: -.7s; z-index: 2; }

.ws-kacb-k2 .ws-kacb-kacka { transform: scaleX(-1); }
.ws-kacb-k2 .ws-kacb-skok { animation: ws-kacb-hop 11s ease-in-out infinite; animation-delay: -3s; }
.ws-kacb-k3 .ws-kacb-skok { animation: ws-kacb-salto 14s ease-in-out infinite; animation-delay: -2s; }

.ws-kacb-bublina {
	position: absolute;
	left: 52%;
	bottom: 100%;
	margin-bottom: -2px;
	padding: 4px 10px;
	border-radius: 10px;
	background: #fff;
	color: #16296b;
	font-size: .8rem;
	font-weight: 800;
	white-space: nowrap;
	opacity: 0;
	transform-origin: 20% 100%;
	animation: ws-kacb-bub 8s ease-in-out infinite;
}

.ws-kacb-bublina::after {
	content: "";
	position: absolute;
	left: 14px;
	top: 100%;
	border: 5px solid transparent;
	border-top-color: #fff;
}

@keyframes ws-kacb-plav {
	from { transform: translateX(-38%); }
	to { transform: translateX(108%); }
}

@keyframes ws-kacb-hoj {
	0%, 100% { transform: translateY(0) rotate(0deg); }
	50% { transform: translateY(-3px) rotate(2deg); }
}

@keyframes ws-kacb-hop {
	0%, 70%, 100% { transform: none; }
	76% { transform: translateY(-24px) rotate(-14deg); }
	84% { transform: translateY(0) rotate(0deg); }
}

@keyframes ws-kacb-salto {
	0%, 80%, 100% { transform: none; }
	86% { transform: translateY(-30px) rotate(-120deg); }
	92% { transform: translateY(-34px) rotate(-240deg); }
	98% { transform: translateY(0) rotate(-360deg); }
}

@keyframes ws-kacb-bub {
	0%, 56% { opacity: 0; transform: scale(.4); }
	61% { opacity: 1; transform: scale(1.1); }
	65%, 80% { opacity: 1; transform: scale(1); }
	86%, 100% { opacity: 0; transform: scale(.6); }
}

@keyframes ws-kacb-kyv {
	0%, 100% { transform: rotate(-10deg) scale(1); }
	50% { transform: rotate(-4deg) scale(1.07); }
}

@keyframes ws-kacb-pulz {
	0% { box-shadow: 0 0 0 0 rgba(255, 226, 122, .6); }
	70%, 100% { box-shadow: 0 0 0 14px rgba(255, 226, 122, 0); }
}

@keyframes ws-kacb-vlna-zadna {
	from { background-position: 0 0, 0 21px; }
	to { background-position: 120px 0, 0 21px; }
}

@keyframes ws-kacb-vlna-stredna {
	from { background-position: 0 0, 0 21px; }
	to { background-position: -120px 0, 0 21px; }
}

@keyframes ws-kacb-vlna-predna {
	from { background-position: 0 0, 0 21px; }
	to { background-position: 120px 0, 0 21px; }
}


/* v karte su kacicky mensie (rovnake hodnoty ako pri uzkom banneri) */
.ws-hk .ws-kacb-k1 { --dno: 26px; --sir: 76px; }
.ws-hk .ws-kacb-k3 { --dno: 10px; --sir: 96px; }
.ws-hk .ws-kacb-k2 { --dno: 46px; --sir: 50px; }
.ws-hk .ws-kacb-k4 { --dno: 48px; --sir: 44px; }

/* tablet a telefon: karty sa posuvaju do strany (nasledujuca vykuka), aby pas nezaberal pol obrazovky */
@media (max-width: 991.98px) {
	.ws-hp {
		padding: 26px 0 30px;
	}

	.ws-hp-obal {
		padding: 0;
	}

	.ws-hp-nadpis {
		padding: 0 16px;
	}

	.ws-hp-zoznam {
		display: flex;
		gap: 14px;
		padding: 4px 16px 14px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding: 0 16px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.ws-hp-zoznam::-webkit-scrollbar {
		display: none;
	}

	.ws-hk {
		flex: 0 0 min(84%, 400px);
		scroll-snap-align: start;
		min-height: 330px;
	}
}

@media (max-width: 575.98px) {
	.ws-hk-text {
		padding: 20px 18px 12px;
	}

	.ws-hk-scena {
		flex-basis: 140px;
		height: 140px;
	}
}

@media (max-width: 1199.98px) {
	.ws-hp-viac {
		display: flex;
		gap: 14px;
		padding: 4px 16px 14px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding: 0 16px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.ws-hp-viac::-webkit-scrollbar {
		display: none;
	}

	.ws-hp-viac .ws-hk {
		flex: 0 0 min(84%, 400px);
		scroll-snap-align: start;
		min-height: 330px;
	}
}

@media (min-width: 992px) and (max-width: 1199.98px) {
	.ws-hp-viac {
		margin: 0 -16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ws-hk,
	.ws-hk * {
		animation: none !important;
		transition: none !important;
	}

	.ws-hk .ws-kacb-k1 { transform: translateX(34%); }
	.ws-hk .ws-kacb-k2 { transform: translateX(72%); }
	.ws-hk .ws-kacb-k3 { transform: translateX(8%); }
	.ws-hk .ws-kacb-k4 { transform: translateX(52%); }
	.ws-hk .ws-kacb-bublina { opacity: 1; }
}
