html.winner-popup-open {
  overflow: hidden;
}

/* 스크롤바 숨김 */
.pc_floating_btn_obj,
#winnerList,
#winnerList2,
#winnerList3,
#winnerList4,
#winnerList5 {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE, Edge */
}
.pc_floating_btn_obj::-webkit-scrollbar,
#winnerList::-webkit-scrollbar,
#winnerList2::-webkit-scrollbar,
#winnerList3::-webkit-scrollbar,
#winnerList4::-webkit-scrollbar,
#winnerList5::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

/* 팝업 컨테이너 */
.pc_floating_btn_obj {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 30%;
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 16px;
}

/* 팝업 내부 relative 컨테이너 */
.popup-inner {
  position: relative;
}

/* 팝업 배경 이미지 */
.popup-bg-img {
  pointer-events: none;
  width: 100%;
  display: block;
}

/* 닫기 이미지 */
#pcPopupCloseImg {
  cursor: pointer;
  position: absolute;
  top: 24px;
  right: 24px;
  width: 1vw;
  height: 1vw;
  z-index: 10000001;
  pointer-events: auto;
}

/* 닫기 영역 */
#pcPopupCloseArea {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 1vw;
  height: 1vw;
  z-index: 10000002;
  cursor: pointer;
}

/* 첫 번째 당첨자 표시 영역 */
.winner-first-section {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 0.8vw 2vw;
  border-radius: 8px;
  z-index: 10000000;
  width: 81%;
  text-align: center;
  /* top은 JavaScript로 동적 계산 */
}

.winner-first-section h3 {
  font-size: 1.6vw;
  font-weight: 600;
  color: #424242;
  margin: 0 0 0.5vw 0;
}

.winner-first-section h3:last-child {
  margin: 0;
}

/* 검색 및 당첨자 리스트 컨테이너 */
#winnerContainer,
#winnerContainer2,
#winnerContainer3,
#winnerContainer4,
#winnerContainer5 {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 1vw 2vw;
  border-radius: 8px;
  z-index: 10000000;
  width: 81%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  /* top과 max-height는 JavaScript로 동적 계산 */
}

/* 검색 영역 */
.search-area {
  display: flex;
  gap: 8px;
  margin-bottom: 0.8vw;
  align-items: center;
}

/* 검색 입력 필드 */
#searchInput,
#searchInput2,
#searchInput3,
#searchInput4,
#searchInput5 {
  width: 13.2vw;
  padding: 0.7vw 1vw;
  font-size: 0.9vw;
  border: 2px solid #ddd;
  border-radius: 6px;
  outline: none;
  box-sizing: border-box;
}

/* 검색 버튼 */
#searchBtn,
#searchBtn2,
#searchBtn3,
#searchBtn4,
#searchBtn5 {
  padding: 0.7vw 2.4vw;
  font-size: 0.9vw;
  font-weight: 600;
  background: #002466;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-sizing: border-box;
  line-height: 1.2;
  white-space: nowrap;
}

/* 당첨자 리스트 */
#winnerList,
#winnerList2,
#winnerList3,
#winnerList4,
#winnerList5 {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  /* max-height는 JavaScript로 동적 계산 */
  /* border: 1px solid #eee; */
  border-radius: 6px;
  /* padding: 0.4vw; */
  box-sizing: border-box;
}

/* 검색 당첨자 리스트 항목 */
#winnerList4 > div,
#winnerList5 > div {
  font-size: 1vw;
}

/* ========== 모바일 버전 스타일 ========== */

/* 모바일 팝업 컨테이너 */
.mo_floating_btn_obj {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 85%;
  max-height: 80vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 16px;
  background: #fff;
}

/* 모바일 팝업 내부 relative 컨테이너 */
.mo-popup-inner {
  position: relative;
}

/* 모바일 팝업 배경 이미지 */
.mo-popup-bg-img {
  pointer-events: none;
  width: 100%;
  display: block;
}

/* 모바일 닫기 이미지 */
#moPopupCloseImg {
  cursor: pointer;
  position: absolute;
  top: 16px;
  right: 16px;
  width: 3vw;
  height: 3vw;
  z-index: 10000001;
  pointer-events: auto;
}

/* 모바일 닫기 영역 */
#moPopupCloseArea {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 3vw;
  height: 3vw;
  z-index: 10000002;
  cursor: pointer;
}

/* 모바일 하드코딩 당첨자 표시 영역 */
.mo-winner-first-section {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 3vw 3.5vw;
  border-radius: 4px;
  z-index: 10000000;
  width: 81%;
  text-align: center;
  /* top은 JavaScript로 동적 계산 */
}

.mo-winner-first-section h3 {
  font-size: 3vw;
  font-weight: 600;
  color: #424242;
  margin: 0 0 2vw 0;
}

.mo-winner-first-section h3:last-child {
  margin: 0;
}

/* 모바일 검색 및 당첨자 리스트 컨테이너 */
#moWinnerContainer4,
#moWinnerContainer5 {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 13px 20px;
  border-radius: 8px;
  z-index: 10000000;
  width: 87%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  /* top과 max-height는 JavaScript로 동적 계산 */
}

/* 모바일 검색 영역 */
.mo-search-area {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  align-items: center;
}

/* 모바일 검색 입력 필드 */
#moSearchInput4,
#moSearchInput5 {
  flex: 1;
  min-width: 0;
  max-width: calc(100% - 90px);
  padding: 6px 10px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 6px;
  outline: none;
  box-sizing: border-box;
}

/* 모바일 검색 버튼 */
#moSearchBtn4,
#moSearchBtn5 {
  padding: 9px 26px;
  font-size: 12px;
  font-weight: 600;
  background: #002466;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-sizing: border-box;
  line-height: 1.2;
  white-space: nowrap;
}

/* 모바일 당첨자 리스트 */
#moWinnerList4,
#moWinnerList5 {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  /* border: 1px solid #eee; */
  border-radius: 6px;
  /* padding: 6px; */
  box-sizing: border-box;
  /* max-height는 JavaScript로 동적 계산 */
}

#moWinnerList4 > div,
#moWinnerList5 > div {
  font-size: 12px;
}

/* 모바일 스크롤바 숨김 */
.mo_floating_btn_obj,
#moWinnerList4,
#moWinnerList5 {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE, Edge */
}

.mo_floating_btn_obj::-webkit-scrollbar,
#moWinnerList4::-webkit-scrollbar,
#moWinnerList5::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}
