/* Mafia Hunterss – společná horní navigace pro Wiki */
:root {
  --mh-topbar-bg: rgba(10, 10, 13, 0.96);
  --mh-topbar-panel: #15151b;
  --mh-topbar-border: rgba(218, 170, 38, 0.34);
  --mh-topbar-gold: #daaA26;
  --mh-topbar-text: #f5f5f7;
  --mh-topbar-muted: #a8a8b3;
}

.mh-site-topbar,
.mh-site-topbar * {
  box-sizing: border-box;
}

.mh-site-topbar {
  position: relative;
  z-index: 10000;
  width: 100%;
  background: var(--mh-topbar-bg);
  border-bottom: 1px solid var(--mh-topbar-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  color: var(--mh-topbar-text);
  font-family: Arial, Helvetica, sans-serif;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mh-site-nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.mh-site-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
  color: var(--mh-topbar-text) !important;
  text-decoration: none !important;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.mh-site-brand-badge {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(218, 170, 38, 0.7);
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #e6bd42, #9a6f08);
  color: #101014;
  font-weight: 900;
  box-shadow: 0 5px 18px rgba(218, 170, 38, 0.2);
}

.mh-site-brand small {
  display: block;
  margin-top: 4px;
  color: var(--mh-topbar-muted);
  font-size: 11px;
  font-weight: 500;
}

.mh-site-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-left: auto;
}

.mh-site-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 11px;
  border-radius: 10px;
  color: #dedee5 !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.mh-site-menu a:hover,
.mh-site-menu a:focus-visible {
  background: rgba(218, 170, 38, 0.11);
  color: #f0c644 !important;
  outline: none;
}

.mh-site-menu a.mh-active {
  color: #f0c644 !important;
  background: rgba(218, 170, 38, 0.14);
}

.mh-site-menu a.mh-play {
  margin-left: 7px;
  padding-inline: 15px;
  border: 1px solid #d9aa2f;
  background: linear-gradient(135deg, #e3bb45, #b8840e);
  color: #111116 !important;
  box-shadow: 0 5px 15px rgba(218, 170, 38, 0.16);
}

.mh-site-menu a.mh-play:hover,
.mh-site-menu a.mh-play:focus-visible {
  background: linear-gradient(135deg, #f0cc58, #c99719);
  color: #08080b !important;
  transform: translateY(-1px);
}

.mh-site-toggle {
  display: none;
  margin-left: auto;
  min-width: 44px;
  height: 44px;
  border: 1px solid rgba(218, 170, 38, 0.55);
  border-radius: 11px;
  background: #17171d;
  color: #f0c644;
  font: inherit;
  font-size: 20px;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .mh-site-nav {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .mh-site-toggle {
    display: inline-grid;
    place-items: center;
  }

  .mh-site-menu {
    display: none;
    width: 100%;
    margin-left: 0;
    padding: 10px;
    border: 1px solid rgba(218, 170, 38, 0.22);
    border-radius: 14px;
    background: var(--mh-topbar-panel);
    flex-direction: column;
    align-items: stretch;
  }

  .mh-site-topbar.mh-open .mh-site-menu {
    display: flex;
  }

  .mh-site-menu a {
    justify-content: center;
    min-height: 46px;
  }

  .mh-site-menu a.mh-play {
    margin: 5px 0 0;
  }
}

@media (max-width: 520px) {
  .mh-site-nav {
    width: min(100% - 20px, 1180px);
    min-height: 64px;
  }

  .mh-site-brand {
    font-size: 16px;
  }

  .mh-site-brand small {
    font-size: 10px;
  }

  .mh-site-brand-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
}
