/* hryzdarma.bua.cz – Epic Games Tracker */
:root {
  --bg: #0e0e10;
  --bg-footer: #0a0a0c;
  --surface: #161619;
  --surface-2: #18181b;
  --surface-3: #1c1c20;
  --hover: #1f1f24;
  --hover-2: #222227;
  --border: #1d1d21;
  --border-card: #232328;
  --border-soft: #1f1f24;
  --border-ui: #26262b;
  --border-btn: #2e2e35;
  --border-hover: #34343c;
  --border-hover-2: #3a3a42;
  --text: #f4f4f5;
  --text-2: #a1a1aa;
  --text-3: #8a8a93;
  --muted: #71717a;
  --strong: #e4e4e7;
  --accent: #0a72e6;
  --accent-hover: #1683fa;
  --link: #3d9bff;
  --link-hover: #7cbcff;
  --pad-x: clamp(16px, 4vw, 40px);
  --gap-section: clamp(56px, 8vw, 96px);
  --header-h: 64px;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
input::placeholder { color: var(--muted); }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 50;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

.page { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(14, 14, 16, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  max-width: 1320px; margin: 0 auto; padding: 0 var(--pad-x);
  display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); height: var(--header-h);
}
.logo {
  color: #fff; font-weight: 800; font-size: clamp(17px, 2vw, 20px);
  letter-spacing: -0.03em; white-space: nowrap;
}
.logo:hover { color: #fff; }
.logo span { color: var(--link); }
.logo--lg { font-size: 22px; }
.site-nav {
  display: flex; gap: 2px; overflow-x: auto; flex: 1; min-width: 0;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  padding: 8px 12px; border-radius: 8px; color: var(--text-2);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  min-height: 36px; display: inline-flex; align-items: center;
  transition: color .15s, background-color .15s;
}
.site-nav a:hover { color: #fff; background: var(--surface-2); }
.site-nav a.is-active { color: #fff; background: var(--surface-3); }

/* ---------- Buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 12px; cursor: pointer;
  font-weight: 600; text-align: center; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--primary:disabled { background: #2a4f7a; cursor: progress; }
.btn--ghost { border-color: var(--border-btn); color: #fff; background: transparent; }
.btn--ghost:hover { background: var(--hover); color: #fff; }
.btn--sm { padding: 9px 16px; border-radius: 8px; font-size: 14px; min-height: 38px; }
.btn--md { height: 50px; padding: 0 32px; font-size: 15px; background: var(--surface); }
.btn--md:hover { background: var(--hover-2); }
.btn--lg { padding: 15px 20px; font-size: 16px; font-weight: 700; min-height: 54px; }
.site-footer .btn--sm { border-radius: 10px; }

.input {
  height: 46px; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--border-ui); background: var(--surface); color: #fff;
  font: inherit; font-size: 15px; outline: none; min-width: 0;
  transition: border-color .15s;
}
.input:focus { border-color: var(--accent); }
.input--lg { height: 54px; padding: 0 18px; font-size: 16px; background: var(--bg); border-color: #2e2e38; }
.input--search { flex: 1 1 240px; max-width: 340px; -webkit-appearance: none; appearance: none; }

/* ---------- Layout ---------- */
.main {
  max-width: 1320px; width: 100%; margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) var(--pad-x) 0;
  display: flex; flex-direction: column; gap: var(--gap-section); flex: 1 0 auto;
}
.section { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: calc(var(--header-h) + 16px); }
.section--hero { gap: clamp(20px, 3vw, 28px); }
.section__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap;
}
.section__head--center { align-items: center; }
.section__titles { display: flex; flex-direction: column; gap: 6px; }
.section__sub { color: var(--text-2); font-size: 14px; }
.section__sub [data-countdown] { font-variant-numeric: tabular-nums; }
.section--split { flex-direction: row; flex-wrap: wrap; gap: clamp(20px, 4vw, 64px); }
.section--split__head { flex: 1 1 260px; }
.section--split__body { flex: 2 1 460px; min-width: 0; }
.center { display: flex; justify-content: center; padding-top: 8px; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--link); text-transform: uppercase;
}
.h1 {
  margin: 0; font-size: clamp(32px, 5vw, 56px); line-height: 1.02;
  letter-spacing: -0.035em; font-weight: 800; text-wrap: balance;
}
.h2 {
  margin: 0; font-size: clamp(24px, 3vw, 32px); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.2;
}
.lead {
  margin: 0; color: var(--text-2); font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.6; max-width: 560px; text-wrap: pretty;
}
.empty {
  padding: 40px; text-align: center; color: var(--text-2);
  border: 1px dashed #2a2a30; border-radius: 14px; line-height: 1.6;
}

/* ---------- Hero & countdown ---------- */
.hero {
  display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-end; justify-content: space-between;
}
.hero__text { flex: 1 1 440px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.countdown { flex: 0 1 auto; display: flex; flex-direction: column; gap: 10px; }
.countdown__label { font-size: 13px; color: var(--text-2); }
.countdown__units { display: flex; gap: 8px; }
.countdown__unit {
  background: var(--surface-2); border: 1px solid var(--border-ui); border-radius: 12px;
  padding: 10px 0; width: clamp(62px, 7vw, 74px); text-align: center;
  display: flex; flex-direction: column;
}
.countdown__num {
  font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1;
}
.countdown__txt {
  font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px;
}

/* ---------- Grids ---------- */
.grid { display: grid; gap: clamp(14px, 2vw, 24px); }
.grid--free { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--history {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
@media (max-width: 479px) {
  .grid--history { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.badge {
  position: absolute; top: 16px; left: 16px; z-index: 1;
  color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  padding: 6px 10px; border-radius: 6px; text-transform: uppercase; line-height: 1.2;
}
.badge--accent { background: var(--accent); }
.badge--dark { background: var(--bg); top: 12px; left: 12px; font-size: 11px; }
.badge--muted { background: rgba(14, 14, 16, 0.85); }

/* Free card */
.free-card {
  display: flex; flex-direction: column; border-radius: 20px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border-card);
  transition: border-color .15s;
}
.free-card:hover { border-color: var(--border-hover-2); }
.free-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--surface-3); display: block; }
.free-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.free-card__body { padding: clamp(16px, 2.4vw, 24px); display: flex; flex-direction: column; gap: 14px; flex: 1; }
.free-card__title {
  margin: 0; font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15;
  text-wrap: balance;
}
.free-card__title a { color: #fff; }
.free-card__title a:hover { color: var(--link-hover); }
.free-card__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--text-2); }
.free-card__meta strong { color: #fff; font-weight: 600; }
.free-card__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.free-card__actions .btn--primary { flex: 1 1 200px; }
.free-card__actions .btn--ghost { flex: 0 1 auto; font-size: 15px; font-weight: 600; }

/* Upcoming card */
.soon-card {
  display: flex; flex-wrap: wrap; color: #fff; border-radius: 18px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border-card); transition: border-color .15s;
}
.soon-card:hover { border-color: var(--border-hover-2); }
.soon-card__media { flex: 1 1 200px; min-height: 170px; position: relative; background: var(--surface-3); display: block; }
.soon-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.soon-card__body { flex: 1 1 220px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.soon-card__title { margin: 0; font-weight: 700; font-size: 19px; line-height: 1.25; text-wrap: balance; }
.soon-card__title a { color: #fff; }
.soon-card__title a:hover { color: var(--link-hover); }
.soon-card__meta { font-size: 14px; color: var(--text-2); }
.soon-card__meta span { color: #fff; }
.soon-card__store {
  margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 15px; color: var(--link);
  min-height: 44px; display: inline-flex; align-items: flex-end; align-self: flex-start;
}

/* History card */
.history-card {
  display: flex; flex-direction: column; border-radius: 14px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border-soft); color: #fff; min-width: 0;
  transition: border-color .15s;
}
.history-card:hover { border-color: var(--border-hover); color: #fff; }
.history-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-3); }
.history-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.history-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.history-card__title {
  margin: 0; font-weight: 600; font-size: 15px; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.history-card__dates { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* Chips */
.scroller { position: relative; }
.chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px;
  scroll-behavior: smooth; overscroll-behavior-x: contain;
}
.scroller.can-prev .chips { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 64px); mask-image: linear-gradient(90deg, transparent 0, #000 64px); }
.scroller.can-next .chips { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent 100%); mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent 100%); }
.scroller.can-prev.can-next .chips {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
}
.scroller.is-dragging .chips { scroll-behavior: auto; cursor: grabbing; }
.scroller.is-dragging .chip { pointer-events: none; }
.scroller__btn {
  position: absolute; top: 0; z-index: 2; width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid var(--border-btn); background: var(--surface-2); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px;
  box-shadow: 0 0 0 6px var(--bg); transition: background-color .15s;
}
.scroller__btn:hover { background: var(--hover-2); }
.scroller__btn--prev { left: 0; }
.scroller__btn--next { right: 0; }
@media (hover: none) { .scroller__btn { display: none !important; } }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--border-ui); background: var(--surface); color: #d4d4d8;
  font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .15s, color .15s;
}
.chip:hover { background: var(--hover); }
.chip.is-active { background: #fff; color: var(--bg); border-color: #fff; }

/* ---------- Newsletter ---------- */
.newsletter {
  border-radius: 24px;
  background: radial-gradient(90% 140% at 100% 0%, #173a6e 0%, transparent 60%), #141418;
  background: radial-gradient(90% 140% at 100% 0%, oklch(0.36 0.12 255) 0%, transparent 60%), #141418;
  border: 1px solid #232330; padding: clamp(24px, 5vw, 56px);
  display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.newsletter__text { flex: 1 1 360px; display: flex; flex-direction: column; gap: 10px; }
.newsletter__title {
  margin: 0; font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.025em;
  text-wrap: balance; line-height: 1.15;
}
.newsletter__text p { margin: 0; color: #b4b4bd; font-size: 16px; line-height: 1.6; max-width: 560px; text-wrap: pretty; }
.newsletter__action { flex: 1 1 380px; min-width: 0; }
.newsletter__form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter__form .input { flex: 1 1 220px; }
.newsletter__form .btn { flex: 1 0 auto; padding: 0 26px; height: 54px; }
.newsletter__captcha { flex: 1 1 100%; min-height: 78px; }
.newsletter__captcha:empty { min-height: 0; }
.newsletter__error { flex: 1 1 100%; margin: 0; color: #ff8a8a; font-size: 14px; }
.newsletter__note { flex: 1 1 100%; margin: 0; color: var(--text-3); font-size: 13px; line-height: 1.5; }
.newsletter__success {
  padding: 18px 20px; border-radius: 12px; background: #0f2238; border: 1px solid #173a63;
  color: #cfe4ff; font-size: 16px;
}
.newsletter__success strong { color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Steps ---------- */
.section#jak-ziskat { gap: 24px; }
.steps {
  list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(12px, 2vw, 20px);
}
.step {
  background: var(--surface); border: 1px solid var(--border-card); border-radius: 18px; padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.step__num {
  width: 36px; height: 36px; border-radius: 10px; background: var(--accent);
  display: grid; place-items: center; font-weight: 700;
}
.step__title { margin: 0; font-size: 18px; }
.step p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.6; }

/* ---------- Prose ---------- */
.prose { display: flex; flex-direction: column; gap: 16px; color: var(--text-2); font-size: 16px; line-height: 1.7; text-wrap: pretty; }
.prose p, .prose ul { margin: 0; }
.prose ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.prose strong { color: var(--strong); }
.prose h2, .prose h3 { color: #fff; margin: 12px 0 0; line-height: 1.25; letter-spacing: -0.02em; }
.prose h2 { font-size: 22px; }
.prose h3 { font-size: 18px; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--border-card); }
.faq__item { border-bottom: 1px solid var(--border-card); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 20px 0; font-size: 17px; font-weight: 600;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { flex: 0 0 auto; font-size: 24px; font-weight: 400; color: var(--link); transition: transform .2s; line-height: 1; }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__item p { margin: 0 0 20px; color: var(--text-2); font-size: 16px; line-height: 1.7; max-width: 680px; text-wrap: pretty; }

/* ---------- Game detail ---------- */
.breadcrumb { font-size: 14px; color: var(--text-3); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li { display: inline-flex; gap: 6px; min-width: 0; }
.breadcrumb li + li::before { content: '›'; color: var(--muted); }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

.game-hero { display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 40px); align-items: flex-start; }
.game-hero__media {
  flex: 3 1 520px; position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden;
  background: var(--surface-3); border: 1px solid var(--border-card); min-width: 0;
}
.game-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-hero__panel { flex: 2 1 340px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.game-hero__panel .h1 { font-size: clamp(30px, 4vw, 48px); }
.status {
  background: var(--surface); border: 1px solid var(--border-card); border-radius: 18px; padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.status__line { font-size: 15px; color: var(--text-2); line-height: 1.5; }
.status__line strong { color: #fff; font-weight: 600; }
.status .btn { width: 100%; }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 15px; }
.facts dt { color: var(--text-3); }
.facts dd { margin: 0; color: var(--text); }
.facts s { color: var(--text-2); }
.lang-note { font-size: 13px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(64px, 9vw, 112px); background: var(--bg-footer); border-top: 1px solid var(--border); }
.site-footer__inner {
  max-width: 1320px; margin: 0 auto; padding: clamp(40px, 6vw, 64px) var(--pad-x) 32px;
  display: flex; flex-direction: column; gap: 40px;
}
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 32px; }
.site-footer__brand { flex: 2 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.site-footer__brand p { margin: 0; color: var(--text-3); font-size: 14px; line-height: 1.6; }
.site-footer__brand .btn { align-self: flex-start; }
.site-footer__col { flex: 1 1 140px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.site-footer__col a { color: var(--text-3); padding: 2px 0; }
.site-footer__col a:hover { color: #fff; }
.site-footer__title { color: #fff; font-weight: 600; margin-bottom: 4px; }
.site-footer__bottom {
  padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap;
  gap: 12px 32px; justify-content: space-between; font-size: 13px; color: var(--muted); line-height: 1.6;
}
.site-footer__disclaimer { max-width: 560px; }
