/* =========================================================================
   Mostbet Česko (akord-ot.cz) — base stylesheet
   Owner map: tokens + reset + header/footer/nav/cookie/to-top/crumbs = tech-seo.
   Chip-strip scrollspy nav, app-card content blocks and the bottom sticky CTA
   bar (<768px) are appended BELOW by html-front — do not remove or reorder
   anything above the "html-front appends below" marker.
   ========================================================================= */

:root{
  /* Brand tokens — DESIGN_BRIEF.md (komplet 2, "mobilní karta"), do not
     rename/repaint without updating the brief. */
  --bg:#084992;
  --bg-2:#0A5FC2;
  --bg-3:#063A78;
  --accent:#428CDC;
  --card:#FFFFFF;
  --card-2:#E3F2FF;
  --cta:#FB4F01;
  --gold:#FFC24B;
  --text:#0E1B2C;
  --text-inv:#F3F7FC;
  --muted:#628EBA;
  --radius:18px;
  --wrap:1120px;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
  color: var(--text-inv);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

/* Numbers — tabular figures site-wide (bonus amounts, limits, coin widget…) */
.num, time, output { font-variant-numeric: tabular-nums; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--cta); color: #fff;
  padding: 10px 18px; border-radius: var(--radius);
  font-weight: 700; z-index: 1000;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius); padding: 11px 22px; font-weight: 700;
  border: 1px solid transparent; white-space: nowrap; font-size: .95rem;
}
.btn-cta { background: var(--cta); color: #fff; }
.btn-cta:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; border-color: rgba(243, 247, 252, .35); color: var(--text-inv); }
.btn-ghost:hover { border-color: var(--text-inv); }

/* ---------- Header (sticky top bar — html-front's chip-strip scrollspy
   nav sits directly below it, as its own element before/inside <main>) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid rgba(243, 247, 252, .12);
}
.header-inner {
  display: flex; align-items: center; gap: 16px; min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.1rem; color: var(--text-inv);
  margin-right: auto;
}
.brand img { border-radius: 8px; }

.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 22px; }
.nav-list a { color: rgba(243, 247, 252, .75); font-weight: 600; font-size: .95rem; }
.nav-list a:hover,
.nav-list a[aria-current="page"] { color: var(--text-inv); }

.nav-toggle {
  display: none; width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border: 1px solid rgba(243, 247, 252, .25); border-radius: var(--radius);
  color: var(--text-inv);
}
.burger, .burger::before, .burger::after {
  display: block; width: 18px; height: 2px; background: var(--text-inv); position: relative;
}
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }

.header-cta { flex-shrink: 0; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: relative; }
  .nav-list {
    position: absolute; right: 0; top: calc(100% + 12px);
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--bg-3); border: 1px solid rgba(243, 247, 252, .15);
    border-radius: var(--radius); padding: 10px; min-width: 180px;
    display: none;
  }
  .nav-list.open { display: flex; }
  .nav-list a { display: block; padding: 8px 10px; width: 100%; }
}

/* ---------- Breadcrumbs (content depth-1 pages only — home is the
   canonical-target and carries emoji-schema crumbs instead, no visible nav) ---------- */
.crumbs {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 14px 20px;
}
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .85rem; color: rgba(243, 247, 252, .65); }
.crumbs a { color: rgba(243, 247, 252, .65); }
.crumbs a:hover { color: var(--text-inv); }
.crumbs [aria-current="page"] { color: var(--text-inv); }

/* ---------- "Last updated" line (home only) ---------- */
.last-updated { text-align: center; color: rgba(243, 247, 252, .6); font-size: .85rem; padding: 24px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-3); padding-block: 32px; margin-top: 40px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer-brand { font-weight: 800; font-size: 1.05rem; color: var(--text-inv); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.footer-nav a { color: rgba(243, 247, 252, .7); font-size: .9rem; }
.footer-nav a:hover { color: var(--text-inv); }
.footer-note, .footer-copy { max-width: 760px; color: rgba(243, 247, 252, .55); font-size: .8rem; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 500;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  max-width: 720px; margin-inline: auto;
  background: var(--card); color: var(--text);
  border-radius: var(--radius); padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(6, 29, 58, .35);
}
.cookie-banner p { font-size: .85rem; color: var(--text); flex: 1 1 260px; }
.cookie-banner a { color: var(--bg-2); font-weight: 600; }
.cookie-banner[hidden] { display: none; }
/* NOTE for html-front: the bottom sticky CTA bar (<768px, per DESIGN_BRIEF)
   also docks to the viewport bottom. Keep it above this banner (higher
   z-index, e.g. >500) or add bottom offset so the two never overlap. */

/* ---------- Back-to-top ---------- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px;
  border-radius: 50%; border: none; background: var(--card); color: var(--bg-2);
  font-size: 1.15rem; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  box-shadow: 0 6px 18px rgba(6, 29, 58, .3);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  z-index: 400;
}
.to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { color: var(--cta); }
/* NOTE for html-front: on <768px this may need a bottom offset so it clears
   the sticky CTA bar described in DESIGN_BRIEF. */

/* =========================================================================
   html-front appends chip-strip scrollspy nav, app-card content blocks and
   the bottom sticky CTA bar styles below this line.
   ========================================================================= */

/* ---------- Chip-strip (horizontal scroll-snap section nav, home only) --
   Sits directly below .site-header. Sticky top offset comes from --header-h,
   set in JS from the real header height (keeps it glued even if the header
   ever wraps to two lines on very narrow screens). ---------- */
:root{
  --header-h: 64px;
  /* AA-safe variants of --muted/--cta for small text on light card backgrounds
     (the raw tokens read ~3.0-3.4:1 there — fine for large UI accents, not for
     body-size copy). Keep the raw tokens everywhere else. */
  --muted-safe: #3F5F86;
  --cta-text-safe: #B23800;
}

.chip-strip{
  position: sticky; top: var(--header-h);
  z-index: 90;
  background: var(--bg-2);
  border-bottom: 1px solid rgba(243, 247, 252, .14);
}
.chip-strip-scroll{
  position: relative;
  display: flex; gap: 6px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 10px 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent);
}
.chip-strip-scroll::-webkit-scrollbar{ display: none; }
@media (min-width: 64em){
  .chip-strip-scroll{ justify-content: center; max-width: var(--wrap); margin-inline: auto; }
}
.chip-item{
  scroll-snap-align: center; flex: 0 0 auto;
  padding: 8px 16px; border-radius: 999px;
  font-size: .85rem; font-weight: 700;
  color: rgba(243, 247, 252, .88);
  white-space: nowrap;
  position: relative;
  min-height: 36px; display: inline-flex; align-items: center;
}
.chip-item:hover{ color: var(--text-inv); }
.chip-item.is-active{ color: var(--text-inv); }
.chip-indicator{
  position: absolute; bottom: 2px; left: 0; height: 3px; width: 0;
  border-radius: 2px; background: var(--cta);
  transform: translateX(0); transition: transform .25s ease, width .25s ease;
  pointer-events: none;
}

/* ---------- App-card stack (the page's whole content is a column of
   rounded, light cards on the blue gradient body) ---------- */
.app-stack{
  display: flex; flex-direction: column; gap: 20px;
  padding-block: clamp(24px, 5vw, 40px);
}
.app-stack--tight{ padding-top: 0; }
.content-section{ display: flex; flex-direction: column; gap: 20px; scroll-margin-top: calc(var(--header-h) + 56px); }
.app-card{
  background: var(--card); color: var(--text);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 32px);
}
.app-card--tint{ background: var(--card-2); }
.app-card--hero{ background: var(--card-2); }

/* ---------- Article prose inside app-cards (the eternal-text blocks) ---- */
.prose h1{
  font-size: clamp(1.7rem, 4vw + .6rem, 2.5rem);
  color: var(--bg); line-height: 1.2; margin-bottom: 14px;
}
.prose h2{
  font-size: clamp(1.3rem, 2.6vw + .7rem, 1.7rem);
  color: var(--bg); line-height: 1.25; margin-bottom: 12px;
}
.prose h3{
  font-size: 1.1rem; color: var(--bg-2); margin: 18px 0 8px;
}
.prose p{ color: var(--text); margin-bottom: 14px; }
.prose p:last-child{ margin-bottom: 0; }
.prose ul{ margin: 14px 0; display: flex; flex-direction: column; gap: 10px; }
.prose li{ position: relative; padding-left: 24px; color: var(--text); }
.prose li::before{
  content: ""; position: absolute; left: 2px; top: .55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--cta);
}

/* ---------- Article tables → cards on narrow screens (css-layout §5) --- */
.table-wrap{ overflow-x: auto; margin-top: 14px; border-radius: 12px; border: 1px solid rgba(14, 27, 44, .1); }
.table-wrap table{ font-size: .92rem; }
.table-wrap thead th{ background: var(--bg); color: var(--text-inv); text-align: left; padding: 12px 14px; }
.table-wrap tbody td{ padding: 11px 14px; border-top: 1px solid rgba(14, 27, 44, .08); color: var(--text); }
.table-wrap tbody tr:nth-child(even){ background: var(--card-2); }
@media (max-width: 640px){
  .table-wrap table, .table-wrap thead, .table-wrap tbody, .table-wrap tr, .table-wrap th, .table-wrap td{ display: block; }
  .table-wrap thead{ position: absolute; left: -9999px; }
  .table-wrap tr{ border: 1px solid rgba(14, 27, 44, .1); border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
  .table-wrap tr:last-child{ margin-bottom: 0; }
  .table-wrap td{
    display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
    padding: 10px 14px; border-top: 0; border-bottom: 1px solid rgba(14, 27, 44, .06);
    text-align: right;
  }
  .table-wrap td:last-child{ border-bottom: 0; }
  .table-wrap td::before{
    content: attr(data-label); font-weight: 700; color: var(--bg-2);
    text-align: left; flex: 0 0 auto;
  }
}

/* ---------- Hero widgets (welcome badges + CTA row) --------------------- */
.hero-cta-row.widget-card{
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-top: 18px; padding-top: 18px; border-top: 1px dashed rgba(14, 27, 44, .12);
}
.badge{
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg); color: var(--text-inv);
  border-radius: 999px; padding: 6px 14px; font-size: .82rem; font-weight: 700;
}
.badge--gold{ background: var(--gold); color: #4A2E00; }

/* ---------- Payments widget --------------------------------------------- */
.pay-widget{ display: flex; flex-direction: column; gap: 14px; }
.pay-widget-title{ font-size: .95rem; font-weight: 700; color: var(--bg); }
.pay-logos{ display: flex; flex-wrap: wrap; gap: 12px; }
.pay-pill{
  width: 68px; height: 42px; border-radius: 10px;
  background: var(--card-2); display: flex; align-items: center; justify-content: center;
  padding: 8px;
}
.pay-pill img{ width: 100%; height: 100%; object-fit: contain; }

/* ---------- Providers pill-cloud ----------------------------------------- */
.pill-cloud{ display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pill{
  display: flex; align-items: center; justify-content: center;
  background: var(--card-2); border-radius: 999px; padding: 8px 16px; height: 40px;
}
.pill img{ max-height: 22px; width: auto; object-fit: contain; }

/* ---------- Games grid ("official" tiles — bg-image, no caption) -------- */
.game-grid{
  display: grid; gap: 12px; margin-top: 4px;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 46%), 1fr));
}
.game-tile{
  position: relative; display: block; aspect-ratio: 3 / 4;
  border-radius: 14px; overflow: hidden;
  background-size: cover; background-position: center;
  isolation: isolate;
}
.game-tile-overlay{
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(8, 73, 146, 0) 40%, rgba(8, 73, 146, .88) 100%);
  opacity: 0; transition: opacity .18s ease;
}
.game-tile-cta{
  background: var(--cta); color: #fff; font-weight: 700; font-size: .85rem;
  border-radius: 999px; padding: 9px 22px;
  transform: translateY(6px); transition: transform .18s ease;
}
.game-tile:hover .game-tile-overlay,
.game-tile:focus-visible .game-tile-overlay{ opacity: 1; }
.game-tile:hover .game-tile-cta,
.game-tile:focus-visible .game-tile-cta{ transform: translateY(0); }
.game-tile:focus-visible{ outline: 3px solid var(--gold); outline-offset: 2px; }
/* touch devices: always show a soft bottom gradient so the tile doesn't look
   dead without a hover state */
@media (hover: none){
  .game-tile-overlay{ opacity: 1; background: linear-gradient(180deg, rgba(8, 73, 146, 0) 55%, rgba(8, 73, 146, .82) 100%); }
  .game-tile-cta{ transform: translateY(0); padding: 7px 16px; font-size: .78rem; }
}

/* ---------- Bonus cards --------------------------------------------------- */
.bonus-cards{ display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 4px; }
.bonus-card{
  border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid rgba(8, 73, 146, .12);
}
.bonus-card--casino{ border-top: 4px solid var(--cta); }
.bonus-card--sport{ border-top: 4px solid var(--bg-2); }
.bonus-card-tag{ align-self: flex-start; }
.bonus-card-amount{ font-size: 1.3rem; font-weight: 800; color: var(--bg); }
.bonus-card-amount span{ font-size: 1rem; font-weight: 700; color: var(--cta-text-safe); }
.bonus-card-note{ color: var(--muted-safe); font-size: .88rem; }
.bonus-card .btn{ margin-top: 4px; align-self: flex-start; }

/* ---------- Promo code panel ---------------------------------------------- */
.promo-panel{
  display: flex; flex-direction: column; gap: 10px;
  background: var(--card-2); border-radius: 14px; padding: 18px;
}
.promo-panel-label{ font-weight: 700; color: var(--bg); }
.promo-form{ display: flex; flex-wrap: wrap; gap: 10px; }
.promo-input{
  flex: 1 1 200px; min-height: 44px; border-radius: 10px; border: 1px solid rgba(14, 27, 44, .18);
  padding: 0 14px; font: inherit; color: var(--text); background: #fff;
}
.promo-input:focus-visible{ outline: 2px solid var(--bg-2); outline-offset: 1px; }

/* ---------- Mirrors / access table (status dots) --------------------------- */
.access-widget .table-wrap{ margin-top: 4px; }
.status-dot{
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: #2AA85C; margin-right: 8px; vertical-align: middle;
}

/* ---------- Signature feature: loyalty coin exchange ----------------------- */
.coin-exchange{
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border-radius: 16px; padding: clamp(18px, 4vw, 26px);
  position: relative; overflow: hidden;
}
.coin-exchange-eyebrow{ margin-bottom: 10px; }
.coin-exchange-title{ font-size: 1.2rem; font-weight: 800; color: var(--bg); margin-bottom: 6px; }
.coin-exchange-intro{ color: var(--muted-safe); font-size: .92rem; margin-bottom: 18px; }
.coin-exchange-body{ display: flex; flex-direction: column; gap: 12px; }
.coin-exchange-label{ font-weight: 700; color: var(--text); display: flex; justify-content: space-between; }
.coin-range{
  width: 100%; accent-color: var(--cta); height: 32px;
}
.coin-target{ display: flex; background: rgba(8, 73, 146, .08); border-radius: 999px; padding: 4px; gap: 4px; }
.coin-target-btn{
  flex: 1 1 0; text-align: center; padding: 9px 12px; border-radius: 999px;
  font-weight: 700; font-size: .88rem; color: var(--bg);
}
.coin-target-btn.is-active{ background: var(--bg); color: var(--text-inv); }
.coin-result{
  font-size: 1.15rem; font-weight: 800; color: var(--bg);
  background: #fff; border-radius: 12px; padding: 14px 16px;
}
.coin-result output{ color: var(--cta-text-safe); }
.coin-exchange-note{ font-size: .78rem; color: var(--muted-safe); }
.coin-anim{ position: absolute; top: 8px; right: 14px; height: 26px; pointer-events: none; }
.coin-particle{
  position: absolute; top: 0; right: 0; font-size: 1.1rem; opacity: 0;
}
@media (prefers-reduced-motion: no-preference){
  .coin-particle.is-flying{ animation: coin-fly .6s ease-out forwards; }
}
@keyframes coin-fly{
  0%{ opacity: 1; transform: translateY(0) scale(1); }
  100%{ opacity: 0; transform: translateY(-28px) scale(1.3); }
}

/* ---------- FAQ (native <details>) ---------------------------------------- */
.faq-list{ display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.faq-item{
  border: 1px solid rgba(14, 27, 44, .1); border-radius: 12px; padding: 4px 16px;
  background: var(--card);
}
.faq-item summary{
  cursor: pointer; list-style: none; padding: 14px 26px 14px 0;
  position: relative;
}
.faq-item summary h3{
  font-size: 1rem; font-weight: 700; color: var(--bg); line-height: 1.4;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{
  content: "+"; position: absolute; right: 0; top: 12px;
  font-size: 1.3rem; color: var(--cta); font-weight: 700;
}
.faq-item[open] summary::after{ content: "\2212"; }
.faq-item p{ color: var(--text); padding-bottom: 16px; margin: 0; }

/* ---------- Bottom sticky CTA bar (<768px only) ---------------------------- */
.sticky-cta{ display: none; }
@media (max-width: 767px){
  .sticky-cta{
    display: flex; position: fixed; left: 0; right: 0;
    bottom: var(--cta-bottom-offset, 0px);
    z-index: 600; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--bg-3); border-top: 1px solid rgba(243, 247, 252, .14);
    transition: bottom .2s ease;
  }
  .sticky-cta-btn{
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--cta); color: #fff; font-weight: 800; font-size: 1.2rem;
    border-radius: 999px; padding: 13px 20px;
  }
  .sticky-cta-icon{ font-size: 1.1rem; }
  body{ padding-bottom: 82px; }
  .to-top{ bottom: calc(82px + var(--cta-bottom-offset, 0px) + 12px); }
}

/* ---------- Internal pages: page-hero + mini-FAQ --------------------------- */
.page-hero{ padding-block: clamp(28px, 6vw, 48px) 8px; text-align: center; }
.page-hero h1{
  font-size: clamp(1.7rem, 4vw + .6rem, 2.4rem); color: var(--text-inv); margin-bottom: 10px;
}
.page-hero p{ color: rgba(243, 247, 252, .85); max-width: 620px; margin-inline: auto; }
.mini-faq{ display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
