/*
  Önálló, prefixelt (ksz-) stíluskészlet a játékoldalakba ágyazott
  felső navigációhoz. Szándékosan nem osztozik osztálynevet a
  fő oldal style.css-ével vagy bármelyik játék saját CSS-ével,
  hogy soha ne ütközzön velük.
*/
.ksz-bar {
  position: relative;
  z-index: 1000;
  height: 48px;
  background: #070a13;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.ksz-bar-inner {
  max-width: 1180px;
  height: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ksz-bar-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #eef1fa;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.ksz-bar-logo svg {
  width: 26px;
  height: 26px;
  display: block;
}

.ksz-bar-logo b {
  color: #6f9dff;
  font-weight: 800;
}

.ksz-bar-nav {
  display: flex;
  gap: 4px;
}

.ksz-bar-nav a {
  color: #eef1fa;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ksz-bar-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ff4561;
}

/* Teljes képernyős játék módban a sáv eltűnik, a játék visszakapja a teljes helyet */
html.ksz-fullscreen .ksz-bar {
  display: none;
}

/* Ad band at the bottom of game pages. The game area gets shorter by the band's height,
   so the ad never covers the game; in fullscreen the band is hidden. */
html.mj-ad-on { --mj-ad-h: 70px; }
@media (min-width: 768px) and (min-height: 600px) { html.mj-ad-on { --mj-ad-h: 112px; } }
html.mj-ad-on:not(.ksz-fullscreen) .game-frame {
  height: calc(100vh - 48px - var(--mj-ad-h)) !important;
  height: calc(100dvh - 48px - var(--mj-ad-h)) !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
html.mj-ad-on body:not(:has(.game-frame)) { padding-bottom: var(--mj-ad-h); }

.ksz-ad {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  height: var(--mj-ad-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 8px 6px;
  box-sizing: border-box;
  background: #070a13;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.ksz-ad-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9aa4c0;
  opacity: 0.8;
  line-height: 1;
  margin-bottom: 3px;
}
.ksz-ad-unit {
  flex: 1;
  width: 100%;
  max-width: 728px;
  min-height: 0;
}
.ksz-ad .ad-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #9aa4c0;
  font-size: 12px;
}
html.ksz-fullscreen .ksz-ad {
  display: none;
}
