/* app.presento.cz – společný vzhled všech stránek */
:root {
  --bg: #0d182c;
  --bg-2: #13223d;
  --card: #182a4a;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f7fc;
  --soft: #b6c4dc;
  --accent: #ff8a3d;
  --accent-2: #ffc233;
  --link: #8ab8ff;
  --radius: 20px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
.wrap { width: min(var(--max), 100% - 32px); margin: 0 auto; }

/* Jazyk: zobrazí se jen texty zvoleného jazyka */
html[data-lang='cs'] [lang='en']:not(html),
html[data-lang='en'] [lang='cs']:not(html) { display: none !important; }

/* Hlavička */
.top { position: sticky; top: 0; z-index: 10; background: rgba(13, 24, 44, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: 0.01em; }
.brand-logo { height: 24px; width: auto; }
.brand-tag { padding: 2px 8px; border-radius: 999px; background: rgba(255, 138, 61, 0.18); color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.lang-switch { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.lang-switch button { border: 0; background: none; color: var(--soft); font: inherit; font-weight: 800; font-size: 13px; padding: 5px 11px; border-radius: 999px; cursor: pointer; }
.lang-switch button[aria-pressed='true'] { background: var(--accent); color: #fff; }

/* Úvod */
.hero { padding: 64px 0 40px; }
.hero h1 { font-size: clamp(30px, 6vw, 48px); line-height: 1.12; margin: 0 0 14px; letter-spacing: -0.01em; }
.hero p { color: var(--soft); font-size: 18px; max-width: 620px; margin: 0; }

/* Karty her */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; padding-bottom: 64px; }
.game-card { display: flex; flex-direction: column; gap: 14px; padding: 0 18px 18px; overflow: hidden; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.game-head { display: flex; gap: 14px; align-items: flex-end; }
.game-head img { width: 64px; height: 64px; border-radius: 16px; flex: none; margin-top: -32px; border: 3px solid var(--card); position: relative; z-index: 1; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35); }
.game-head h2 { margin: 0; font-size: 20px; line-height: 1.2; }
.game-head .tag { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 800; color: var(--accent-2); text-transform: uppercase; letter-spacing: 0.08em; }
.game-card p { margin: 0; color: var(--soft); }
.game-card .actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.game-banner { display: block; margin: 0 -18px; border-bottom: 1px solid var(--line); }
.game-banner img { width: 100%; aspect-ratio: 1024 / 500; object-fit: cover; transition: transform 0.3s; }
.game-banner:hover img { transform: scale(1.03); }
.game-card.soon { padding: 18px; border-style: dashed; justify-content: center; align-items: center; text-align: center; color: var(--soft); min-height: 110px; }

/* Tlačítka */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 14px; font-weight: 800; text-decoration: none; font-size: 15px; }
.btn.primary { background: linear-gradient(180deg, #ffa25c, var(--accent)); color: #fff; box-shadow: 0 4px 0 #c45a14; }
.btn.ghost { background: var(--bg-2); color: var(--text); border: 1px solid var(--line); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(2px); }

/* Stránka hry */
.game-hero { position: relative; overflow: hidden; padding: 48px 0 56px; text-align: center; }
.game-hero::before { content: ''; position: absolute; inset: 0; background: url('../stack-rivals/img/pozadi.webp') center / cover no-repeat; opacity: 0.35; }
.game-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 24, 44, 0.2), var(--bg)); }
.game-hero > .wrap { position: relative; z-index: 1; }
.game-logo { width: min(320px, 72vw); margin: 0 auto 10px; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45)); }
.game-hero .lead { font-size: 19px; color: var(--text); max-width: 640px; margin: 0 auto 24px; }
.game-hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.note { font-size: 13px; color: var(--soft); margin-top: 12px; }

section.block { padding: 36px 0; }
section.block h2 { font-size: 26px; margin: 0 0 18px; }
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.features li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.features .ico { font-size: 22px; line-height: 1.2; flex: none; }
.features b { display: block; }
.features span { color: var(--soft); font-size: 14px; }

/* Galerie snímků přes celou šířku */
html { overflow-x: clip; }
html.no-scroll { overflow: hidden; }
.gallery-hint { margin: -8px 0 16px; color: var(--soft); font-size: 14px; }
.gallery { position: relative; width: 100vw; margin-left: calc(50% - 50vw); }
.shots {
  --pad: max(16px, calc((100vw - var(--max)) / 2));
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px var(--pad) 18px; scroll-padding-inline: var(--pad);
  scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab;
}
.shots::-webkit-scrollbar { display: none; }
.shots.dragging { cursor: grabbing; scroll-snap-type: none; }
.shots.dragging img { pointer-events: none; }
.shots img {
  width: clamp(230px, 64vw, 330px); height: auto; aspect-ratio: 9 / 16; object-fit: cover; flex: none;
  border-radius: 24px; scroll-snap-align: start; background: var(--bg-2); user-select: none; -webkit-user-drag: none;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45); border: 1px solid var(--line); cursor: zoom-in;
  transition: transform 0.25s;
}
.shots img:hover { transform: translateY(-4px); }
.g-nav {
  position: absolute; top: calc(50% - 30px); width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(13, 24, 44, 0.82); color: #fff; display: grid; place-items: center; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); transition: opacity 0.2s, transform 0.2s;
}
.g-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.g-nav:hover:not(:disabled) { transform: scale(1.08); background: var(--accent); }
.g-nav:disabled { opacity: 0; pointer-events: none; }
.g-prev { left: max(10px, calc((100vw - var(--max)) / 2 - 26px)); }
.g-next { right: max(10px, calc((100vw - var(--max)) / 2 - 26px)); }
.g-dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.g-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.25); cursor: pointer; transition: width 0.25s, background 0.25s; }
.g-dots button[aria-current='true'] { width: 28px; background: var(--accent); }

/* Snímek přes celou obrazovku */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(5, 10, 20, 0.94); }
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; max-width: 92vw; width: auto; height: auto; border-radius: 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.lb-close { position: absolute; top: 14px; right: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.lb-nav:hover, .lb-close:hover { background: var(--accent); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: var(--soft); font-weight: 800; font-size: 14px; }
@media (max-width: 560px) {
  .g-nav { display: none; }
  .lb-nav { width: 44px; height: 44px; font-size: 28px; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
}

.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.info-grid div { padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.info-grid small { display: block; color: var(--soft); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; }

/* Text zásad */
.doc { max-width: 760px; padding: 40px 0 64px; }
.doc h1 { font-size: clamp(26px, 5vw, 34px); line-height: 1.2; margin: 0 0 4px; }
.doc h2 { font-size: 20px; margin: 30px 0 6px; }
.doc .meta { color: var(--soft); margin-top: 0; }
.doc p { color: #dbe4f2; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; margin-bottom: 20px; }

/* Patička */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--soft); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer a { color: var(--soft); }

@media (max-width: 560px) {
  .hero { padding: 40px 0 28px; }
  .hero p { font-size: 16px; }
  .brand-logo { height: 20px; }
}
