:root{
  --midnight:#141a3b;
  --infra:#e1325c;
  --anthracite:#241f21;
  --hdr-pad-y: 20px;      /* bolo cca 14-16px -> +30% */
  --hdr-gap: 16px;        /* menšie medzery medzi blokmi */
  --hdr-btn: 52px;        /* bolo 40px -> +30% */
  --brand-logo-h: 48px;   /* logo vyššie, stále bez deformácie */
  --white:#ffffff;
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);
  --line: rgba(255,255,255,0.10);
  --top-row-h: 62px;      /* výška “hlavného riadku” (logo/menu/pravé ikony) */
  --pill-gap-top: 14px;   /* ako nízko má byť pill pod menu */
  --hdr-top-h: 64px;     /* výška top riadku (doladíš 60–70px) */
  --hdr-pill-gap: 0px; /* vzdialenosť pill od top menu */
}

/* Header bez pozadia */
.site-header.is-transparent{
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: none;
  background: transparent;
  backdrop-filter: none;
}

.site-header .header-inner{
  display: grid !important;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: var(--hdr-top-h) auto;
  align-items: center;               /* všetko v TOP riadku na stred */
  column-gap: 22px;                  /* menšie medzery medzi blokmi */
}

.header-inner{
  max-width: 1980px;
  margin: 0 auto;

  /* na veľkých obrazovkách viac dýcha, na menších sa priblíži */
  padding: 12px clamp(14px, 2.2vw, 48px);

  display: flex;
  align-items: center;
  justify-content: space-between; /* brand vľavo, menu vpravo */
  gap: clamp(10px, 2vw, 40px);    /* na menších sa zmenší */
}

/* CENTER stack: top menu v 1. riadku, pill v 2. */
.site-header .center-stack{
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-rows: var(--hdr-top-h) auto;
  align-items: center;
  justify-items: center;
  min-width: 0;
}

/* TOP menu presne v top riadku */
.site-header .center-top{
  height: var(--hdr-top-h);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;                        /* odstráni posun */
  margin: 0;
}

/* RIGHT musí sedieť do 1. riadku */
.site-header .header-right{
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  height: var(--hdr-top-h);
  padding: 0;                        /* dôležité */
  margin: 0;
}

/* PILL je v 2. riadku, uprostred */
.site-header .games-pill{
  margin-top: var(--hdr-pill-gap);

  padding: 10px 12px;
  border-radius: 999px;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  display: inline-flex;
  align-items: center;
  gap: 14px;

  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
}

.site-header .game-btn:hover{
  opacity: 1;
  transform: translateY(-1px);
}

/* aktívny stav už nie je “pill”, len zvýraznenie textu/ikonky */
.site-header .game-btn.is-active{
  opacity: 1;
  color: #fff;
}

/* ikonka */
.site-header .game-icon{
  width: 18px;
  height: 18px;
  display:block;
  object-fit: contain;
}

/* (voliteľné) jemná deliaca čiarka medzi položkami bez kapsúl */
.site-header .games-pill .game-btn + .game-btn{
  position: relative;
  padding-left: 16px;
}
.site-header .games-pill .game-btn + .game-btn::before{
  content:"";
  position:absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.10);
}

.site-header .games-pill::-webkit-scrollbar{ height: 0; }
.site-header .games-pill{ scrollbar-width: none; }

/* ZRUŠ “pill v pill” -> vnútri už žiadne pozadie ani border */
.site-header .game-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 6px 2px;          /* len jemné odsadenie, nie kapsula */
  border: 0;
  background: transparent;
  border-radius: 0;

  text-decoration: none;
  color: rgba(255,255,255,0.92);

  font-weight: 800;
  font-size: 13px;
  line-height: 1;

  opacity: 0.92;
  transition: opacity .12s ease, transform .12s ease;
}


/* Ak by niekde zostal extra padding */
.site-header .nav,
.site-header .brand-text,
.site-header .brand-title,
.site-header .brand-sub{
  margin: 0;
  padding: 0;
}

/* Logo bez deformácie */
.site-header .brand-logo{
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* pomoc: zjednoť výšku ikon + logout, aby sadli do riadku */
.site-header .circle-btn,
.site-header .logout-btn{
  height: 52px;
}

.site-header .brand{
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  height: var(--hdr-top-h);
  padding: 0;                        /* dôležité: žiadny top padding */
  margin: 0;
}

.mobile-nav-inner{
  max-width: 1980px;
  margin: 0 auto;
  padding: 10px clamp(14px, 2.2vw, 48px) 14px;
  display: grid;
  gap: 8px;
}

.nav{
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  gap: 18px;              /* zmenši gap menu položiek, ak treba */
}

/* Väčší font v menu */
.nav .nav-link{
  font-size: 16px;     /* bolo typicky 13–14px */
  font-weight: 700;    /* nech je čitateľnejšie */
  letter-spacing: .2px;
  line-height: 1;
  padding: 10px 10px;  /* trochu viac “hit area” */
}

.header-right{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;              /* menší gap vpravo */
}

/* FIX: subtext pod title (brand) */
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  height: var(--top-row-h);
}

.brand-text{
  display: flex;
  flex-direction: column;   /* kľúč */
  align-items: flex-start;
  line-height: 1.05;
}

.brand-title,
.brand-sub{
  display: block !important; /* aby nikdy nešli vedľa seba */
  width: 100% !important;
}

.brand-row{
  display:flex;
  align-items:center;
  gap: 10px;
}

.brand-title{
  display: block;           /* kľúč */
  color: #fff;
  font-weight: 900; /* BOLD */
}

.brand,
.brand:visited{
  color: #fff;
  text-decoration: none;
}

/* pre istotu aj keď by to niekde podčiarkovalo */
.brand .brand-title,
.brand .brand-sub{
  text-decoration: none;
}

.brand-logo{
  height: 48px;           /* dolaď podľa potreby */
  width:auto;
  object-fit:contain;
}

.brand-text{
  display:flex;
  flex-direction: column;
  justify-content:center;
  line-height: 1.05;
}

/* CENTER: top menu je ten istý riadok ako brand + right */
.center-stack{
  flex: 1 1 auto;
  min-width: 0;
  display:flex;
  flex-direction: column;
  align-items:center;
}

/* TOP časť centra = presná výška a vertikálne centrovanie */
.center-top{
  height: var(--top-row-h);
  display:flex;
  align-items:center;
  justify-content:center;
  width: 100%;
}

.brand-sub{
  display: block;           /* kľúč */
  margin-top: 4px;
  color: rgba(255,255,255,0.75);
}
/* Desktop nav */
.nav{
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
  justify-content:center;
}

.header-right{
  display:flex;
  align-items:center;
  height: var(--top-row-h);
  gap: 10px;
}

.circle-btn,
.logout-btn{
  height: 52px;           /* ak máš už premennú --hdr-btn, tak použi tú */
}

.games-pill{
  margin-top: var(--pill-gap-top);
}

.nav-link{
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 12px;
  transition: background .15s ease, transform .15s ease, border-color .15s ease, color .15s ease;
  border: 1px solid transparent;
}

.nav-link:hover{
  background: transparent;
  border-color: transparent;
  transform: none;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.nav-link.is-active{
  background: transparent;
  border-color: transparent;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

/* Mobile button */
.menu-btn{
  display: none;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(36,31,33,0.10);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.menu-icon{
  display:block;
  width: 22px;
  height: 14px;
  position: relative;
}

.menu-icon::before,
.menu-icon::after{
  content:"";
  position:absolute;
  left:0; right:0;
  height:2px;
  background: var(--white);
  border-radius:2px;
}

.menu-icon::before{ top:0; }
.menu-icon::after{ bottom:0; }

.menu-icon{
  background: var(--white);
  height:2px;
  border-radius:2px;
  margin-top:6px;
}

/* Mobile dropdown */
.mobile-nav{
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(20, 26, 59, 0.92);
  backdrop-filter: blur(14px);
}

.mobile-nav[data-open="true"]{
  display: block;
}

.mobile-nav-inner{
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 18px 14px;
  display: grid;
  gap: 8px;
}

.mobile-nav .nav-link{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Responsive */
@media (max-width: 900px){
  .nav{ display:none; }
  .header-right{ display:none; }
  .menu-btn{ display:inline-flex; }
}

@media (max-width: 1200px){
  .nav .nav-link{
    padding: 8px 8px;
  }
}

@media (max-width: 1400px){
  :root{ --pill-gap-top: 10px; }
  .nav{ gap: 16px; }
}

/* Circle icons (profile + language) */
.circle-btn{
  width: var(--hdr-btn);
  height: var(--hdr-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  padding: 0;
}

.circle-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
}

.circle-btn:active{
  transform: translateY(0px);
}

.circle-icon{
  width: 60%;
  height: 60%;
  display:block;
  object-fit: contain; /* dôležité: nedeformuje */
}

/* ===== Language dropdown panel ===== */
.lang-wrap{
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* panel box ako na obrázku */
.lang-panel{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 210px;
  padding: 10px;
  border-radius: 14px;

  background: rgba(10, 14, 28, 0.86);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
  backdrop-filter: blur(14px);

  display: none;
  z-index: 999;
}

.lang-panel[data-open="true"]{
  display: block;
}

.lang-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.lang-item{
  width: 56px;
  height: 42px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  overflow: hidden;
}

/* vlajka vnútri */
.lang-item img{
  width: 24px;
  height: 24px;
  display:block;
  object-fit: cover;
  border-radius: 999px;
}

/* aktuálny jazyk */
.lang-item.is-current{
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.09);
}

/* disabled (DE/FR/PL/CZ zatiaľ) */
.lang-item.is-disabled{
  opacity: 0.35;
  filter: grayscale(1);
  cursor: not-allowed;
}

/* clickable */
.lang-item:not(.is-disabled){
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.lang-item:not(.is-disabled):hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.18);
}

/* aby button (vlajka v kruhu) nebol podčiarknutý */
.lang-toggle{
  border: 1px solid rgba(255,255,255,0.12);
}
.logout-btn{
  height: var(--hdr-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;

  font-size: 13px;      /* mierne väčšie, ale nie 30% */
  font-weight: 800;
  line-height: 1;
  text-decoration: none;

  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
}
.logout-btn:hover{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.20);
}

/* CENTER: 2-row stack */
.center-stack{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;              /* medzera medzi menu a game pill */
  flex: 1 1 auto;
  min-width: 0;
}

/* Games pill container */
.games-pill{
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 8px 10px;
  border-radius: 999px;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
}

/* skryť scrollbar (modern browsers) */
.games-pill::-webkit-scrollbar{ height: 0; }
.games-pill{ scrollbar-width: none; }

/* Game button */
.game-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 12px;
  border-radius: 999px;

  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(20,26,59,0.28);

  color: rgba(255,255,255,0.92);
  font-weight: 800;
  font-size: 13px;
  line-height: 1;

  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.game-btn:hover{
  transform: translateY(-1px);
  background: rgba(20,26,59,0.40);
  border-color: rgba(255,255,255,0.18);
}

.game-btn.is-active{
  border-color: rgba(225,50,92,0.65);
  box-shadow: 0 0 0 3px rgba(225,50,92,0.18);
}

/* Game icon */
.game-icon{
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

/* Mobile variant */
.games-pill--mobile{
  margin: 12px 0 6px 0;
  border-radius: 16px;
  padding: 10px;
}