/* PowerHry.cz – vzhled „Power“ podle původního webu (ocelově modrá šrafovaná hlavička, grafitová lišta, oranžové šikmé logo,
   králíček s mrkví, krémové pozadí). Návrh: PowerHry2026/design/navrh-power.html.
   Rozložení: levý sloupec 300 px (tipy + plovoucí 300×600), pod 1340 px 160 px (160×600), hlavní mřížka 3 sloupce,
   aby reklama 300×250 seděla do políčka (24 her + 3 reklamy = 9 řádků); pod 1160 px 2 sloupce, na mobilu bez levého sloupce. */

/* písma lokálně (Exo 2 – nadpisy a logo, Rubik – text), když soubory chybí, použijí se systémová */
@font-face { font-family: "Exo 2"; font-style: normal; font-weight: 500 900; font-display: swap; src: url(../fonts/exo2-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Exo 2"; font-style: normal; font-weight: 500 900; font-display: swap; src: url(../fonts/exo2-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: "Exo 2"; font-style: italic; font-weight: 500 900; font-display: swap; src: url(../fonts/exo2-italic-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Exo 2"; font-style: italic; font-weight: 500 900; font-display: swap; src: url(../fonts/exo2-italic-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: Rubik; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/rubik-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Rubik; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/rubik-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 {
	--blue-900: #15506a;
	--blue-700: #1e6887;
	--blue-500: #3f97b9;
	--graphite-900: #1f2124;
	--graphite-800: #2b2e32;
	--graphite-700: #3b3f44;
	--orange: #ff8a1e;
	--orange-dark: #d76e08;
	--orange-deep: #a84f00;
	--green: #5f860b;
	--green-light: #9ccc37;
	--cream: #efefdf;
	--paper: #fbfbf5;
	--ink: #23262a;
	--muted: #6b6b60;
	--radius: 14px;
	--shadow: 0 1px 2px rgb(40 40 20 / .08), 0 6px 18px -8px rgb(40 40 20 / .25);
	--head: "Exo 2", "Segoe UI", system-ui, sans-serif;
	--c: #8a8f96; /* barva kategorie, přepisuje [data-cat] z layoutu */
}
* { box-sizing: border-box; }
html { background: var(--cream); }
body {
	margin: 0; color: var(--ink);
	font: 400 15px/1.5 Rubik, "Segoe UI", system-ui, sans-serif;
	background: radial-gradient(1200px 400px at 50% 0, rgb(255 255 255 / .55), transparent 70%), var(--cream);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.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: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 7px; vertical-align: 1px; }

/* ---------- hlavička ---------- */
.top {
	position: relative; overflow: hidden;
	background:
		repeating-linear-gradient(135deg, rgb(255 255 255 / .07) 0 1px, transparent 1px 5px),
		linear-gradient(180deg, var(--blue-900) 0%, var(--blue-700) 45%, var(--blue-500) 100%);
}
.top::after {
	content: ""; position: absolute; inset: auto 0 -60% 0; height: 140%; pointer-events: none;
	background: radial-gradient(600px 220px at 22% 100%, rgb(255 255 255 / .18), transparent 70%);
}
.top__in { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 22px; min-height: 150px; }
.top__home { flex: none; }
.mascot { width: 148px; height: 135px; margin-bottom: -2px; filter: drop-shadow(0 6px 8px rgb(0 0 0 / .25)); }
.brand { padding: 22px 0 28px; }
.logo { font: italic 900 38px/1 var(--head); letter-spacing: .5px; }
.logo a {
	display: inline-block; transform: rotate(-6deg); transform-origin: left bottom;
	padding: 6px 20px 8px 16px; border-radius: 10px; color: #fff;
	background: linear-gradient(180deg, #ffa340, var(--orange) 55%, var(--orange-dark));
	box-shadow: 0 3px 0 var(--orange-deep), 0 10px 18px -6px rgb(0 0 0 / .45);
	text-shadow: 0 2px 0 rgb(150 60 0 / .45);
}
.logo small { font-size: 22px; font-weight: 800; opacity: .9; }
.slogan { margin: 16px 0 0 4px; color: #e6f4fa; font-weight: 500; }
.slogan b { color: #fff; }
.search { margin: 0 0 30px auto; display: flex; background: #fff; border-radius: 999px; padding: 4px; box-shadow: 0 6px 18px -8px rgb(0 0 0 / .5); }
.search input { border: 0; outline: 0; background: transparent; font: inherit; padding: 8px 14px; width: 260px; min-width: 0; }
.search button { border: 0; border-radius: 999px; padding: 8px 18px; cursor: pointer; font: 800 14px var(--head); color: #fff; background: var(--orange); }
.search button:hover { background: var(--orange-dark); }

/* ---------- lišta s kategoriemi ---------- */
.bar {
	position: sticky; top: 0; z-index: 10;
	background: linear-gradient(180deg, var(--graphite-700), var(--graphite-800) 40%, var(--graphite-900));
	border-top: 1px solid rgb(255 255 255 / .35);
	box-shadow: 0 4px 12px -4px rgb(0 0 0 / .35);
}
.bar__in { display: flex; gap: 6px; overflow-x: auto; padding-top: 9px; padding-bottom: 9px; scrollbar-width: none; }
.bar__in::-webkit-scrollbar { display: none; }
.bar a { flex: none; padding: 7px 15px; border-radius: 999px; font: 600 14.5px var(--head); letter-spacing: .2px; color: #d9dde2; transition: background .15s, color .15s; }
.bar a:hover { background: rgb(255 255 255 / .09); color: #fff; }
.bar a.on { background: var(--orange); color: #fff; box-shadow: inset 0 -2px 0 rgb(0 0 0 / .18); }
.bar a.on .dot { background: #fff; }

/* ---------- reklamy (bez popisku) ---------- */
.ad { display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0 auto; max-width: 100%; overflow: hidden; }
.ad ins { display: block; max-width: 100%; }
.ad__empty {
	display: flex; align-items: center; justify-content: center; text-align: center; max-width: 100%;
	color: #9b9b85; font-size: 13px; border-radius: 10px;
	background: repeating-linear-gradient(135deg, #e6e6d2 0 8px, #ececdb 8px 16px);
}
.ad--mobile, .ad--tablet { display: none; }
.top-ad .ad { margin-top: 22px; }
.ad--band { margin: 30px auto; }

/* ---------- rozložení ---------- */
.layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; margin-top: 24px; align-items: stretch; }
.main { min-width: 0; }
.panel { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.h { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: italic 800 23px/1.2 var(--head); color: var(--graphite-800); }
.h::before { content: ""; flex: none; width: 6px; height: 22px; border-radius: 3px; background: var(--orange); transform: skewX(-12deg); }
.h small { font: 500 15px Rubik, sans-serif; color: var(--muted); }
.h .more { margin-left: auto; font: 500 14px Rubik, sans-serif; color: var(--blue-700); }
.h .more:hover { text-decoration: underline; }
.sect + .sect { margin-top: 34px; }
.flash { background: #fff6e4; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-weight: 600; }
.flash--error { background: #ffe1dc; }
.lead { color: var(--muted); }

/* tipy vlevo – jako novinky na starém webu: náhled, název, kus popisu */
.tips { display: grid; gap: 4px; }
.tips .h { font-size: 21px; margin-bottom: 8px; }
.tip { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 8px; border-radius: 10px; transition: background .15s; }
.tip:hover { background: #f1f1e3; }
.tip img { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; background: #dde; }
.tip strong { display: block; font: 600 15.5px/1.25 var(--head); color: var(--orange-dark); }
.tip__text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.4; color: var(--muted); margin-top: 3px; }
.side__sticky { position: sticky; top: 74px; margin-top: 24px; }
.side .ad--narrow { display: none; }

/* ---------- karty her ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { position: relative; display: block; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(40 40 20 / .1), 0 14px 26px -10px rgb(40 40 20 / .4); }
.card__pic { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #ccd; }
.card__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card__pic img { transform: scale(1.05); }
.card__pic img.card__none { object-fit: contain; padding: 10px; background: linear-gradient(180deg, var(--blue-700), var(--blue-500)); }
.card__go {
	position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 50%;
	display: grid; place-items: center; background: var(--orange); color: #fff; font-size: 16px;
	box-shadow: 0 3px 0 var(--orange-deep), 0 6px 14px -4px rgb(0 0 0 / .4);
	opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s;
}
.card:hover .card__go, .card:focus-visible .card__go { opacity: 1; transform: none; }
.card__b { display: block; padding: 12px 14px 13px; }
.card__t { display: block; font: 600 16px/1.25 var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__m { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; min-height: 21px; }
.chip { display: inline-block; padding: 2px 9px; border-radius: 999px; font-weight: 500; font-size: 12px; color: #fff; background: var(--c); white-space: nowrap; }
.likes { font-weight: 500; font-size: 12.5px; color: var(--green); white-space: nowrap; }
.likes::before { content: "👍 "; }
.badge {
	position: absolute; top: 10px; left: -4px; padding: 3px 12px 3px 10px; transform: skewX(-10deg);
	background: var(--green-light); color: #24340a; font: italic 800 12px var(--head); text-transform: uppercase; letter-spacing: .5px;
	border-radius: 0 6px 6px 0; box-shadow: 0 2px 6px -2px rgb(0 0 0 / .35);
}
.rank {
	position: absolute; top: 8px; left: 8px; min-width: 34px; height: 34px; border-radius: 9px; padding: 0 8px;
	display: grid; place-items: center; background: rgb(31 33 36 / .82); color: #fff; font: italic 900 18px var(--head);
}
.rank--gold { background: var(--orange); }
/* políčko s reklamou: přesně 300×250 uprostřed, bez rámečku karty */
.slot { display: grid; place-items: center; min-height: 250px; }

/* stránkování */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 26px; flex-wrap: wrap; }
.pager a, .pager span {
	min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; display: grid; place-items: center;
	font: 600 15px var(--head); color: var(--graphite-800); background: var(--paper); box-shadow: var(--shadow);
}
.pager a:hover { background: #fff; color: var(--orange-dark); }
.pager .pager__current { background: var(--orange); color: #fff; box-shadow: 0 3px 0 var(--orange-deep); }
.pager .pager__gap { background: none; box-shadow: none; min-width: 20px; padding: 0; color: var(--muted); }
.pager .pager__next { padding: 0 18px; background: var(--graphite-800); color: #fff; }
.pager .pager__next:hover { background: var(--graphite-700); color: #fff; }

/* kategorie, drobečky, text o webu */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--blue-700); }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 6px; }
.cat-head { margin-bottom: 18px; }
.cat-head .h { margin-bottom: 4px; }
.cat-head .h .dot { width: 12px; height: 12px; margin-right: 0; }
.cat-head__count { font-size: 13px; color: var(--muted); }
.cat-head p { margin: 8px 0 0; max-width: 760px; }
.about-site { margin-top: 40px; padding: 20px 22px; border-radius: var(--radius); background: rgb(255 255 255 / .45); color: var(--muted); }
.about-site h2 { font: italic 800 19px var(--head); color: var(--graphite-800); margin-bottom: 6px; }
.about-site p { margin: 0; }

/* ---------- stránka hry ---------- */
.game { background: linear-gradient(180deg, var(--graphite-800), var(--graphite-900)); border-radius: var(--radius); padding: 0 12px 12px; box-shadow: var(--shadow); border-top: 4px solid var(--c); }
.game__bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 4px; color: #fff; }
.game__bar h1 { font: italic 800 24px/1.2 var(--head); margin-right: auto; }
.game__bar .likes { color: var(--green-light); font-size: 14px; }
.ibtn { border: 0; cursor: pointer; height: 34px; min-width: 34px; padding: 0 12px; border-radius: 999px; background: rgb(255 255 255 / .12); color: #fff; font: 600 13px var(--head);
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ibtn:hover { background: rgb(255 255 255 / .22); }
.ibtn--full { background: var(--orange); }
.ibtn--full:hover { background: var(--orange-dark); }
.votes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vote { padding: 0; width: 38px; }
.vote svg { width: 17px; height: 17px; }
.vote--down svg { transform: scaleY(-1); }
.vote--up[aria-pressed="true"] { background: #6aa77a; }
.vote--down[aria-pressed="true"] { background: #d27b6a; }
.votes__hint, .votes__rating { font-size: 12px; color: #d9dde2; }
.player { position: relative; background: #000; margin: 0 auto; max-width: 100%; border-radius: 10px; overflow: hidden; }
.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; }
.note { font-size: 12px; color: var(--muted); margin: 8px 4px 0; }
.info { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; margin-top: 22px; }
.info .h { font-size: 20px; margin-bottom: 10px; }
.panel__text { margin: 0 0 12px; white-space: pre-line; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags .chip { font-size: 13px; padding: 3px 11px; }
.meta { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.meta:empty { display: none; }
.meta a { color: var(--blue-700); }
.controls__list { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.control { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.control__inputs { display: flex; align-items: center; gap: 10px; min-height: 58px; }
.control__label { font-size: 12px; font-weight: 600; color: var(--muted); }
.controls kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 7px; background: #fff; color: var(--ink);
	border: 1px solid #d4d4c0; border-bottom-width: 3px; border-radius: 6px; font: 600 13px var(--head); text-transform: uppercase; }
.controls kbd.k-wide { padding: 0 10px; text-transform: none; }
.controls kbd img { filter: brightness(0); }
.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; }
.controls__text { margin: 0; }
.gallery, .videos { margin-top: 30px; }
.gallery__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.gallery__item img { display: block; width: 100%; border-radius: 10px; }
.video { position: relative; aspect-ratio: 16 / 9; margin-bottom: 10px; border-radius: 12px; overflow: hidden; }
.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: rgb(20 22 26 / .85); }
.lightbox img { display: block; max-width: 95vw; max-height: 90vh; border-radius: 12px; }
.lightbox__close { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }

/* statické stránky (zásady, kontakt) */
.main > h1 { font: italic 800 26px var(--head); margin-bottom: 14px; }
.page-content, .main > .content { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px; }

/* ---------- patička ---------- */
.foot {
	margin-top: 56px; color: #c9cdd2; font-size: 14px;
	background:
		repeating-linear-gradient(135deg, rgb(255 255 255 / .03) 0 1px, transparent 1px 5px),
		linear-gradient(180deg, var(--graphite-800), var(--graphite-900));
	border-top: 4px solid var(--orange);
}
.foot__in { display: flex; align-items: center; gap: 28px; padding-top: 26px; padding-bottom: 26px; flex-wrap: wrap; }
.foot__in img { width: 76px; height: 93px; border-radius: 12px; }
.foot__links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot__links a:hover { color: #fff; }
.foot__copy { margin: 0 0 0 auto; color: #8d939a; font-size: 13px; }

/* ---------- menší obrazovky ---------- */
/* užší: levý sloupec 160 px – tipy jen s náhledem a názvem, reklama 160×600 */
@media (max-width: 1339px) {
	.layout { grid-template-columns: 160px minmax(0, 1fr); }
	.tips { padding: 12px 10px; }
	.tips .h { font-size: 18px; }
	.tip { grid-template-columns: 1fr; gap: 6px; padding: 6px; }
	.tip img { width: 100%; height: auto; aspect-ratio: 3 / 2; }
	.tip strong { font-size: 14px; }
	.tip__text { display: none; }
	.side .ad--wide { display: none; }
	.side .ad--narrow.ad--desktop { display: flex; }
	.info { grid-template-columns: 1fr; }
}
/* dva sloupce her: reklama 300×250 zabere celý řádek */
@media (max-width: 1159px) {
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.slot { grid-column: 1 / -1; }
	.grid--top .card:nth-child(3) { display: none; }
}
@media (max-width: 1001px) and (min-width: 761px) {
	.ad--leaderboard.ad--desktop { display: none; }
	.ad--leaderboard.ad--tablet { display: flex; }
}
/* mobil: bez levého sloupce */
@media (max-width: 760px) {
	.layout { grid-template-columns: 1fr; }
	.side { display: none; }
	.ad--desktop, .ad--tablet { display: none; }
	.ad--mobile { display: flex; }
	.top__in { min-height: 0; flex-wrap: wrap; gap: 10px; }
	.mascot { width: 88px; height: auto; }
	.brand { padding: 14px 0 16px; }
	.logo { font-size: 28px; }
	.slogan { display: none; }
	.search { width: 100%; margin: 0 0 14px; }
	.search input { width: 100%; flex: 1; }
	.grid { gap: 12px; }
	.card__t { font-size: 14.5px; }
	.card__m .chip { display: none; }
	.game { padding: 0 6px 6px; }
	.game__bar h1 { font-size: 20px; }
	.foot__copy { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; }
}
