/* =========================================================================
   Mostbet Česko (maxismile.net) — base stylesheet
   Owner map: tokens + reset + header/footer/nav/cookie/to-top/crumbs = tech-seo.
   Dashboard panels / page-specific blocks are appended BELOW by html-front —
   do not remove or reorder anything above the "html-front appends below" line.
   ========================================================================= */

:root {
  /* Brand tokens — DESIGN_BRIEF.md, do not rename/repaint without updating the brief */
  --bg: #0B0E14;
  --bg-elev: #12161F;
  --bg-panel: #171C27;
  --line: rgba(255, 255, 255, .09);
  --text: #F2F4F7;
  --muted: rgba(242, 244, 247, .66);
  --accent: #FF7A1A;
  --accent-2: #FFC24B;
  --radius: 6px;
  --wrap: 1240px;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.55;
  -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 / kv-tables / limits — tabular figures site-wide */
.num, time, .kv-value, td.num {
  font-family: var(--font-mono);
  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: -48px;
  background: var(--accent);
  color: #14100a;
  padding: 10px 16px;
  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: 10px 20px;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-cta {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #17110a;
}
.btn-cta:hover { filter: brightness(1.06); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  margin-right: auto;
}
.brand img { border-radius: var(--radius); }

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

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.burger,
.burger::before,
.burger::after {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  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-panel);
    border: 1px solid var(--line);
    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) ---------- */
.crumbs {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--muted);
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current="page"] { color: var(--text); }

/* ---------- "Last updated" line (home only) ---------- */
.last-updated {
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
  padding: 24px 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  padding-block: 32px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer-brand { font-weight: 700; font-size: 1.05rem; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.footer-nav a { color: var(--muted); font-size: .9rem; }
.footer-nav a:hover { color: var(--accent); }
.footer-note,
.footer-copy {
  max-width: 760px;
  color: var(--muted);
  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(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.cookie-banner p { font-size: .85rem; color: var(--muted); flex: 1 1 260px; }
.cookie-banner a { color: var(--accent); }
.cookie-banner[hidden] { display: none; }

/* ---------- Back-to-top ---------- */
.to-top {
  position: fixed;
  right: 18px; bottom: 18px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  color: var(--text);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  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 { border-color: var(--accent); color: var(--accent); }

/* =========================================================================
   html-front appends dashboard/panel/page-block styles below this line.
   ========================================================================= */

/* ---------- Dashboard grid ---------- */
main { display: block; padding-block: 32px; }
.dash {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
  margin-bottom: 16px;
}
@media (min-width: 56.25em) {
  .dash { grid-template-columns: repeat(12, 1fr); }
  .dash-4 { grid-column: span 4; }
  .dash-6 { grid-column: span 6; }
  .dash-8 { grid-column: span 8; }
  .dash-12 { grid-column: span 12; }
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}
.panel-tag {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .02em;
  color: var(--muted);
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.panel-body { padding: clamp(16px, 3vw, 28px); }
.panel-body h2 { font-size: clamp(1.2rem, 2vw + .8rem, 1.6rem); font-weight: 700; margin-bottom: 12px; }
.panel-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.panel-body > p { color: var(--muted); }
.panel-body p + p { margin-top: 8px; }

/* Standalone panels used outside the 12-col grid (FAQ) */
.faq-panel {
  max-width: var(--wrap);
  margin: 0 auto 16px;
  padding-inline: 20px;
}

/* ---------- Hero ---------- */
.tabs { display: inline-flex; gap: 6px; margin-bottom: 16px; }
.tab {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-weight: 600;
  color: var(--muted);
}
.tab.is-active { color: var(--text); border-color: var(--accent); background: rgba(255, 122, 26, .12); }
#hero-heading { font-size: clamp(1.8rem, 3vw + 1rem, 2.6rem); font-weight: 700; line-height: 1.15; margin-bottom: 12px; }
.lead { color: var(--muted); font-size: 1.05rem; margin-bottom: 12px; }
.hero-mode-note { font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
.hero-mode-note strong { color: var(--accent); }
.hero-cta { margin-top: 4px; }

.account-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; margin-bottom: 10px; }
.account-icon { font-size: 1.3rem; }
.account-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 8px;
}
.account-hint { color: var(--muted); font-size: .85rem; }

/* ---------- Tables → cards (css-layout §5) ---------- */
.table-wrap { overflow-x: auto; }
main table { min-width: 420px; }
main th, main td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
main thead th { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
main tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  main table, main thead, main tbody, main tr, main td { display: block; }
  main table { min-width: 0; }
  main thead { display: none; }
  main tr { margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  main td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
  }
  main tr td:last-child { border-bottom: 0; }
  main td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--muted);
    flex-shrink: 0;
  }
}

/* ---------- Registrace ---------- */
.reg-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.reg-list li:last-child { border-bottom: 0; }

/* ---------- Promo copy-strip ---------- */
.copy-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.promo-input {
  flex: 1 1 200px;
  min-width: 0;
  background: var(--bg-elev);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: .04em;
}
.copy-btn { flex-shrink: 0; }

/* ---------- Filter chips + games grid ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
}
.chip.is-active { color: #17110a; background: var(--accent); border-color: var(--accent); }
.chip-counter { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); margin-bottom: 16px; }

.games-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
}
.game-tile {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
}
.game-tile[hidden] { display: none; }
.game-tile img, .game-tile .game-svg {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}
.game-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 14, 20, .72);
  color: var(--accent-2);
  font-weight: 700;
  font-size: .9rem;
  opacity: 0;
  transition: opacity .15s ease;
}
.game-tile:hover .game-play,
.game-tile:focus-within .game-play,
.game-tile.is-tapped .game-play { opacity: 1; }
.game-name {
  padding: 8px 10px;
  font-size: .8rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.game-studio { color: var(--muted); font-weight: 400; font-size: .72rem; }

.pill-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .82rem;
  color: var(--muted);
}

/* ---------- Aviator ---------- */
.aviator-panel .panel-body { padding-bottom: clamp(16px, 3vw, 28px); }
.aviator-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 48em) {
  .aviator-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; }
}
.aviator-chart { min-width: 0; }
.aviator-curve {
  stroke-dasharray: var(--len, 800);
  stroke-dashoffset: var(--len, 800);
  transition: stroke-dashoffset 1.1s ease;
}
.aviator-curve.is-drawn { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  .aviator-curve { transition: none; }
}
.aviator-controls label {
  display: block;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.aviator-controls output { color: var(--accent-2); font-weight: 700; margin-left: 6px; }
.aviator-controls input[type="range"] { width: 100%; margin-bottom: 16px; accent-color: var(--accent); }
.aviator-controls input[type="number"] {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  color: var(--text);
  font-family: var(--font-mono);
  margin-bottom: 16px;
}
.aviator-payout { font-size: 1.15rem; font-weight: 700; }
.aviator-payout .num { color: var(--accent-2); }
.aviator-disclaimer { margin-top: 16px; font-size: .75rem; color: var(--muted); }

/* ---------- Sportovní sázky prose ---------- */
.prose-2col { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 48em) {
  .prose-2col { grid-template-columns: 1fr 1fr; }
}
.prose-2col p { color: var(--muted); }

/* ---------- Payment pills ---------- */
.pay-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pay-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: .8rem;
  color: var(--muted);
  background: var(--bg-elev);
}
.pay-pill img { display: block; }
.pay-pill-text { padding-block: 8px; }

/* ---------- Aplikace phone mock ---------- */
.app-panel-body { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.app-panel-body > div:last-child { flex: 1 1 200px; }
.phone-mock {
  flex-shrink: 0;
  width: 120px;
  height: 240px;
  border: 6px solid var(--line);
  border-radius: 22px;
  background: var(--bg-elev);
  position: relative;
}
.phone-mock::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 6px;
  border-radius: 4px;
  background: var(--line);
}
.phone-mock::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--line);
}

/* ---------- License tiles ---------- */
.tile-grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 48em) {
  .tile-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--bg-elev);
}
.tile p { color: var(--muted); font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq-panel details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.faq-panel details:last-of-type { border-bottom: 0; }
.faq-panel summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-panel summary::-webkit-details-marker { display: none; }
.faq-panel summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}
.faq-panel details[open] summary::after { content: "–"; }
.faq-panel details p { color: var(--muted); margin-top: 10px; }

/* ---------- RG callout ---------- */
.rg-callout {
  max-width: var(--wrap);
  margin: 8px auto 32px;
  padding-inline: 20px;
}
.rg-callout {
  display: block;
  border-left: 3px solid var(--accent);
  background: var(--bg-elev);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.rg-callout h2 { font-size: 1.1rem; margin-bottom: 8px; }
.rg-callout p { color: var(--muted); margin-bottom: 10px; }
.rg-callout a { color: var(--accent); font-weight: 600; }
.rg-callout a:hover { text-decoration: underline; }

/* ---------- Internal pages: page-hero + page-block (NOT dashboard grid) ---------- */
.page-hero {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(32px, 5vw, 56px);
}
.page-hero h1 { font-size: clamp(1.8rem, 3vw + 1rem, 2.4rem); font-weight: 700; margin-bottom: 12px; }
.page-hero .lead { color: var(--muted); max-width: 62ch; }

.page-block { padding-block: clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-block:last-of-type { border-bottom: 0; }
.page-block h2 { font-size: clamp(1.2rem, 2vw + .8rem, 1.6rem); font-weight: 700; margin-bottom: 16px; }
.page-block p { color: var(--muted); }
.page-block .lead { margin-bottom: 16px; }

.mini-faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.mini-faq details:last-of-type { border-bottom: 0; }
.mini-faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.mini-faq summary::-webkit-details-marker { display: none; }
.mini-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}
.mini-faq details[open] summary::after { content: "–"; }
.mini-faq details p { color: var(--muted); margin-top: 10px; }

.step-list { counter-reset: step; display: grid; gap: 12px; }
.step-list li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  color: var(--muted);
  min-height: 28px;
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 1px solid var(--accent);
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
}
