/* 💎 Červeno-černá paleta (s casino zlatým akcentem) */
:root {
  /* === ZÁKLADNÍ BARVY === */
  --bg: #000000;        /* Čistá černá */
  --text: #f5f5f5;      /* Světlá barva textu (Bílá/Světle šedá) */
  --text-muted: #c0c0c0; /* Světle šedá pro tlumený text */
  
  /* === AKCENTNÍ BARVY (PŮVODNÍ PURPLE/PINK SE MĚNÍ NA RED) === */
  --purple: #CC0000;       /* Primární sytě červená (Hluboká kasino červená) */
  --purple-dark: #350000;  /* Tmavá bordó/maroon (pro stíny) */
  --pink: #FF3333;         /* Jasnější, sekundární červená (Accent Red) */
  
  /* === ZLATÉ BARVY (Zůstávají pro luxusní akcenty a kontrasty) === */
  --gold: #FFC700;         /* Ostrá zlatá/žlutá (pro lesk a akce) */
  --gold-light: #FFE699;   /* Světlá zlatá */
  --gold-glow: rgba(255, 199, 0, 0.6); /* Žlutá záře */
  
  /* === GLASSMORFISMUS (Průhledné na černém pozadí) === */
  --surface: rgba(255, 255, 255, 0.08); /* Průhledný bílý podklad */
  --border: rgba(255, 255, 255, 0.12); /* Průhledný bílý rámeček */
}

/* === Základ === */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  height: auto; /* avoid nested scrolling on body */
  font-family: "Inter", "Twemoji Mozilla", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  color: var(--text);
  /* Repeating carpet texture across the whole page (fast tiling, no scaling) */
  background-color: #0b001a; /* fallback */
  background-image: url('assets/carpet.jpg');
  background-repeat: repeat;
  background-position: top left;
  background-size: auto; /* keep native tile size for best shar pness & perf */
  background-attachment: fixed; /* keep carpet static on scroll */
  overflow-x: hidden;
}

/* Sticky footer setup - footer vždy úplně dole viewportu */
html {
  height: 100%;
}

body {
  min-height: 100vh;
}

/* Jemně větší základní písmo, ale responzivně */
html { font-size: clamp(16px, 1.1vw + 0.4rem, 19px); }

/* Ensure only one vertical scrollbar (on root) */
html { overflow-y: auto; }
body { overflow-y: visible; }

body {
  padding-top: 80px; /* header height */
  padding-bottom: 0;
  position: relative;
  isolation: isolate;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Make #content a flex column so footer can stick to bottom when content is short */
#content {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 80px);
}

/* === Hero (Landing) === */
.hero {
  flex: 1;
  min-height: calc(90vh - 160px);
  display: grid;
  place-items: center;
  position: relative;
}

/* Full viewport variant for pages that need a true fullscreen hero (e.g., Program) */
.hero.full-viewport {
  min-height: 100vh;           /* cover full viewport */
  padding: clamp(24px, 6vw, 56px) 5%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 600px at 70% -10%, rgba(255, 216, 94, 0.08), transparent 60%),
              radial-gradient(900px 500px at 10% 20%, rgba(128, 0, 0, 0.25), transparent 60%);
  pointer-events: none;
}

/* Remove hero overlay image so the carpet stays visible and we save GPU work */
.hero::after { content: none; }

.hero-content {
  position: relative;
  max-width: 1100px;
  text-align: center;
}

.motto {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  margin: 0 0 clamp(12px, 2.4vw, 18px);
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.gold { color: var(--gold); }

.lead {
  font-size: clamp(17px, 2.4vw, 22px);
  color: var(--text-muted);
  margin: 0 auto clamp(18px, 3vw, 28px);
  max-width: 800px;
}

.info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 auto clamp(18px, 3vw, 28px);
  color: var(--text);
}

.countdown {
  font-size: clamp(18px, 4vw, 28px);
  margin: clamp(10px, 2vw, 16px) 0 clamp(16px, 3vw, 24px);
  color: var(--gold-light);
  text-shadow: 0 0 12px var(--gold-glow), 0 0 24px rgba(255, 216, 94, 0.35);
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  --btn-shadow: 0 6px 18px rgba(0,0,0,0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--btn-fg);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)) , var(--btn-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--btn-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
}

.btn:active { transform: translateY(0); }

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 216, 94, 0.3), 0 8px 24px rgba(0,0,0,0.45);
}

.gold-btn {
  --btn-bg: linear-gradient(145deg, var(--gold), var(--gold-light));
  --btn-fg: #1b0030;
}

.gold-btn:hover {
  box-shadow: 0 0 18px var(--gold-glow), 0 10px 24px rgba(0,0,0,0.4);
}

/* Accent (red) button */
.accent-btn { --btn-bg: linear-gradient(145deg, var(--pink), var(--purple)); --btn-fg: #1b0030; }
.accent-btn:hover { box-shadow: 0 0 18px rgba(255,51,51,0.6), 0 10px 24px rgba(0,0,0,0.4); }

/* === Alternating Sections === */
.section {
  position: relative;
  padding: clamp(16px, 4vw, 40px) 5%;
}

.section-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.section.reverse .section-inner { grid-template-columns: 1fr 1.1fr; }
.section.reverse .section-text { order: 2; }
.section.reverse .section-media { order: 1; }

.section-text { display: grid; gap: 14px; }
.section-title { font-family: "Playfair Display", serif; font-size: clamp(26px, 4vw, 40px); margin: 0; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.section-lead { color: var(--text-muted); font-size: clamp(16px, 2.2vw, 19px); margin: 0; }

/* Twemoji obrázky: doladění velikosti a "zlatější" nádech */
.emoji {
  width: 1.1em;
  height: 1.1em;
  margin: 0 .08em;
  vertical-align: -0.1em;
  filter: hue-rotate(-10deg) saturate(120%) brightness(1.05);
}

/* Glassmorphism card */
.glass-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: clamp(16px, 3vw, 24px);
}

.section-media { text-align: center; }
.section-media img {
  width: 100%;
  max-width: 520px;
}

/* Info chips inside hero or cards */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}

.chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
}

@media (max-width: 900px) {
  .section.reverse .section-inner { grid-template-columns: 1fr; }
  .section-inner { grid-template-columns: 1fr; }
  .section.reverse .section-text { order: 0; }
  .section.reverse .section-media { order: 0; }
  .section-media img { max-width: 100%; }
  .info-grid { grid-template-columns: 1fr; }
}

/* === Preloader === */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, var(--purple-dark), #000);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100003;
  transition: opacity 0.5s ease-out, visibility 0.5s;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* 1. Hlavní točení rulety (Pomalé, po směru hodin) */
.casino-chip svg {
  border-radius: 50%;
  box-shadow: 0 0 40px var(--gold-glow), 0 10px 30px rgba(0,0,0,0.6);
  /* Zpomalíme kolo, aby vynikla rychlost kuličky */
  animation: roulette-spin 8s linear infinite; 
  transform-origin: center center;
}

/* 2. Skupina kuličky (Točí se PROTI směru rulety) */
.ball-group {
  transform-origin: 50px 50px; /* Musí se točit kolem středu SVG */
  /* Reverse = točí se doleva. 2.5s = rychlejší než kolo */
  animation: ball-orbit 2.5s linear infinite;
}

/* 3. Samotná kulička (Poskakování - změna poloměru) */
.ball {
  /* Kulička jemně kmitá dovnitř a ven (simulace nárazů do pražců) */
  animation: ball-bounce 0.4s ease-in-out infinite alternate;
}

/* === DEFINICE ANIMACÍ === */

/* Točení kola doprava */
@keyframes roulette-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Točení kuličky doleva (orbit) */
@keyframes ball-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); } /* Mínus = protisměr */
}

/* Poskakování kuličky (změna polohy Y v rámci rotující skupiny) */
@keyframes ball-bounce {
  0% { transform: translateY(0); }
  50% { transform: translateY(-2px); } /* Nadskočí */
  100% { transform: translateY(1px); } /* Dopadne níž */
}

/* === Header === */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: rgba(0, 0, 0, 0.9);
  border-bottom: 0.1px solid var(--gold);
  box-shadow: 0 6px 20px rgba(255, 199, 0, 0.35), 0 0 16px rgba(255, 199, 0, 0.25);
  backdrop-filter: blur(12px);
  z-index: 100000;
  box-sizing: border-box;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px; /* center header content to match hero width */
  margin: 0 auto;    /* center within full-width header background */
}

nav img {
  height: 40px;
  flex-shrink: 0;
  align-self: center;
}

.logo {
  display: flex;
  justify-content: center !important;
  align-items: center !important;
}
.nav-links {
  list-style: none;
  margin: 0; /* remove default ul margin */
  padding: 0; /* remove left padding causing side indent */
  display: flex;
  gap: clamp(15px, 3vw, 30px);
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 8px clamp(12px, 2vw, 18px);
  border-radius: 20px;
  background: var(--surface);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.highlight {
  background: linear-gradient(145deg, var(--gold), var(--gold-light));
  color: #1b0030;
  box-shadow: 0 0 12px var(--gold-glow);
}

/* === Overlay Menu === */
.nav-overlay {
  position: fixed; /* Ještě jednou: Musí být mimo <header> v HTML! */
  inset: 0; 
  
  /* Nastavení skleněného pozadí */
  background: rgba(0, 0, 0, 0.25); 
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100001; /* Vždy nad headerem (100000) */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.nav-overlay.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.overlay-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;

  margin: 0;
}

.close-overlay {
  position: fixed;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 30px;
  color: var(--gold);
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 100002; /* on top of overlay */
}

.close-overlay:hover {
  transform: scale(1.1);
}

.nav-links.overlay {
  flex-direction: column;
  text-align: center;
}

.nav-links.overlay a {
  display: flex;
  flex-direction: column;
  font-size: clamp(18px, 6vw, 26px);
  border-radius: 16px;
  background: var(--purple);
  color: var(--text);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}


.nav-links.overlay a:hover,
.nav-links.overlay a.highlight {
  background: linear-gradient(145deg, var(--gold), var(--gold-light));
  color: #1b0030;
  box-shadow: 0 0 24px var(--gold-glow), 0 18px 40px rgba(0,0,0,0.35);
  transform: translateY(-2px);
}

/* === Hamburger === */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 18px;
  cursor: pointer;
  z-index: 3001;
}

.hamburger div {
  background: var(--gold);
  height: 3px;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active div:nth-child(2) {
  opacity: 0;
}
.hamburger.active div:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


@media (max-width: 768px) {
  header {
    padding: 12px 4%;
  }
  
  .nav-links.desktop {
    display: none;
  }
  
  .hamburger {
    display: flex;
    width: 34px;
    height: 22px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 8px 3%;
  }
  
  nav img {
    height: 35px;
  }
}

@media (min-width: 769px) {
  .nav-overlay,
  .hamburger {
    display: none !important;
  }
}

/* Block background scroll when menu is open */
body.no-scroll {
  overflow: hidden;
}

/* === Footer === */
.site-footer {
  position: static;
  width: 100%;
  padding: 12px 5%;
  background: rgba(0, 0, 0, 0.55);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  z-index: auto;
  box-sizing: border-box;
  text-align: center;
  color: var(--text-muted);
  margin-top: 30px;
}



.site-footer .payment-logos img:hover {
  transform: translateY(-1px) scale(1.03);
  opacity: 1;
  filter: none;
}

.site-footer .footer-payment-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 8px 0 0 0;
}

.site-footer a {
  color: var(--gold);
  text-decoration: none;
  transition: all 0.3s ease;
}

.site-footer a:hover {
  color: var(--gold-light);
  text-shadow: 0 0 10px var(--gold-glow);
}

/* Footer legal identification block */
.footer-info {
  max-width: 1100px;
  margin: 0 auto 8px auto;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
}

.footer-info h3 {
  margin: 6px 0 8px 0;
  font-size: 16px;
  color: var(--gold);
  font-weight: 700;
}

.operator-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  text-align: left;
}

.operator-list li {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.operator-list .icon {
  filter: hue-rotate(330deg) saturate(1.1);
}

.operator-list .label {
  color: var(--text-muted);
}

.footer-info a {
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.2s ease, text-decoration-color 0.2s ease;
}

.footer-info a:hover { text-decoration: underline; opacity: 0.9; }

@media (max-width: 768px) {
  .operator-list { grid-template-columns: 1fr; text-align: center; }
  .operator-list li { justify-content: center; }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 8px 4%;
  }
  
  .site-footer p {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 6px 3%;
  }



.site-footer .payment-logos img:hover {
  transform: translateY(-1px) scale(1.03);
  opacity: 1;
  filter: none;
}

.site-footer .payment-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 8px 0 0 0;
}
  
  .site-footer p {
    font-size: 11px;
  }



.payment-logos img:hover {
  opacity: 1;
  filter: none;
}

/* === Responsivita === */
@media (max-width: 700px) {
  .podminky {
    padding: 1.5rem;
    margin: 5rem 1rem 1rem; /* menší header na mobilech */
  }

  .podminky h3 {
    font-size: 1.1rem;
  }

  .payment-logos img {
    width: 120px;
    max-height: 32px;
  }
}
}

.payment-logos img {
  width: 160px;
  height: auto;
  max-height: 40px;
  object-fit: contain;
  filter: grayscale(20%);
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

/* === Responsivita === */
@media (max-width: 700px) {

  .payment-logos img {
    width: 120px;
    max-height: 32px;
  }
}

/* === Consent Checkboxes === */
.consent-group {
  margin-bottom: 1rem;
}

.consent-group label {
  display: block;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.consent-text {
  font-size: 0.9rem;
  color: #333;
  margin-top: 0.5rem;
}