/* Afrodita 2026 – podle návrhu Petra Širokého (212-*.png), responzivně.
   Barvy a rozměry z instrukce.txt. */

:root {
	--orange: #e66322;
	--green: #63a621;
	--green-badge: #72b120;
	--link: #63a621;
	--text: #333;
	--muted: #595959;
	--tag: #808080;
	--dark: #2b2b2b;
	--menu: #3a3a3a;
	--line: #333;
	--card: #fff;
	--radius: 4px;
	--shadow: 0 2px 6px rgba(120, 50, 0, .18);
	font-family: Roboto, "Segoe UI", system-ui, -apple-system, sans-serif;
	color: var(--text);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: #f7a443 url(/assets/img/hlavni-pozadi.png) center top / 1920px auto repeat-y;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-size: 14px;
	line-height: 1.45;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: #000; }
img { max-width: 100%; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 16px; }

/* ---------------------------------------------------------- hlavička */
.top { background: linear-gradient(#2e2e2e, #232323); color: #ccc; position: relative; z-index: 20; }
/* hlavička podle návrhu (212-15.png): pruh 130 px, logo 260×70, vyhledávání 290×46; příšerky z menu vykukují do spodku pruhu */
.top__in { display: flex; align-items: center; gap: 30px; height: 130px; padding-bottom: 14px; }
.logo {
	flex: none; width: 260px; height: 70px;
	background: url(/assets/img/logo.png?v=2) 0 0 / 260px 140px no-repeat;
}
.logo:hover { background-position: 0 -70px; }
.search { flex: none; width: 290px; display: flex; position: relative; }
.search input {
	width: 100%; height: 46px; border-radius: 23px; border: 1px solid #111; background: #1e1e1f;
	color: #eee; padding: 0 48px 0 28px; font: inherit; font-size: 15px; box-shadow: inset 0 1px 3px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.06);
}
.search input::placeholder { color: #777; }
.search button {
	position: absolute; right: 16px; top: 12px; width: 22px; height: 22px; border: 0; cursor: pointer;
	background: url(/assets/img/ikonka-vyhledavani.png) 0 0 / 22px 44px no-repeat;
}
.search button:hover { background-position: 0 -22px; }
.langs { margin-left: auto; position: relative; }
.langs summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; color: #ccc; font-size: 13px; padding: 6px 10px; border: 1px solid #555; border-radius: 3px; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.langs[open] summary, .langs summary:hover { color: #fff; border-color: #888; }
.langs__menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 160px; background: #2b2b2b; border: 1px solid #444; border-radius: 4px; padding: 4px; box-shadow: 0 6px 20px rgba(0,0,0,.4); display: flex; flex-direction: column; }
.langs__menu a { color: #ccc; padding: 7px 10px; border-radius: 3px; font-size: 13px; }
.langs__menu a:hover, .langs__menu a.active { color: #fff; background: #3a3a3a; }
/* ---------------------------------------------------------- menu */
/* Výchozí: barevný proužek nahoře. Najetí / vybraná kategorie (212-vysunute-menu.png):
   tmavší pozadí, nad menu vykoukne příšerka kategorie, krátký proužek pod textem.
   Barva položky je v --c, České hry mají přechod v --bar. */
.menu { background: linear-gradient(#444, #383838); border-top: 1px solid #1c1c1c; box-shadow: 0 2px 4px rgba(0,0,0,.3); }
.menu__in { list-style: none; display: flex; margin: 0 auto; padding: 0 16px; }
.menu__item { --bar: var(--c); flex: 1 0 auto; border-left: 1px solid var(--line); position: relative; }
.menu__item:last-child { border-right: 1px solid var(--line); }
.menu__item--cz { --bar: linear-gradient(90deg, #fff, #1092d6 50%, #d61010); }
.menu__item::after {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--bar);
	transition: top .15s, left .15s, right .15s, height .15s;
}
.menu__item::before {
	/* příšerka nad položkou – nastavuje se třídou --m1…--m10 */
	content: ""; position: absolute; left: 50%; bottom: 100%; width: 66px; height: 42px; margin-left: -33px;
	background: var(--monster) center bottom / contain no-repeat; pointer-events: none;
	opacity: 0; transform: translateY(14px); transition: opacity .15s, transform .2s ease-out;
}
.menu__item > a, .menu__item summary {
	display: block; padding: 0 14px; line-height: 50px; color: #fff; font-weight: 700; font-size: 13px;
	text-align: center; white-space: nowrap; cursor: pointer; list-style: none; position: relative; z-index: 1;
}
.menu__item summary::-webkit-details-marker { display: none; }
.menu__item.active, .menu__item:hover, .menu__item:focus-within { background: linear-gradient(#333, #272727); }
.menu__item.active::after, .menu__item:hover::after, .menu__item:focus-within::after { top: auto; bottom: 6px; left: 10px; right: 10px; height: 4px; }
.menu__item.active::before, .menu__item:hover::before, .menu__item:focus-within::before { opacity: 1; transform: none; }
.menu__item--m1 { --monster: url(/assets/img/menu/priserka-1.png); }
.menu__item--m2 { --monster: url(/assets/img/menu/priserka-2.png); }
.menu__item--m3 { --monster: url(/assets/img/menu/priserka-3.png); }
.menu__item--m4 { --monster: url(/assets/img/menu/priserka-4.png); }
.menu__item--m5 { --monster: url(/assets/img/menu/priserka-5.png); }
.menu__item--m6 { --monster: url(/assets/img/menu/priserka-6.png); }
.menu__item--m7 { --monster: url(/assets/img/menu/priserka-7.png); }
.menu__item--m8 { --monster: url(/assets/img/menu/priserka-8.png); }
.menu__item--m9 { --monster: url(/assets/img/menu/priserka-9.png); }
.menu__item--m10 { --monster: url(/assets/img/menu/priserka-10.png); }
/* úzká obrazovka: menu se posouvá do strany, příšerky se nevejdou */
@media (max-width: 900px) {
	.menu__in { overflow-x: auto; scrollbar-width: none; }
	.menu__in::-webkit-scrollbar { display: none; }
	.menu__item::before { display: none; }
	.top__in { margin-bottom: 0; height: 68px; }
}
.menu__more {
	list-style: none; margin: 0; padding: 8px 0; position: absolute; right: 0; top: 100%; min-width: 220px;
	background: #2a2a2a; box-shadow: 0 6px 12px rgba(0,0,0,.4); z-index: 30; max-height: 70vh; overflow: auto;
}
.menu__more a { display: block; padding: 6px 18px; color: #ddd; }
.menu__more a:hover { color: #fff; background: #383838; }

/* ---------------------------------------------------------- stránka */
.page { flex: 1; padding-top: 22px; padding-bottom: 40px; position: relative; z-index: 2; }
.box { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 22px; }
h1, h2 { margin: 0 0 14px; color: #2b2b2b; line-height: 1.15; }
.h-big { font-size: 30px; font-weight: 400; }
.h-big b { font-weight: 900; }
.section-title { font-size: 26px; font-weight: 400; color: #2b2b2b; margin: 8px 0 16px; }
.section-title b { font-weight: 700; }
.count { font-size: 15px; color: var(--muted); font-weight: 400; }

/* příšerky po stranách (jen na širokých obrazovkách) */
.stage { position: relative; }
.monsters { display: none; }
@media (min-width: 1360px) {
	.monsters { display: block; position: absolute; inset: 413px 0 40px; overflow: hidden; z-index: 1; pointer-events: none; }
	.monsters__col { position: absolute; top: 0; width: 140px; display: flex; flex-direction: column; gap: 340px; }
	.monsters__col--left { left: calc(50% - 685px); }
	.monsters__col--right { left: calc(50% + 520px); top: 220px; }
	.monsters .m { display: block; width: 140px; height: auto; }
}

/* ---------------------------------------------------------- nejhranější */
.top-games { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.top-games__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; align-content: start; }
.mini { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.mini__img { flex: none; width: 50px; height: 50px; border-radius: 3px; object-fit: cover; background: #eee; }
.mini__name { display: block; font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini .tags { margin-top: 3px; }
.top-games--full { grid-template-columns: 1fr; }
.top-games--full .top-games__list { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.top-games__promo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.promo { display: block; border-radius: 3px; overflow: hidden; aspect-ratio: 205 / 110; background: #222; position: relative; }
.promo__img { position: absolute; inset: 0; overflow: hidden; }
.promo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.promo:hover img { transform: scale(1.05); }
.promo__name { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 6px; color: #fff; font-weight: 700; font-size: 13px;
	background: linear-gradient(transparent, rgba(0,0,0,.75)); }

/* ---------------------------------------------------------- štítky */
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.tags a, .tags span {
	display: inline-block; border: 1px solid #ddd; border-radius: 2px; padding: 1px 6px; font-size: 11px; color: var(--link);
	background: #fff; line-height: 1.5;
}
.tags a:hover { border-color: var(--link); color: #000; }

/* ---------------------------------------------------------- karty her */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card {
	background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 15px 16px;
	position: relative; display: flex; flex-direction: column; min-width: 0;
}
.card__img { display: block; position: relative; aspect-ratio: 280 / 100; border-radius: 2px; overflow: hidden; background: #333; }
.card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.card:hover .card__img img { transform: scale(1.04); }
/* starý malý náhled: rozmazané pozadí + obrázek v původní velikosti */
.thumb-none { background: linear-gradient(135deg, #7bc043, #4f8e1d); display: flex; align-items: center; justify-content: center; }
.thumb-none img { width: auto !important; height: 80% !important; object-fit: contain !important; }
.card__name { font-size: 17px; font-weight: 700; margin: 12px 0 8px; line-height: 1.2; }
.card__name a { color: var(--link); }
.card__name a:hover { color: #000; }
.card__text { color: var(--muted); font-size: 12px; margin: 0 0 10px; flex: 1; }
.badge {
	position: absolute; top: 4px; right: 4px; width: 60px; height: 60px; border-radius: 50%; z-index: 2;
	display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 22px;
	background: radial-gradient(circle at 40% 35%, #8fd13a, #5f9f18); box-shadow: 0 2px 4px rgba(0,0,0,.25);
}
.badge small { font-size: 12px; margin-top: 6px; }
.badge--new { background: radial-gradient(circle at 40% 35%, #ff9a4a, var(--orange)); font-size: 14px; text-transform: uppercase; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 30px 0 0; }
.pager a, .pager__current { min-width: 38px; height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 19px; background: #fff; box-shadow: var(--shadow); font-weight: 700; color: #2b2b2b; text-decoration: none; }
.pager a:hover { background: #f3fbe9; }
.pager__current { background: #6fae2f; color: #fff; }
.pager__gap { color: rgba(0,0,0,.45); padding: 0 2px; }
.btn {
	display: inline-block; border: 0; border-radius: var(--btn-radius, 5px); padding: 10px 32px; font: inherit; font-size: 15px; cursor: pointer;
	color: #fff; background: linear-gradient(#8bc642, #5d9a1b); box-shadow: 0 2px 4px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn:hover { color: #fff; filter: brightness(1.08); }
.btn b { font-weight: 700; }
.btn--orange { background: linear-gradient(#f58a3a, var(--orange)); }

/* ---------------------------------------------------------- kategorie */
.cat-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cat-head h1 { margin: 0; font-size: 28px; }
.cat-top { border-top: 1px solid #e5e5e5; margin-top: 18px; padding-top: 16px; }
.cat-top h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 12px; }
.cat-top .top-games__list { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* ---------------------------------------------------------- detail hry */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 20px; align-items: start; } /* 1000 - 2×16 - 220 - 20 = 728 px pro banner */
.detail__main { --pad-x: 30px; padding: 26px var(--pad-x) 30px; }
.detail__head { text-align: center; margin-bottom: 18px; }
.detail__title { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.detail__title h1 { margin: 0; font-size: 32px; }
.pill { background: linear-gradient(#8fd13a, #5f9f18); color: #fff; font-weight: 700; font-size: 20px; border-radius: 18px; padding: 3px 12px; }
.detail__head .tags { justify-content: center; }
.detail__head .tags a { font-size: 12px; padding: 3px 10px; }
.player { position: relative; background: #000; border-radius: 2px; overflow: hidden; margin: 0 auto; max-width: 100%; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
/* hra dostane svou nativní velikost a zmenší se do přehrávače (JS nastaví --scale) – nevznikají posuvníky uvnitř hry */
.player--scaled iframe { width: var(--native-w); height: var(--native-h); transform: scale(var(--scale)); transform-origin: 0 0; }
.player:fullscreen iframe { width: 100%; height: 100%; transform: none; }
.player-bar { display: flex; align-items: center; gap: 10px; margin: 14px 0 22px; flex-wrap: wrap; }
.player-bar .note { color: var(--muted); font-size: 12px; flex: 1; min-width: 200px; }
.controls { background: #ddf5c5; border: 1px solid #c4e8a2; border-radius: 3px; padding: 18px 22px; display: flex; gap: 20px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.controls h2 { margin: 0; font-size: 18px; min-width: 110px; }
.controls__text { font-size: 14px; color: #2b2b2b; }
.controls__list + .controls__text { flex-basis: 100%; margin: 0; padding-left: 130px; } /* ikony i text: text na vlastním řádku pod ikonami */
@media (max-width: 600px) { .controls__list + .controls__text { padding-left: 0; } }
.about { display: flex; gap: 20px; align-items: flex-start; }
.about__img { flex: none; width: 160px; border-radius: 2px; }
.about h2 { font-size: 16px; margin-bottom: 6px; }
.about p { margin: 0; color: var(--muted); font-size: 13px; white-space: pre-line; }
.side h2 { font-size: 20px; margin-bottom: 14px; color: #2b2b2b; }
.side-game { display: block; text-align: center; margin-bottom: 18px; position: relative; }
.side-game__img { display: block; position: relative; overflow: hidden; aspect-ratio: 220 / 100; border: 3px solid #fff; border-radius: 2px; box-shadow: var(--shadow); background: #333; }
.side-game__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.side-game > img { width: 100%; aspect-ratio: 220 / 100; object-fit: cover; border: 3px solid #fff; border-radius: 2px; box-shadow: var(--shadow); background: #333; display: block; }
.side-game__name { display: block; font-weight: 700; font-size: 12px; color: #2b2b2b; margin-top: 4px; }
.side-game .badge { width: 44px; height: 44px; font-size: 15px; top: -10px; right: -10px; }
.side-game .badge small { font-size: 9px; margin-top: 4px; }

/* ---------------------------------------------------------- reklama (AdSense přes Revive)
   Musí být zřetelně odlišená od her: bez rámečku karty, s popiskem „Reklama“. */
.ad { display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0 auto 22px; max-width: 100%; overflow: hidden; }
/* viditelný popisek reklamy (pravidla AdSense, zřetelné odlišení od obsahu) */
.ad::before { content: "Reklama"; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(0,0,0,.6); margin-bottom: 5px; }
:lang(en) .ad::before { content: "Advertisement"; }
.ad ins { display: block; }
.ad__empty { display: flex; align-items: center; justify-content: center; text-align: center; max-width: 100%; border: 2px dashed rgba(0,0,0,.25); color: rgba(0,0,0,.5); font-size: 12px; background: rgba(255,255,255,.25); }
.cards__ad { margin: 0; min-height: 270px; }
.side .ad { margin-top: 10px; }
.detail__col { min-width: 0; }
.detail--wide { grid-template-columns: minmax(0, 1fr); }
.detail--wide .side-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px 20px; }
.detail--wide .side-game { margin-bottom: 0; }
/* u široké hry: doporučené hry vlevo, svislý banner vpravo vedle nich */
.detail--wide .side { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; column-gap: 24px; align-items: start; }
.detail--wide .side > h2 { grid-column: 1; }
.detail--wide .side-list { grid-column: 1; }
.detail--wide .side > .ad { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
@media (max-width: 860px) { .detail--wide .side { display: block; } .detail--wide .side > .ad { margin-top: 24px; } }
.ad--top { margin: 0 auto 22px; }
.ad--in-box { margin: 26px calc(-1 * var(--pad-x, 0px)) 0; padding-top: 18px; border-top: 1px solid #eee; max-width: none; } /* celá šířka boxu = 728 px */
.ad--mobile { display: none; }
@media (max-width: 760px) {
	.ad--desktop { display: none; }
	.ad--mobile { display: flex; }
}

/* ---------------------------------------------------------- patička */
.foot { background: #272828; color: #999; padding: 36px 0 0; font-size: 13px; }
.foot__in { display: flex; gap: 46px; align-items: flex-start; }
.foot__figure { flex: none; width: 146px; height: auto; }
.foot__body { flex: 1; min-width: 0; padding-top: 28px; }
.foot__head { display: flex; align-items: center; gap: 20px 40px; flex-wrap: wrap; }
.foot__title { color: #fff; font-weight: 700; margin: 0; text-transform: uppercase; min-width: 146px; }
.foot__links { display: flex; flex-wrap: wrap; margin: 0; }
.foot__links a { color: var(--orange); }
.foot__links a + a::before { content: "|"; color: #555; margin: 0 12px; }
.foot__links a:hover { color: #fff; }
.foot__social { margin: 0 0 0 auto; display: flex; gap: 6px; }
.social { display: block; width: 31px; height: 31px; border-radius: 50%; background: #6b6b6b; position: relative; transition: background .15s; }
.social::before { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; background: #272828; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.social:hover { background: var(--orange); }
.social--facebook { --icon: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M14 8V6c0-.9.6-1 1-1h3V1h-4c-3.6 0-5 2.6-5 5.4V8H6v4h3v11h5V12h3.4l.6-4z%27/%3E%3C/svg%3E"); }
.social--youtube { --icon: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M23 7.2a3 3 0 0 0-2.1-2.1C19 4.6 12 4.6 12 4.6s-7 0-8.9.5A3 3 0 0 0 1 7.2C.5 9.1.5 12 .5 12s0 2.9.5 4.8a3 3 0 0 0 2.1 2.1c1.9.5 8.9.5 8.9.5s7 0 8.9-.5a3 3 0 0 0 2.1-2.1c.5-1.9.5-4.8.5-4.8s0-2.9-.5-4.8zM9.7 15.6V8.4L16 12z%27/%3E%3C/svg%3E"); }
.social--instagram { --icon: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%272.4%27%3E%3Crect x=%272.5%27 y=%272.5%27 width=%2719%27 height=%2719%27 rx=%275.5%27/%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%274.3%27/%3E%3Ccircle cx=%2717.6%27 cy=%276.4%27 r=%27.6%27/%3E%3C/svg%3E"); }
.social--tiktok { --icon: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M16.6 1h-4v14.6a3.1 3.1 0 1 1-2.6-3.1V8.4a7.2 7.2 0 1 0 6.6 7.2V8.3a9 9 0 0 0 5.4 1.7V6a5.3 5.3 0 0 1-5.4-5z%27/%3E%3C/svg%3E"); }
.foot__sites { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 30px; }
.foot__sites a { color: #999; text-decoration: underline; text-underline-offset: 3px; }
.foot__sites a:hover { color: #fff; }
.foot__credit { text-align: center; border-top: 1px solid #404040; margin: 28px auto 0; padding: 22px 16px 26px; max-width: 968px; color: #888; font-size: 14px; }
/* ---------------------------------------------------------- mobil */
@media (max-width: 1000px) {
	.top__in { height: 96px; gap: 20px; }
	.logo { width: 195px; height: 52px; background-size: 195px 105px; }
	.logo:hover { background-position: 0 -52.5px; }
	.search { flex: 1; width: auto; max-width: 290px; }
	.foot__sites { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.foot__in { gap: 24px; }
	.foot__figure { width: 90px; }
	.foot__body { padding-top: 0; }
	.foot__sites { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.top-games { grid-template-columns: 1fr; gap: 20px; }
	.detail { grid-template-columns: 1fr; }
	.side-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
	.detail__main { --pad-x: 14px; padding: 18px var(--pad-x); }
}
@media (max-width: 560px) {
	.top__in { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
	.search { order: 3; max-width: none; flex-basis: 100%; }
	.logo { width: 150px; height: 40px; background-size: 150px 81px; }
	.search input { height: 40px; }
	.search button { top: 9px; }
	.foot__figure { display: none; }
	.foot__social { margin-left: 0; }
	.top-games__list { grid-template-columns: 1fr; }
	.box { padding: 16px; }
	.h-big { font-size: 24px; }
	.detail__title h1 { font-size: 24px; }
	.about { flex-direction: column; }
	.cards { grid-template-columns: 1fr; }
}

/* galerie obrázků ze hry a videonávody */
.gallery, .videos { margin-top: 24px; }
.gallery h2, .videos h2 { font-size: 16px; margin-bottom: 10px; }
.gallery__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gallery__item { display: block; border-radius: 2px; overflow: hidden; background: #333; aspect-ratio: 4 / 3; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.gallery__item:hover img { transform: scale(1.04); }
.video { position: relative; aspect-ratio: 16 / 9; max-width: 720px; margin-bottom: 12px; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 95vw; max-height: 95vh; overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.lightbox img { display: block; max-width: 95vw; max-height: 90vh; border-radius: 3px; }
.lightbox__close { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; font-size: 22px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }

/* ovládání hry (ikony podle grafiky 212-detail) */
.controls__list { display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: flex-end; list-style: none; margin: 0; padding: 0; flex: 1; }
.control { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.control__inputs { display: flex; align-items: center; gap: 10px; min-height: 58px; }
.control__plus { flex: none; }
.control__label { font-size: 12px; color: #2b2b2b; }
.controls kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 6px; box-sizing: border-box;
	background: #fff; border: 1px solid #c9dcb5; border-radius: 3px; box-shadow: 0 1px 0 #b4c99e; font-weight: 700; font-size: 12px; line-height: 1; color: #3a3a3a; text-transform: uppercase; }
.controls kbd.k-wide { padding: 0 10px; text-transform: none; font-weight: 400; }
.controls kbd img { display: block; }
.keys { display: inline-flex; gap: 3px; }
.keys--col { flex-direction: column; }
.keys--arrows { display: inline-grid; grid-template-columns: repeat(3, 26px); grid-template-rows: 26px 26px; gap: 4px; }
.keys--arrows .k-up { grid-column: 2; }
.keys--arrows kbd:nth-child(2) { grid-column: 1; grid-row: 2; }
.keys--arrows kbd:nth-child(3) { grid-column: 2; grid-row: 2; }
.keys--arrows kbd:nth-child(4) { grid-column: 3; grid-row: 2; }
.mouse { display: block; }
.mouse--move { flex: none; width: 62px; } /* širší ikona se šipkami pohybu */

/* statické stránky */
.static-page { max-width: 820px; }
.static-page h1 { font-size: 26px; margin: 0 0 16px; }
.static-page__content { font-size: 14px; line-height: 1.6; color: #2b2b2b; }
.static-page__content h2 { font-size: 18px; margin: 22px 0 8px; }
.static-page__content h3 { font-size: 15px; margin: 18px 0 6px; }
.static-page__content a { text-decoration: underline; }
.static-page__content table { border-collapse: collapse; }
.static-page__content td, .static-page__content th { border: 1px solid #ddd; padding: 4px 8px; }

/* karty: 3 sloupce (24 her + 3 reklamy = 9 plných řádků), tablet 2 sloupce bez třetí reklamy (13 řádků), mobil 1 sloupec */
@media (max-width: 960px) {
	.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cards__ad--last { display: none !important; }
}
@media (max-width: 600px) {
	.cards { grid-template-columns: minmax(0, 1fr); }
	.cards__ad--last { display: flex !important; }
}

/* ---------------------------------------------------------- hráči: hlavička */
.user-nav { margin-left: auto; display: flex; align-items: center; gap: 0; font-size: 13px; }
.user-nav a { color: #ddd; padding: 4px 12px; }
.user-nav a:hover { color: #fff; }
.user-nav__sep { border-left: 1px solid #555; }
.user-nav__login { font-weight: 700; color: #fff !important; }
.user-nav__points { display: inline-flex; align-items: center; gap: 6px; color: #8bc642 !important; font-weight: 700; }
.user-nav + .langs { margin-left: 12px; }
@media (max-width: 760px) {
	.user-nav { order: 2; margin-left: auto; }
	.user-nav__points img { display: none; }
}

/* tlačítka u hry: palce, srdíčko, sdílet (sprity z grafiky 56×96 = dva stavy pod sebou) */
.detail__main > .note { color: var(--muted); font-size: 12px; margin: -12px 0 22px; }
.game-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1; position: relative; }
/* palec nahoru/dolů a srdíčko: stejný tvar a výška jako .btn (Sdílet, Celá obrazovka); ikony jako maska v barvě currentColor */
.game-action { position: relative; width: 56px; height: 40px; padding: 0; border: 1px solid #d6d6d6; border-radius: var(--btn-radius, 5px); cursor: pointer;
	background: linear-gradient(#fff, #ececec); box-shadow: 0 2px 4px rgba(0,0,0,.15), inset 0 1px 0 #fff; transition: background .15s, color .15s, border-color .15s; }
.game-action::before { content: ""; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; background: currentColor;
	-webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.game-action--up, .game-action--down { --icon: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M7 10v12%27/%3E%3Cpath d=%27M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z%27/%3E%3C/svg%3E"); }
.game-action--up { color: #5d9a1b; }
.game-action--down { color: #d0342c; }
.game-action--down::before { transform: scaleY(-1); }
.game-action--up:hover, .game-action--up[aria-pressed="true"] { color: #fff; border-color: #5d9a1b; background: linear-gradient(#8bc642, #5d9a1b); }
.game-action--down:hover, .game-action--down[aria-pressed="true"] { color: #fff; border-color: #b8261f; background: linear-gradient(#ec5a50, #c92b23); }
.game-action[aria-pressed="true"] { box-shadow: inset 0 2px 4px rgba(0,0,0,.25); }
.game-action--heart { --icon: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 26 24%27%3E%3Cpath d=%27M11 21.5 3.2 13.6A5.2 5.2 0 0 1 11 6.7a5.2 5.2 0 0 1 7.8 6.9z%27/%3E%3Cpath d=%27M20 14h2v3h3v2h-3v3h-2v-3h-3v-2h3z%27/%3E%3C/svg%3E"); margin-left: 14px; color: #fff; border-color: #5d9a1b; background: linear-gradient(#8bc642, #5d9a1b); }
.game-action--heart::before { width: 26px; height: 24px; }
.game-action--heart:hover { filter: brightness(1.08); }
.game-action--heart[aria-pressed="true"] { --icon: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 26 24%27%3E%3Cpath d=%27M13 22 3.8 12.8A5.8 5.8 0 0 1 13 5.4a5.8 5.8 0 0 1 9.2 7.4z%27/%3E%3C/svg%3E"); border-color: #b8261f; background: linear-gradient(#ec5a50, #c92b23); }
.game-action:focus-visible { outline: 2px solid #b8dd8e; outline-offset: 2px; }
.game-action:disabled { opacity: .5; cursor: wait; }
.btn--green { padding: 10px 22px; }
.share { position: relative; }
.share__menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 5; min-width: 180px; padding: 6px; background: #fff; border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.2); display: flex; flex-direction: column; }
.share__menu[hidden] { display: none; }
.share__menu a, .share__menu button { text-align: left; padding: 8px 10px; border: 0; background: none; font: inherit; color: #2b2b2b; cursor: pointer; border-radius: 4px; }
.share__menu a:hover, .share__menu button:hover { background: #f1f8e8; }
.game-actions__hint { flex-basis: 100%; margin: 4px 0 0; font-size: 13px; color: #2b2b2b; background: #fff7e6; border: 1px solid #f4d9a6; padding: 8px 12px; border-radius: 4px; }

/* ---------------------------------------------------------- hráči: přihlášení a registrace */
.auth { max-width: 440px; margin: 40px auto 22px; position: relative; padding-top: 34px; }
.auth h1 { font-size: 24px; margin: 0 0 18px; }
.auth__monster { position: absolute; right: 18px; top: -34px; }
.auth__form { display: flex; flex-direction: column; gap: 12px; }
.auth__form .btn { align-self: flex-start; }
.auth-field { display: flex; flex-direction: column; gap: 4px; }
.auth-field label { font-weight: 700; font-size: 13px; }
.auth-field input[type=text], .auth-field input[type=email], .auth-field input[type=password] {
	padding: 10px 12px; border: 1px solid #cfcfcf; border-radius: 4px; font: inherit; font-size: 15px; background: #fafafa; }
.auth-field input:focus { outline: 2px solid #b8dd8e; border-color: #8bc642; background: #fff; }
.auth-field--check { flex-direction: row; }
.auth-field--check label { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.auth-field__hint { color: var(--muted); font-size: 12px; }
.auth-field__error, .auth-errors { color: #b42318; font-size: 13px; }
.auth-errors { margin: 0; padding: 10px 12px 10px 28px; background: #fef3f2; border: 1px solid #fecdca; border-radius: 4px; }
.auth-field--error input { border-color: #f04438; }
.auth__note, .auth__switch { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.auth__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flash { max-width: 1000px; margin: 0 auto 14px; padding: 10px 16px; border-radius: 4px; background: #f1f8e8; border: 1px solid #c9e3a8; color: #2b2b2b; }
.flash--error { background: #fef3f2; border-color: #fecdca; }

/* ---------------------------------------------------------- hráči: profil */
.profile-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.profile-head__avatar { width: 90px; height: 90px; object-fit: contain; background: #f1f8e8; border-radius: 4px; }
.profile-head__name { flex: 1; min-width: 160px; }
.profile-head__name h1 { margin: 0; color: var(--green); font-size: 28px; font-weight: 500; }
.profile-head__rank { text-transform: uppercase; font-size: 13px; color: #555; letter-spacing: .03em; }
.profile-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 16px; border: 1px solid #dceccb; border-radius: 4px; color: var(--green); font-size: 12px; text-transform: uppercase; font-weight: 700; text-decoration: none; }
.profile-stat b { background: var(--green-badge); color: #fff; padding: 2px 10px; border-radius: 10px; font-size: 13px; }
.profile-stat--points { flex-direction: row; flex-wrap: wrap; justify-content: center; max-width: 200px; }
.notice { background: #fff7e6; border: 1px solid #f4d9a6; }
.btn--small { padding: 5px 14px; font-size: 13px; }
.btn--link { background: none; box-shadow: none; color: #b42318; padding: 0; font-size: 13px; text-decoration: underline; }
.btn--link:hover { color: #b42318; filter: none; }
.recent { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.recent__item { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: #2b2b2b; text-align: center; }
.recent__img { display: block; position: relative; aspect-ratio: 220 / 100; overflow: hidden; border: 3px solid #fff; box-shadow: var(--shadow); background: #333; }
.recent__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.monster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.monster-card { background: #d4d4d4; padding: 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.monster-card--owned { background: #d6f7ad; }
.monster-card h3 { margin: 0; font-size: 15px; }
.monster-card img { width: 120px; height: 120px; object-fit: contain; }
.monster-card:not(.monster-card--owned) img { filter: grayscale(1) brightness(.6); }
.monster-card p { margin: 0; font-size: 12px; color: #444; }
.monster-card__badge, .monster-card__price { font-size: 12px; font-weight: 700; color: #555; }
.profile-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.profile-stats { width: 100%; border-collapse: collapse; font-size: 13px; }
.profile-stats td { padding: 7px 10px; border-bottom: 1px solid #eee; }
.profile-stats td:last-child { text-align: right; font-weight: 700; }
.profile-delete { margin-top: 20px; }
@media (max-width: 700px) { .profile-bottom { grid-template-columns: 1fr; } }
.search-note { color: var(--muted); margin: 12px 0 0; }

/* hláška, když se lišta souhlasu Google nenačte (patička „Nastavení soukromí“) */
.privacy-hint { flex-basis: 100%; margin-top: 6px; font-size: 13px; opacity: .85; }
