/* ==========================================================================
   Svet automatov — dizajn systém (tmavý gaming look)
   Všetky farby/rozmery cez tokeny. Per-page štýly smú používať len tokeny.
   ========================================================================== */

:root {
  /* Farby — pozadia */
  --bg: #0a0e17;
  --surface: #121826;
  --surface-2: #1a2234;
  --surface-3: #232e46;
  --border: #2a3450;
  --border-light: #38466b;
  /* Ohraničenie interaktívnych prvkov (input, chip, ghost btn) — ~3:1 na bg, nech je viditeľné aj na slnku */
  --border-interactive: #556388;

  /* Farby — text */
  --text: #eef2fa;
  --text-muted: #9aa7c0;
  /* text-faint musí držať WCAG AA (4,5:1) aj na surface-2 — pod 14px ho používame bežne */
  --text-faint: #8290ac;

  /* Akcenty */
  --accent: #ffb627;          /* amber — primárne CTA */
  --accent-hover: #ffc850;
  --accent-ink: #201500;      /* text na amber */
  --violet: #8b5cf6;          /* sekundárny akcent */
  --violet-soft: rgba(139, 92, 246, .16);
  --green: #34d399;           /* pozitívne (RTP, výhody) */
  --green-soft: rgba(52, 211, 153, .14);
  --red: #f87171;             /* negatívne */
  --red-soft: rgba(248, 113, 113, .14);
  --amber-soft: rgba(255, 182, 39, .14);

  /* Typografia */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* 13px minimum — cieľovka 35-55 r. s presbyopiou, 12,48px bolo pod prahom pohodlného čítania */
  --fs-xs: .8125rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: clamp(1.25rem, 1.1rem + .8vw, 1.6rem);
  --fs-h1: clamp(1.6rem, 1.2rem + 2vw, 2.5rem);
  --fs-h2: clamp(1.3rem, 1.1rem + 1vw, 1.8rem);
  --fs-h3: clamp(1.1rem, 1rem + .5vw, 1.3rem);

  /* Rozmery */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --container: 1200px;
  --nav-h: 64px;
  --shadow: 0 8px 28px rgba(0, 0, 0, .45);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .35);
}

/* ==== Reset / base ==== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
/* Odkazy vnútri textu odlíšené aj tvarom, nielen farbou (WCAG 1.4.1) — navigácia, karty a tlačidlá ostávajú bez podčiarknutia */
p a:not(.btn), .faq-a a:not(.btn), .notice a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: var(--fs-h1); letter-spacing: -.01em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ==== Layout ==== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.section { padding: 40px 0; }
.section--tight { padding: 24px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
/* Padding + záporný margin = dotyková plocha ~47px bez zmeny layoutu (hrubé prsty) */
.section-head .more { font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; padding: 12px; margin: 0 -12px; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.center { text-align: center; }

/* Grid utility */
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.grid--games { grid-template-columns: repeat(2, 1fr); }
.grid--cards { grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 560px) {
  .grid--games { grid-template-columns: repeat(3, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 860px) {
  .grid--games { grid-template-columns: repeat(4, 1fr); }
  .grid--cards { grid-template-columns: repeat(2, 1fr); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .grid--games { grid-template-columns: repeat(6, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ==== Header / navigácia ==== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 14, 23, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; gap: 16px;
  height: var(--nav-h);
  max-width: var(--container); margin: 0 auto; padding: 0 16px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.25rem; font-weight: 800; color: var(--text); letter-spacing: -.02em;
  white-space: nowrap;
}
.logo:hover { color: var(--text); }
.logo .logo-accent { color: var(--accent); }
.logo .logo-mark {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #ff8a3d);
  color: var(--accent-ink); font-size: .82rem; letter-spacing: -.04em;
}
.nav-toggle { display: none; }
.nav-burger {
  display: none; margin-left: auto; cursor: pointer;
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-interactive);
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-overlay { display: none; }
/* Pri otvorenom mobilnom menu sa stránka pod overlayom nescrolluje (triedu toggluje skript v topMenu.php) */
html.nav-open { overflow: hidden; }
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: auto; list-style: none; padding: 0; }
.nav-menu a {
  display: block; padding: 9px 13px; border-radius: var(--radius-sm);
  color: var(--text-muted); font-weight: 600; font-size: var(--fs-sm);
}
.nav-menu a:hover { color: var(--text); background: var(--surface-2); }
.nav-menu a.is-active { color: var(--accent); background: var(--amber-soft); }
@media (max-width: 900px) {
  .nav-burger { display: flex; }
  /* Checkbox = skutočný ovládací prvok (ARIA naň, nie na <label>): skrytý, ale fokusovateľný z klávesnice */
  .nav-toggle { display: block; position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; pointer-events: none; }
  .nav-toggle:focus-visible ~ .nav-burger { outline: 2px solid var(--accent); outline-offset: 2px; }
  .nav-menu {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 10px 16px 16px; margin: 0; box-shadow: var(--shadow);
  }
  .nav-toggle:checked ~ .nav-menu { display: flex; }
  /* Zatvorenie menu tapnutím mimo — celoplošný label pod menu (checkbox hack, bez JS).
     Pozor: backdrop-filter na .site-header robí z headera containing block pre position:fixed,
     takže top/bottom sa počítajú voči nemu — výšku treba dať explicitne cez 100vh. */
  .nav-toggle:checked ~ .nav-overlay {
    display: block; position: fixed; top: var(--nav-h); left: 0; right: 0; height: 100vh;
    background: rgba(10, 14, 23, .55); cursor: default;
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-menu a { padding: 12px 14px; font-size: var(--fs-base); }
}

/* ==== Tlačidlá ==== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius-sm);
  font-family: var(--font); font-weight: 700; font-size: var(--fs-sm);
  border: 1px solid transparent; cursor: pointer; text-align: center;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-interactive); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--surface { background: var(--surface-3); color: var(--text); }
.btn--surface:hover { background: var(--border); color: var(--text); }
.btn--lg { padding: 14px 26px; font-size: var(--fs-base); border-radius: var(--radius); }
.btn--block { display: flex; width: 100%; }

/* ==== Badge / chip ==== */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .02em;
}
.badge--rtp { background: var(--green-soft); color: var(--green); }
.badge--accent { background: var(--amber-soft); color: var(--accent); }
.badge--violet { background: var(--violet-soft); color: #b39aff; }
.badge--muted { background: var(--surface-3); color: var(--text-muted); }
.badge--red { background: var(--red-soft); color: var(--red); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border-interactive);
  color: var(--text-muted); font-size: var(--fs-sm); font-weight: 600;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active { background: var(--amber-soft); border-color: var(--accent); color: var(--accent); }
/* Zvýraznený chip — odkaz mimo filtrov hier (napr. bonusy) */
.chip--accent { background: var(--amber-soft); border-color: var(--accent); color: var(--accent); }
.chip--accent:hover { color: var(--accent-hover); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ==== Zdieľanie (parts/shareBar.php + assets/js/share.js) ==== */
.share-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  margin: 22px 0; padding: 14px 16px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
}
.share-bar__label { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); font-weight: 600; }
.share-bar__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.share-bar .btn { padding: 10px 16px; font-size: var(--fs-sm); white-space: nowrap; }
.share-inline { display: inline-flex; }
/* Stavy kopírovania — potvrdenie a viditeľná chyba (chybový text sa musí zalomiť) */
.btn.is-copied { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.btn.is-copy-failed { background: transparent; border-color: var(--red); color: var(--red); white-space: normal; }
@media (max-width: 560px) {
  /* Na mobile lišta na plnú šírku, tlačidlá pod sebou — pohodlné na palec */
  .share-bar { flex-direction: column; align-items: stretch; text-align: center; padding: 12px; }
  .share-bar__btns { flex-direction: column; }
  .share-bar .btn { width: 100%; }
}

/* ==== Karta hry ==== */
.game-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.game-card:hover { border-color: var(--border-light); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.game-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.game-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-card__overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(10, 14, 23, .55); opacity: 0; transition: opacity .15s;
}
.game-card:hover .game-card__overlay { opacity: 1; }
.game-card__rtp {
  position: absolute; top: 8px; right: 8px;
  background: rgba(10, 14, 23, .85); color: var(--green);
  box-shadow: 0 1px 5px rgba(0, 0, 0, .55);
}
.game-card__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.game-card__title {
  font-weight: 700; font-size: var(--fs-sm); color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.game-card__title a { color: inherit; }
.game-card__title a::after { content: ""; position: absolute; inset: 0; }
/* Výrobca = kľúčový výberový signál cieľovky (Synot, Kajot…) — muted, nie faint */
.game-card__provider { font-size: var(--fs-xs); color: var(--text-muted); }
/* Trvalý CTA pás na dotykových zariadeniach (desktop má hover overlay) */
.game-card__play {
  display: none; position: absolute; left: 0; right: 0; bottom: 0;
  align-items: center; justify-content: center; gap: 6px;
  padding: 7px 10px; font-size: var(--fs-sm); font-weight: 700;
  color: var(--accent); background: linear-gradient(180deg, rgba(10, 14, 23, 0), rgba(10, 14, 23, .6) 40%, rgba(10, 14, 23, .94));
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
@media (hover: none) {
  .game-card__overlay { display: none; }
  .game-card__play { display: flex; }
}

/* ==== Karta kasína ==== */
.casino-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px;
}
.casino-card__top { display: flex; align-items: center; gap: 14px; }
.casino-card__logo {
  width: 72px; height: 72px; border-radius: var(--radius);
  background: #fff; object-fit: contain; padding: 6px; flex-shrink: 0;
}
/* Písmenková dlaždica — fallback karty/hero kasína bez loga (parts/casinoCard.php) */
.logo-tile { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); color: var(--accent); font-size: 2rem; font-weight: 800; flex: none; }
.casino-card__name { font-size: var(--fs-lg); font-weight: 800; margin: 0; }
.casino-card__score {
  margin-left: auto; text-align: center;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px 12px; min-width: 66px;
}
.casino-card__score b { display: block; font-size: 1.3rem; color: var(--green); line-height: 1.1; }
/* :not() — inak by span selektor špecificitou prebil zelený .score-label */
.casino-card__score span:not(.score-label) { font-size: var(--fs-xs); color: var(--text-muted); }
.score-label { display: block; font-size: var(--fs-sm); font-weight: 700; color: var(--green); }
/* Skóre ako preklik na presný bodový výpočet (/ako-hodnotime#vypocet-<slug>) —
   klikateľnosť signalizuje podčiarknuté číslo + accent okraj na hover */
a.casino-card__score { display: block; }
a.casino-card__score:hover { border-color: var(--accent); }
a.casino-card__score b { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
/* Bonus na karte kasína (parts/casinoCardBonus.php) — detail automatu, homepage aj /kasina */
.casino-card__bonus { background: var(--amber-soft); border-radius: var(--radius-sm); padding: 10px 14px; font-weight: 600; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.casino-card__bonus-label { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.casino-card__bonus-label .badge { font-size: var(--fs-xs); }
.casino-card__bonus-kicker { font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.casino-card__bonus strong { font-size: var(--fs-base); font-weight: 800; color: var(--text); line-height: 1.35; }
.casino-card__bonus-desc { font-size: var(--fs-sm); font-weight: 400; color: var(--text-muted); line-height: 1.5; }
.casino-card__bonus-code { font-size: var(--fs-sm); color: var(--text-muted); }
.casino-card__bonus-code code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface); color: var(--accent); border: 1px dashed var(--accent); border-radius: var(--radius-sm); padding: 1px 7px; font-weight: 700; letter-spacing: .05em; }
.casino-card__meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--text-muted); }
.casino-card__actions { display: flex; gap: 10px; margin-top: auto; }
.casino-card__actions .btn { flex: 1; }
/* Karta s bonusom nesie dlhšie primárne CTA („Hrať s bonusom“) — bez väčšieho podielu
   šírky by sa v mobilnej mriežke zalomilo na dva riadky. */
.casino-card--bonus .casino-card__actions .btn--primary { flex: 2; }
.casino-card--bonus .casino-card__actions .btn--ghost { flex: 1; }

/* ==== Karta bonusu ==== */
.bonus-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
}
.bonus-card__headline { font-size: var(--fs-lg); font-weight: 800; margin: 0; }
.bonus-card__casino { font-size: var(--fs-sm); color: var(--text-muted); }
.bonus-card__terms { font-size: var(--fs-xs); color: var(--text-faint); }

/* ==== Breadcrumbs ==== */
.breadcrumbs { font-size: var(--fs-xs); color: var(--text-faint); margin: 14px 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin: 0 6px; color: var(--text-faint); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }

/* ==== Byline — garant obsahu + dátum aktualizácie (parts/pageByline.php) ==== */
.byline { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 2px 0 20px; font-size: var(--fs-sm); color: var(--text-faint); }
.byline__avatar {
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-3); border: 1px solid var(--border-light);
  color: var(--accent); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .5px;
}
.byline__avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.byline a { color: var(--text-muted); font-weight: 600; }
.byline a:hover { color: var(--accent); }
.byline__sep { color: var(--text-faint); }
/* Footer variant — na konci obsahu katalógov a detailu hry */
.byline--footer { margin: 30px 0 6px; padding-top: 14px; border-top: 1px solid var(--border); }

/* ==== Tabuľky ==== */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius);
  scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent;
}
.table-wrap::-webkit-scrollbar { height: 8px; }
.table-wrap::-webkit-scrollbar-track { background: transparent; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 4px; }
.table-wrap::-webkit-scrollbar-thumb:hover { background: var(--border-light); }
table.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 480px; }
.tbl th, .tbl td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.tbl th { background: var(--surface-2); color: var(--text-muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .05em; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: var(--surface-2); }

/* ==== FAQ akordeón (details/summary) ==== */
.faq { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--border); background: var(--surface); }
.faq details:last-child { border-bottom: none; }
.faq summary {
  cursor: pointer; padding: 15px 18px; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; font-weight: 400; flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 18px 16px; color: var(--text-muted); }

/* ==== Hero ==== */
.hero { padding: 44px 0 34px; }
.hero .lead { font-size: var(--fs-lg); color: var(--text-muted); max-width: 720px; }
.hero-stats { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 22px; }
.hero-stats > a { text-decoration: none; color: inherit; transition: opacity .15s ease; }
.hero-stats > a:hover { opacity: .85; }
.hero-stats > a:hover b { text-decoration: underline; }
.hero-stats b { display: block; font-size: 1.5rem; color: var(--accent); line-height: 1.2; }
.hero-stats span { font-size: var(--fs-sm); color: var(--text-muted); }
.hero--center { text-align: center; }
.hero--center h1 { text-wrap: balance; }
.hero--center .lead { margin-left: auto; margin-right: auto; }
.hero--center .hero-search { margin-left: auto; margin-right: auto; }
.hero--center .hero-stats,
.hero--center .trust-strip,
.hero--center .chip-row,
.hero--center .byline,
.chip-row.hero--center { justify-content: center; }

/* ==== Trust strip (dôveryhodnostné signály vo first folde) ==== */
.trust-strip { display: flex; gap: 8px 18px; flex-wrap: wrap; list-style: none; margin: 14px 0 0; padding: 0; }
.trust-strip li {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted);
}
.trust-strip li::before { content: "✓"; color: var(--green); font-weight: 800; }

/* ==== Autocomplete vyhľadávania ==== */
.suggest-wrap { position: relative; flex: 1; min-width: 0; }
.suggest-list {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius); box-shadow: var(--shadow);
  list-style: none; margin: 0; padding: 6px; max-height: 330px; overflow-y: auto;
}
/* Globálna poistka: [hidden] musí vyhrať nad display:flex/grid každého komponentu
   (bug class z fázy 5.25 — UA štýl [hidden] prebije akékoľvek display na elemente). */
[hidden] { display: none !important; }
.suggest-list a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--text); font-size: var(--fs-sm); font-weight: 600;
}
.suggest-list a:hover, .suggest-list li.is-active a { background: var(--surface-2); color: var(--accent); }
.suggest-list .suggest-type { font-size: var(--fs-xs); font-weight: 400; color: var(--text-faint); flex-shrink: 0; }

/* ==== Panel / box ==== */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.panel--accent { border-color: rgba(255, 182, 39, .4); background: linear-gradient(180deg, rgba(255, 182, 39, .07), var(--surface)); }
/* Ochrana e-mailu pred zberačmi: v statickom HTML je len rastrový PNG (no-JS fallback);
   klikateľný mailto s textom adresy skladá až JS z obrátených data-atribútov. */
.contact-email { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.contact-email__image { display: block; width: 312px; max-width: 100%; height: auto; }
.contact-email__link { font-size: var(--fs-xl); font-weight: 700; word-break: break-all; }
.contact-email__hint { margin: 0; color: var(--text-faint); font-size: var(--fs-xs); }
/* CTA pruh: text vľavo, tlačidlo vpravo; text sa zmestí a zalomí, na úzkom viewporte tlačidlo padne pod text */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; }
.cta-band > :first-child { flex: 1 1 320px; }
.cta-band .btn { flex: 0 0 auto; }
.notice { background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 12px 16px; font-size: var(--fs-sm); color: var(--text-muted); }

/* ==== Pros / cons ==== */
.pros-cons { display: grid; gap: 14px; }
@media (min-width: 700px) { .pros-cons { grid-template-columns: 1fr 1fr; } }
.pros-cons ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.pros-cons li { padding-left: 26px; position: relative; font-size: var(--fs-sm); }
.pros li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.cons li::before { content: "✕"; position: absolute; left: 0; color: var(--red); font-weight: 800; }

/* ==== Redakčný text detailu hry (description2) ==== */
.rich-text > :last-child { margin-bottom: 0; }
.rich-text ul { list-style: none; padding-left: 0; margin: 0 0 1em; display: flex; flex-direction: column; gap: 9px; }
.rich-text li { padding-left: 24px; position: relative; }
.rich-text li::before { content: "▸"; position: absolute; left: 4px; color: var(--accent); font-weight: 800; }
.rich-text b, .rich-text strong { color: var(--text); font-weight: 700; }

/* ==== Formuláre / select ==== */
.input, select.input {
  width: 100%; padding: 11px 14px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border-interactive); border-radius: var(--radius-sm);
  /* min. 16px (fs-base) — menšie písmo v inpute núti iOS Safari zazoomovať pri fokuse */
  font-family: var(--font); font-size: var(--fs-base);
}
.input::placeholder { color: var(--text-muted); opacity: 1; }
.input:focus { border-color: var(--accent); outline: none; }
label.lbl { display: block; font-size: var(--fs-xs); font-weight: 700; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em; }

/* ==== Stránkovanie ==== */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 28px 0 8px; }
.pagination a, .pagination span {
  display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-interactive);
  color: var(--text-muted); font-weight: 600; font-size: var(--fs-sm);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .is-current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ==== Footer ==== */
.site-footer { margin-top: 56px; background: var(--surface); border-top: 1px solid var(--border); }
.site-footer .footer-grid { display: grid; gap: 28px; padding: 36px 0 26px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .site-footer .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 12px; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--text-muted); font-size: var(--fs-sm); }
.site-footer a:hover { color: var(--accent); }
.footer-about { font-size: var(--fs-sm); color: var(--text-muted); }
.footer-legal {
  border-top: 1px solid var(--border); padding: 18px 0 26px;
  font-size: var(--fs-xs); color: var(--text-faint);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
}
.badge-18 {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  /* Biely text namiesto červeného — červená pod deuteranopiou stmavne do hneda a text by zanikol */
  border: 2px solid var(--red); color: var(--text); font-weight: 800; font-size: .8rem; flex-shrink: 0;
}
.rg-strip {
  background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 12px 16px; margin-top: 8px;
  display: flex; gap: 12px; align-items: center;
  font-size: var(--fs-xs); color: var(--text-muted);
}

/* ==== Demo prehrávač (detail hry) ==== */
.demo-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
}
.demo-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo-frame__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.demo-frame__cta {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(180deg, rgba(10, 14, 23, .35), rgba(10, 14, 23, .8));
  text-align: center; padding: 16px;
}
.demo-frame__btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ==== Karusel (horizontálny scroll) ==== */
.hscroll {
  display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent;
}
.hscroll > * { flex: 0 0 156px; scroll-snap-align: start; }
/* Na úzkych displejoch nech tretia karta vytŕča ~27px — signál, že sa dá posúvať doprava.
   Floor 136px: pod ním sa pás "▶ Hrať zadarmo" (14px/700) zalomí na 2 riadky a prekryje náhľad hry */
@media (max-width: 480px) { .hscroll > * { flex-basis: max(42%, 136px); } }
.hscroll::-webkit-scrollbar { height: 8px; }
.hscroll::-webkit-scrollbar-track { background: transparent; }
.hscroll::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 4px; }
.hscroll::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* ==== Utility ==== */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ==========================================================================
   Kalkulačky (.calc) — zdieľaný vzhľad widgetov parts/nastroje/* (aj v článkoch).
   Per-widget zostáva len grid vstupov; JS pomôcky v assets/js/kalk.js.
   ========================================================================== */
.calc { margin: 18px 0; }
.calc label { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); }
.calc__field { display: flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 12px; color: var(--text-faint); font-weight: 600; }
.calc__field:focus-within { border-color: var(--accent); }
.calc__field input, .calc__field select { flex: 1; min-width: 0; width: 100%; background: transparent; border: 0; padding: 11px 0; color: var(--text); font: inherit; font-size: var(--fs-base); font-weight: 700; }
.calc__field select { cursor: pointer; }
.calc__field input:focus, .calc__field select:focus { outline: none; }
.calc__field option { background: var(--surface-2); color: var(--text); }
.calc__out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.calc__stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; text-align: center; }
.calc__stat-label { display: block; font-size: var(--fs-xs); color: var(--text-faint); margin-bottom: 6px; }
.calc__stat strong { font-size: var(--fs-xl); color: var(--text); line-height: 1.1; }
.calc__stat--accent { border-color: rgba(255,182,39,.45); background: var(--amber-soft); }
.calc__stat--accent strong { color: var(--accent); }
.calc__stat--red { border-color: rgba(248,113,113,.4); background: var(--red-soft); }
.calc__stat--red strong { color: var(--red); }
.calc__stat--green { border-color: rgba(52,211,153,.35); background: var(--green-soft); }
.calc__stat--green strong { color: var(--green); }
.calc__note { margin: 14px 0 0; font-size: var(--fs-sm); color: var(--text-muted); }
@media (max-width: 620px) { .calc__out { grid-template-columns: 1fr; } }

/* ==========================================================================
   Lišta filtrov (.fbar) — /kasina (karty + porovnávacia tabuľka) aj /bonusy.
   Markup: renderFilterBar() v kasina.php, renderBonusFilterBar() v bonusy.php;
   dropdown JS: assets/js/fbar.js. Na stránkach ostáva len logika filtrovania.
   ========================================================================== */
.fbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 12px; }
.fbar__label { display: block; margin-bottom: 7px; color: var(--text-faint); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.fbar__groups { display: flex; gap: 8px; flex-wrap: wrap; }
.fbar__sort { flex: none; }

.fdrop { position: relative; }
.fdrop__btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 12px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border-interactive);
  color: var(--text); font: inherit; font-size: var(--fs-sm); font-weight: 600; line-height: 1.2;
}
.fdrop__btn:hover { border-color: var(--accent); }
.fdrop__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fdrop__ico { color: var(--text-faint); flex: none; }
.fdrop__chev { color: var(--text-faint); flex: none; transition: transform .15s ease; }
.fdrop[data-open] .fdrop__btn { border-color: var(--accent); }
.fdrop[data-open] .fdrop__chev { transform: rotate(180deg); }
/* Skupina s aktívnym výberom: accent rám + badge */
.fdrop__btn[data-active] { border-color: var(--accent); background: var(--amber-soft); color: var(--accent); }
.fdrop__btn[data-active] .fdrop__ico { color: var(--accent); }
/* Badge: default nesie počet vybraných (kasína); --label názov zvolenej hodnoty (bonusy) */
.fdrop__badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 999px; background: var(--accent); color: #1a1204;
  font-size: 11px; font-weight: 800; line-height: 1;
}
.fdrop__badge--label {
  display: inline-block; min-width: 0; height: auto;
  max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 2px 7px; line-height: 1.35;
}

.fdrop__menu {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0;
  min-width: 230px; max-width: min(320px, calc(100vw - 32px));
  padding: 6px; border-radius: var(--radius); background: var(--surface-2);
  border: 1px solid var(--border-light); box-shadow: 0 12px 32px rgba(0,0,0,.45);
}
.fdrop__opt { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm); cursor: pointer; color: var(--text-muted); font-size: var(--fs-sm); }
.fdrop__opt:hover { background: var(--surface-3); color: var(--text); }
.fdrop__opt input { accent-color: var(--accent); width: 16px; height: 16px; flex: none; cursor: pointer; }
.fdrop__opt input:checked + span { color: var(--text); font-weight: 600; }

.fsel {
  appearance: none; cursor: pointer; min-width: 200px;
  padding: 9px 34px 9px 12px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border-interactive);
  color: var(--text); font: inherit; font-size: var(--fs-sm); font-weight: 600;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b93a7' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 14px;
}
.fsel:hover, .fsel:focus { border-color: var(--accent); outline: none; }
.fsel option { background: var(--surface-2); color: var(--text); }

/* Aktívne filtre ako odstrániteľné pilulky — používateľ vidí, čo presne je zapnuté */
.fpills { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.fpill {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 5px 8px 5px 11px; border-radius: 999px;
  background: var(--amber-soft); border: 1px solid var(--accent);
  color: var(--accent); font: inherit; font-size: var(--fs-xs); font-weight: 700;
}
.fpill:hover { background: var(--surface-3); }
.fpill__x { font-size: 14px; line-height: 1; opacity: .8; }
.fpill--reset { background: none; border-color: var(--border-interactive); color: var(--text-muted); }
.fpill--reset:hover { border-color: var(--accent); color: var(--accent); }
.fcount { margin: 0 0 12px; color: var(--text-faint); font-size: var(--fs-xs); }

@media (max-width: 720px) {
  .fbar { align-items: stretch; }
  /* Menu poslednej skupiny sedí pri pravom okraji — s left:0 a min-width by pretieklo
     mimo obrazovku (vodorovný scroll, orezané popisky). Na mobile ho preto kotvíme
     na celú šírku lišty pod tlačidlá, nie pod konkrétnu skupinu. */
  .fbar__filters, .fbar__sort { width: 100%; }
  .fbar__filters { position: relative; }
  .fsel { width: 100%; }
  .fdrop { flex: 1 1 auto; position: static; }
  .fdrop__btn { width: 100%; justify-content: flex-start; }
  .fdrop__chev { margin-left: auto; }
  .fdrop__menu { left: 0; right: 0; min-width: 0; max-width: none; }
}

/* ==== Newsletter ==== */
/* Honeypot: skryté pole pre boty. display:none by niektoré vynechali, preto ho radšej
   odsúvame mimo obrazovky a vypíname tab/aria. */
.nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Plná stránka /newsletter: formulár + benefity vedľa seba na širšom viewporte */
.nl-layout { display: grid; gap: 20px; margin: 24px 0 8px; }
@media (min-width: 820px) { .nl-layout { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.nl-formcard__title { font-size: var(--fs-h3); margin-bottom: 14px; }
.nl-form { display: flex; flex-direction: column; gap: 12px; }
.nl-form .lbl { margin-bottom: 0; }
.nl-microcopy { font-size: var(--fs-xs); color: var(--text-muted); margin: 2px 0 0; }

/* Súhlas — checkbox a text vedľa seba, zarovnané na začiatok */
.nl-consent, .nl-cta__consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: var(--text-muted); cursor: pointer; }
.nl-consent input, .nl-cta__consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); cursor: pointer; }

.nl-alert { border-radius: var(--radius-sm); padding: 10px 14px; font-size: var(--fs-sm); margin: 0 0 14px; }
.nl-alert--error { background: rgba(232, 76, 76, .12); border: 1px solid var(--red); color: var(--text); }

.nl-benefits__title { font-size: var(--fs-h3); margin-bottom: 14px; }
.nl-benefits__list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 14px; }
.nl-benefits__list li { display: flex; flex-direction: column; gap: 3px; padding-left: 26px; position: relative; }
.nl-benefits__list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 800; }
.nl-benefits__list strong { color: var(--text); }
.nl-benefits__list span { font-size: var(--fs-sm); }

/* Výsledkové stavy (potvrď e-mail / potvrdené / …) */
.nl-result__lead { font-size: var(--fs-lg); margin-bottom: 12px; }
.nl-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* Kompaktný CTA pruh (homepage) */
.nl-cta { display: grid; gap: 18px; }
@media (min-width: 820px) { .nl-cta { grid-template-columns: 1fr 1fr; align-items: center; } }
.nl-cta__title { font-size: var(--fs-h3); margin-bottom: 6px; }
.nl-cta__form { display: flex; flex-direction: column; gap: 10px; }
.nl-cta__row { display: flex; gap: 10px; flex-wrap: wrap; }
.nl-cta__row .input { flex: 1 1 200px; }
.nl-cta__row .btn { flex: 0 0 auto; }
.nl-cta__consent { font-size: var(--fs-xs); }
.nl-cta__consent input { width: 16px; height: 16px; }
