/* Cwapa.net – identita „Kapka“: korál, indigo, slunce, máta na levandulovém podkladu.
   Třídy jsou stejné jako v šablonách jádra (app/UI), přepsané šablony jsou v sites/cwapa/templates. */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600 800; font-display: swap;
	src: url(../fonts/bricolage-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600 800; font-display: swap;
	src: url(../fonts/bricolage-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 700; font-display: swap;
	src: url(../fonts/figtree-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 700; font-display: swap;
	src: url(../fonts/figtree-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
	/* paleta „korál a moře“: Kapka (korál, odstín ~6°) + doplňková mořská modrá (~205°); korál je jediný teplý akcent */
	--ink: #12355b; /* námořnická modrá: text, logo, patička */
	--coral: #ff5a47;
	--coral-dark: #e1402e;
	--sun: #ffc83d;
	--mint: #23c79a;
	--paper: #eaf5fc; /* světle blankytná: políčka menu, hledání, štítky */
	--sky: #0f72b8; /* oceánská modrá: aktivní menu, tlačítka, stránkování */
	--sky-band: linear-gradient(120deg, #0d5f9e 0%, #1683cc 100%); /* blok s názvem kategorie */
	--sun-bg: linear-gradient(165deg, #2fa6e4 0%, #5bbbec 45%, #96d4f3 100%); /* mořské pozadí pod hrami */
	--card: #ffffff;
	--line: #dbe9f3;
	--muted: #56708a;
	--accent: var(--coral);
	--accent-dark: var(--coral-dark);
	--accent-tint: #ffeceb; /* světlý korál pro najetí myší */
	--shadow: 0 1px 0 var(--line), 0 6px 18px rgba(18, 53, 91, .07);
	--radius: 14px;
	--display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
	--body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--wrap: 1292px; /* 3 karty po 300 px (= reklama 300×250) + mezery + boční pruh 300 px + okraje */
}
/* dívčí kategorie (Pro holky, Koňské hry): stejné rozložení, malinová místo korálu */
.theme-berry { --sky: #b8286a; --accent: #e0457f; --accent-dark: #c2306a; --accent-tint: #ffe3ee; --paper: #ffeef5; --line: #f6d3e1;
	--sun-bg: linear-gradient(165deg, #ec5f95 0%, #f487b1 45%, #ffbcd3 100%); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #5bbbec var(--sun-bg) fixed; color: var(--ink); font: 16px/1.5 var(--body); }
@media (max-width: 760px) { body { background-attachment: scroll; } }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.015em; line-height: 1.15; text-wrap: balance; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }

/* ---------------------------------------------------------- hlavička */
.top { background: #fff; position: relative; z-index: 10; border-bottom: 4px solid var(--accent); }
.top__in { display: flex; align-items: center; gap: 24px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex: none; }
.logo:hover { color: var(--ink); }
.logo__kapka { width: 44px; height: 44px; flex: none; overflow: visible; }
.logo__word { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -.045em; line-height: 1; }
.logo__word small { font-size: .42em; letter-spacing: 0; color: var(--coral); margin-left: 1px; }
.search { flex: 1 1 280px; max-width: 520px; display: flex; background: var(--paper); border: 2px solid transparent; border-radius: 12px; transition: border-color .15s; }
.search:focus-within { border-color: var(--ink); background: #fff; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); padding: 10px 14px; outline: none; }
.search input::placeholder { color: #8a88ad; }
.search button { border: 0; margin: 4px; padding: 0 16px; border-radius: 9px; background: var(--sky); color: #fff; font: 700 14px var(--body); cursor: pointer; }
.search button:hover { background: var(--accent); }

/* menu na zjemněném slunečném pruhu (korál → oranžová → slunce) pod bílou hlavičkou; dívčí kategorie malinový pruh */
.menu { background: #fff; }
/* menu kategorií: mřížka se dvěma stejně dlouhými řádky (počet sloupců --half/--third posílá šablona podle počtu položek),
   na menší obrazovce tři řádky, na mobilu posuvný pás */
.menu__in { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(var(--half, 8), minmax(0, 1fr)); gap: 8px; padding-bottom: 12px; }
.menu__item a { width: 100%; }
@media (max-width: 1100px) { .menu__in { grid-template-columns: repeat(var(--third, 6), minmax(0, 1fr)); } }
.menu__item { flex: none; }
.menu__item a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 10px; background: var(--paper); font-weight: 700; font-size: 15px; white-space: nowrap; color: var(--ink); }
.menu__item a::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--c); flex: none; }
.menu__item a:hover { background: var(--accent-tint); color: var(--accent-dark); }
.menu__item.active a { background: var(--sky); color: #fff; }
.menu__item.active a::before { background: #fff; }
.theme-berry .menu__item.active a { background: var(--accent); }

/* Kapka v hlavičce: kouká, mrká, občas širší úsměv nebo pusa do O (celý cyklus 14 s) */
.kapka--live .kapka__pupils { animation: kapka-look 14s ease-in-out infinite; transform-box: view-box; }
.kapka--live .kapka__eyes { animation: kapka-blink 7s infinite; transform-origin: 32px 40px; transform-box: view-box; }
.kapka--live .kapka__smile { animation: kapka-smile 14s infinite; }
.kapka--live .kapka__grin { opacity: 0; animation: kapka-grin 14s infinite; }
.kapka--live .kapka__o { opacity: 0; animation: kapka-o 14s infinite; transform-origin: 32px 54px; transform-box: view-box; }
.logo:hover .kapka--live .kapka__body { animation: kapka-bounce .5s ease-out; transform-origin: 32px 62px; transform-box: view-box; }
@keyframes kapka-look {
	0%, 12% { transform: translate(0, 0); }
	16%, 28% { transform: translate(-3.4px, -.6px); }
	32%, 44% { transform: translate(0, 0); }
	48%, 58% { transform: translate(-1.2px, -2.4px); }
	62%, 100% { transform: translate(0, 0); }
}
@keyframes kapka-blink { 0%, 46%, 50%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.1); } }
@keyframes kapka-smile { 0%, 30%, 40%, 66%, 76%, 100% { opacity: 1; } 31%, 39%, 67%, 75% { opacity: 0; } }
@keyframes kapka-grin { 0%, 30%, 40%, 100% { opacity: 0; } 31%, 39% { opacity: 1; } }
@keyframes kapka-o { 0%, 66%, 76%, 100% { opacity: 0; transform: scale(.4); } 67% { opacity: 1; transform: scale(1.15); } 70%, 75% { opacity: 1; transform: scale(1); } }
@keyframes kapka-bounce { 0% { transform: scale(1); } 40% { transform: scale(1.08, .92); } 70% { transform: scale(.96, 1.05); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
	.kapka--live *, .logo:hover .kapka--live .kapka__body { animation: none !important; }
}

/* ---------------------------------------------------------- obsah */
.page { padding-top: 26px; padding-bottom: 56px; min-height: 60vh; }
.flash { background: #e6f8f1; color: #13684f; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; }
.flash--error { background: #ffe8e5; color: #9c2414; }
/* nadpis a popis kategorie v pruhu její barvy (ztmavené k indigu, aby bílý text byl čitelný) – je hned vidět, kde jsi */
/* nadpis a popis kategorie v jednom bloku v barvě webu (indigo), dívčí kategorie malinový */
.intro { --band: var(--sky-band); position: relative; overflow: hidden; color: #fff; padding: 26px 30px; border-radius: 22px; margin-bottom: 26px; box-shadow: 0 10px 30px rgba(21, 90, 160, .22);
	background: radial-gradient(circle at 93% 18%, rgba(255, 90, 71, .38) 0 56px, transparent 57px), radial-gradient(circle at 82% 115%, rgba(255, 200, 61, .2) 0 90px, transparent 91px), var(--band); }
.theme-berry .intro { --band: #9c1f55; background: radial-gradient(circle at 93% 18%, rgba(255, 255, 255, .22) 0 56px, transparent 57px), radial-gradient(circle at 82% 115%, rgba(255, 255, 255, .14) 0 90px, transparent 91px), var(--band); }
.intro h1 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 6px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
/* značka u názvu kategorie: korálový čtvereček v barvě Kapky (u dívčích kategorií bílý) */
.intro h1::before { content: ""; align-self: center; width: 14px; height: 14px; border-radius: 4px; background: var(--coral); flex: none; }
.theme-berry .intro h1::before { background: #fff; }
.intro p, .intro .count { color: rgba(255, 255, 255, .88); }
.intro p { margin: 0; max-width: 72ch; font-size: 17px; }
.count { font-family: var(--body); font-weight: 600; font-size: 15px; letter-spacing: 0; color: var(--muted); }
.search-note { color: var(--muted); }
.section-title { font-size: 24px; margin: 0 0 14px; color: #fff; text-shadow: 0 2px 0 rgba(18, 53, 91, .3), 0 0 18px rgba(18, 53, 91, .25); }

/* pás nejhranějších her */
.strip { margin-bottom: 30px; }
.strip__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mini { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; background: var(--card); border-radius: 12px; padding: 6px; box-shadow: var(--shadow); transition: background .15s, box-shadow .15s; }
/* celý řádek je odkaz na hru a po najetí se podbarví barvou Kapky */
.mini:hover { background: var(--accent-tint); box-shadow: 0 0 0 2px var(--accent); }
.mini__name::after { content: ""; position: absolute; inset: 0; }
.mini:hover .mini__name { color: var(--accent-dark); }
.mini__img { display: block; width: 96px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; background: #ece9ff; }
.mini__img[src*="priserka"] { content: url(/assets/img/kapka.svg); object-fit: contain; padding: 6px; }
.mini__name { display: block; font-family: var(--display); font-weight: 800; font-size: 15px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini .tags { margin-top: 3px; position: relative; z-index: 1; }

/* výpis her + boční pruh s reklamou (jen široké obrazovky) */
.listing { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.listing__side { position: sticky; top: 16px; }
/* výška řádku = reklama 300×250; náhled vyplní, co zbude po názvu, textu a kategoriích */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 250px; gap: 18px; }
.card { position: relative; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); background: var(--accent-tint); box-shadow: 0 0 0 2px var(--accent), 0 12px 26px rgba(18, 53, 91, .12); }
.card:hover .card__name a { color: var(--accent-dark); }
.card:hover .tags a { background: #fff; }
.card__link { display: block; flex: 1 1 auto; min-height: 0; }
.card__img { display: block; height: 100%; background: #ece9ff; overflow: hidden; }
.card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb-none { background: #ece9ff url(/assets/img/kapka.svg) center / 34% no-repeat; }
.thumb-none img { display: none; }
.card__name { margin: 10px 14px 3px; font-size: 18px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__name a::after { content: ""; position: absolute; inset: 0; } /* celá karta je odkaz */
.card__text { margin: 0 14px; font-size: 14px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 2.9em; flex: none; margin-bottom: 8px; }
.card .tags { flex: none; flex-wrap: nowrap; overflow: hidden; margin: 0 14px; padding-bottom: 12px; position: relative; z-index: 1; } /* jeden řádek kategorií (prolinkování); co se nevejde, je na stránce hry */
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags a { display: inline-block; white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--paper); border-radius: 7px; padding: 2px 9px; }
.tags a:hover { color: #fff !important; background: var(--accent) !important; }
.badge { position: absolute; z-index: 2; left: 10px; top: 10px; font-size: 12px; font-weight: 700; background: #fff; color: var(--ink); border-radius: 7px; padding: 2px 8px; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.badge small { font-size: 10px; }
.badge--new { background: var(--sun); }

/* reklama: zřetelně odlišná od karet her (bez nápisu „Reklama“) */
.ad { display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0 auto; max-width: 100%; overflow: hidden; position: relative; }
.ad ins { display: block; }
.ad__empty { display: flex; align-items: center; justify-content: center; text-align: center; max-width: 100%; border: 1.5px dashed #c9c7de; border-radius: 10px; color: #8a88ad; font-size: 12px;
	background: repeating-linear-gradient(135deg, #fbfbfe 0 10px, #f4f3fa 10px 20px); }
.ad--mobile { display: none; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 30px 0 0; font-weight: 700; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.pager a:hover { background: #ecebf6; color: var(--ink); }
.pager__current { background: var(--sky) !important; color: #fff; }
.theme-berry .pager__current { background: var(--accent) !important; }
.pager__gap { background: none !important; box-shadow: none !important; }

/* ---------------------------------------------------------- stránka hry */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.detail--wide { grid-template-columns: minmax(0, 1fr); }
.detail__col { min-width: 0; }
.box { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); }
.detail__main { --pad-x: 24px; padding: 20px var(--pad-x) 26px; }
.detail__head { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.detail__title { display: flex; align-items: center; gap: 12px; }
.detail__title h1 { margin: 0; font-size: clamp(26px, 3.4vw, 36px); }
.pill { background: var(--sun); border-radius: 8px; padding: 2px 9px; font-weight: 700; font-size: 14px; }
.player { position: relative; background: var(--ink); border-radius: 14px; overflow: hidden; margin: 0 auto; max-width: 100%; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.player--scaled iframe { width: var(--native-w); height: var(--native-h); transform: scale(var(--scale)); transform-origin: 0 0; }
.player:fullscreen { border-radius: 0; }
.player:fullscreen iframe { width: 100%; height: 100%; transform: none; }
.player-bar { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; flex-wrap: wrap; }
.game-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1; position: relative; }
.game-actions__hint { margin: 0; font-size: 13px; color: var(--muted); }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 10px; padding: 10px 16px; font: 700 15px var(--body); cursor: pointer; color: var(--ink); background: var(--paper); }
.btn:hover { background: #ecebf6; }
.btn--orange { background: var(--sun); }
.btn--orange:hover { background: #ffb800; }
.btn--orange::before { content: ""; width: 14px; height: 14px; border: 2.5px solid currentColor; border-radius: 3px; clip-path: polygon(0 0, 40% 0, 40% 25%, 25% 25%, 25% 40%, 0 40%, 0 60%, 25% 60%, 25% 75%, 40% 75%, 40% 100%, 60% 100%, 60% 75%, 75% 75%, 75% 60%, 100% 60%, 100% 40%, 75% 40%, 75% 25%, 60% 25%, 60% 0, 100% 0, 100% 100%, 0 100%); }
.share { position: relative; }
.share__menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 5; min-width: 190px; padding: 6px; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(18, 53, 91, .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: var(--ink); cursor: pointer; border-radius: 8px; }
.share__menu a:hover, .share__menu button:hover { background: var(--paper); }
.detail__main > .note { color: var(--muted); font-size: 13px; margin: 0 0 6px; }
.ad--under { margin: 18px auto 4px; padding-top: 14px; border-top: 1px solid var(--line); width: 100%; }

.controls, .about, .gallery, .videos { margin-top: 24px; }
.controls h2, .about h2, .gallery h2, .videos h2 { font-size: 21px; margin: 0 0 10px; }
.controls__list { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 14px 26px; }
.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: 13px; color: var(--muted); }
.controls kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 7px; background: #fff; border: 1.5px solid #c9c7de; border-bottom-width: 3.5px;
	border-radius: 7px; font: 700 12px/1 var(--body); color: var(--ink); text-transform: uppercase; }
.controls kbd.k-wide { padding: 0 10px; text-transform: none; font-weight: 600; }
.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, 28px); grid-template-rows: 28px 28px; 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; }
.controls__text { margin: 0; color: var(--muted); }
.about { display: flex; gap: 20px; align-items: flex-start; }
.about__img { width: 220px; border-radius: 12px; flex: none; }
.about p { margin: 0; white-space: pre-line; max-width: 72ch; }
.gallery__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.gallery__item img { display: block; width: 100%; border-radius: 10px; }
.video { position: relative; aspect-ratio: 16 / 9; margin-bottom: 12px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 95vw; max-height: 95vh; overflow: visible; }
.lightbox::backdrop { background: rgba(18, 53, 91, .85); }
.lightbox img { display: block; max-width: 95vw; max-height: 90vh; border-radius: 10px; }
.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; }

.side { min-width: 0; display: grid; gap: 12px; align-content: start; }
.side > h2 { font-size: 20px; margin: 6px 0 0; }
.side > .ad { margin: 0; }
.side-list { display: grid; gap: 10px; }
.side-game { position: relative; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: center; background: var(--card); border-radius: 12px; padding: 6px; box-shadow: var(--shadow); transition: background .15s, box-shadow .15s; }
.side-game:hover { background: var(--accent-tint); box-shadow: 0 0 0 2px var(--accent); color: var(--accent-dark); }
.side-game .badge { left: 10px; top: 10px; font-size: 10px; padding: 1px 6px; }
.side-game > img, .side-game__img { display: block; width: 110px; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: #ece9ff; }
.side-game__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.side-game__none { object-fit: contain; padding: 8px; }
.side-game__name { font-family: var(--display); font-weight: 800; font-size: 15px; line-height: 1.2; }
.detail--wide .side { grid-template-columns: minmax(0, 1fr); }
.detail--wide .side-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* statické stránky */
.static-page { max-width: 820px; padding: 26px 30px; }
.static-page h1 { font-size: 32px; margin: 0 0 14px; }
.static-page__content { line-height: 1.65; }
.static-page__content a { color: var(--accent-dark); text-decoration: underline; }
.static-page__content table { border-collapse: collapse; }
.static-page__content td, .static-page__content th { border: 1px solid var(--line); padding: 4px 8px; }

/* ---------------------------------------------------------- patička */
.foot { background: var(--ink); color: #cfcde6; padding: 40px 0 20px; font-size: 15px; }
.foot__in { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.foot__brand p { margin: 12px 0 0; max-width: 36ch; }
.logo--foot { color: #fff; }
.logo--foot:hover { color: #fff; }
.logo--foot .logo__kapka { width: 36px; height: 36px; }
.logo--foot .logo__word { font-size: 28px; }
.logo--foot .logo__word small { color: var(--coral); }
.foot__col { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.foot__title { margin: 0 0 4px; font-family: var(--display); font-weight: 800; font-size: 17px; color: #fff; }
.foot a:hover { color: var(--coral); }
.foot__social { display: flex; gap: 12px; flex-wrap: wrap; }
.foot__credit { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: #9e9cc0; }

/* ---------------------------------------------------------- menší obrazovky */
@media (max-width: 1291px) { /* užší než 3 karty po 300 px + boční pruh */
	.listing { grid-template-columns: minmax(0, 1fr); }
	.listing__side { display: none; }
}
@media (max-width: 1100px) {
	.detail { grid-template-columns: minmax(0, 1fr); }
	.side { grid-template-columns: minmax(0, 1fr); }
	.side-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
	.strip__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.foot__in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 967px) { /* 3 karty by byly užší než reklama 300 px */
	.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cards__ad--last { display: none !important; }
}
@media (max-width: 760px) {
	.ad--desktop { display: none; }
	.ad--mobile { display: flex; }
	.top__in { gap: 10px 16px; }
	.logo__word { font-size: 28px; }
	.logo__kapka { width: 38px; height: 38px; }
	.search { flex-basis: 100%; max-width: none; order: 3; }
	.menu__in { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
	.menu__in::-webkit-scrollbar { display: none; }
	.menu__item a { width: auto; }
	.about { flex-direction: column; }
	.about__img { width: 100%; max-width: 360px; }
	.detail__main { --pad-x: 14px; }
}
@media (max-width: 600px) {
	/* karty jako řádky: náhled vlevo, název a dva řádky textu vpravo */
	.cards { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: 10px; }
	.cards__ad--last { display: flex !important; }
	.card { display: grid; grid-template-columns: 128px minmax(0, 1fr); grid-template-rows: auto auto 1fr; padding: 6px; border-radius: 12px; }
	.card:hover { transform: none; }
	.card__link { grid-row: 1 / span 3; align-self: center; }
	.card__img { border-radius: 8px; height: auto; aspect-ratio: 16 / 10; }
	.card__name { margin: 4px 10px 2px; font-size: 16px; }
	.card__text { margin: 0 10px; font-size: 13px; height: auto; }
	.card .tags { display: none; }
	.badge { left: 10px; top: 10px; font-size: 10px; }
	.strip__list { grid-template-columns: minmax(0, 1fr); }
	.strip__list .mini:nth-child(n+5) { display: none; } /* na mobilu jen 4 nejhranější, ať jsou hry brzy vidět */
	.intro, .theme-berry .intro { background: var(--band); padding: 20px; } /* na mobilu blok bez kruhů */
	.foot__in { grid-template-columns: 1fr; }
	.page { padding-top: 18px; }
}


.intro .search-note { color: #fff; }

/* 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; }
