.mk-header {
  display: flex;
  justify-content: space-between;
  padding: 2rem 1rem;
  background: radial-gradient(
    circle,
    rgba(25, 0, 187, 0.2) 5%,
    rgba(3, 44, 126, 0.3) 50%,
    rgba(0, 0, 0, 1) 100%
  );

  backdrop-filter: blur(5px) brightness(2); /* 배경 흐림 + 밝기 강화 */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  top: 0;
  z-index: 100;
    /* ✨ 아래쪽만 부드럽게 떠 있는 느낌의 그림자 */
    box-shadow: 0 6px 12px -4px rgba(0, 0, 0, 0.6);
    flex-direction: column; /* 모바일: 세로 배치 */
    align-items: center;


  }

.mk-logo a {
  font-size: 1.8rem;
  color: gold;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 1px;
}

.mk-nav {
  display: flex;
  gap: 1.2rem;
  padding-right: 1rem;
}

.nav-icon {
  color: rgb(255, 255, 255);
  font-size: 1.3rem;
  transition: color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .nav-icon:hover {
    color: #ff4d4d;
  }
}


/* ✅ 로고 이미지 스타일 */
.logo-wrapper {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.5rem;
}

.site-logo {
  height: 20px; /* 로고 크기 조절 */
  width: auto;
  object-fit: contain;
}

/* 📱 모바일용 레이아웃 */
@media (max-width: 768px) {
  .mk-header {
    flex-direction: column; /* 모바일: 세로 배치 */
    align-items: center;
  }

  .logo-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .logo-wrapper object {
    max-width: 70%; /* 너무 크면 줄여 */
  }

  .mk-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    padding-bottom: 1rem;
    padding-right: 0rem;
  }
}


/* 얇은 스티키 헤더 기본 상태: 숨김 */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  z-index: 999;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.5rem 1rem;

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  transform: translateY(-20px); /* 위에 떠있게 */
  pointer-events: none;

  box-shadow: 0 4px 6px -3px rgba(0, 0, 0, 0.3);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sticky-header.show {
  opacity: 1;
  transform: translateY(0); /* 제자리로 */
  pointer-events: auto;
  background: rgba(0, 0, 0, 1);
  z-index : 9999;
}

.sticky-header.show {
  transition: opacity 2s ease-out, transform 2s ease-out;
}

.sticky-header.show .nav-icon {
  color: rgb(255, 255, 255);
}

@media (max-width: 768px) {
  .sticky-header {
    padding: 0rem 0.8rem !important; /* 위아래 살짝 줄이기 */
  }

  .sticky-header .nav-icon {
    font-size: 1rem;
    line-height: 0.8;
    padding: 0rem 0.3rem;
  }
}

/* ✅ 로고 & 메뉴 정렬 */
.mk-header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}



/* 버튼 정렬 */
/* ✅ 오른쪽 상단 버튼 */
.auth-buttons {
  position: absolute;
  top: 1rem;
  right: 1.3rem;
  display: flex;
  gap: 0.6rem;
  z-index: 999;
  align-items: center;
}

.auth-button {
  color: white;
  text-decoration: none;
  background: rgb(62, 59, 59, 0.4);
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  font-size: 0.9rem;
}


.auth-button:hover {
  background: #555;
}

@media (max-width: 768px) {
  .auth-button {
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
  }
  }


  /* 💡 공 본체 + 십자 글로우 */
.glow-ball {
  position: absolute;
  width: 15px;
  height: 15px;
  background: #e6ccff;
  border-radius: 50%;
  box-shadow:
    0 0 8px #e6ccff,
    0 0 15px #b388ff;
  z-index: 2;
  opacity: 0; /* ✅ 처음엔 안 보이게 */
  transition: opacity 0.5s ease;
}

.glow-ball::before,
.glow-ball::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 2px;
  background: #e6ccff;
  transform: translate(-50%, -50%);
  filter: blur(6px);
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
}

.glow-ball::after {
  width: 2px;
  height: 60px;
}

#loginBox {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
  display: none;
  background-color: #000000;
  padding: 16px;
  width: 220px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  font-family: sans-serif;
}

#loginBox form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#loginBox input[type="text"],
#loginBox input[type="password"] {
  padding: 8px;
  font-size: 14px;
  background-color: rgb(91, 90, 90);
  color: rgb(255, 255, 255);
}

#loginBox button {
  padding: 8px;
  background-color: rgba(0, 2, 73, 0.8);
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#loginBox button:hover {
  background-color: #0056b3;
}

.welcome {
  color: white;
  padding-right: 0.5rem;
}

@media (max-width: 768px) {
  .welcome {
    font-size: 0.7rem;
    padding-right: 0.3rem;
  }
  }


  .footer-links .home-button {
    font-size: 0.9rem;
    color: #888;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    transition: color 0.2s ease;
  }
  
  .footer-links .home-button:hover {
    color: #ccc;
  }
