html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,
blockquote,pre,abbr,address,cite,code,del,dfn,em,img,
ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,
fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,
article,aside,canvas,details,figcaption,figure,footer,header,hgroup,
menu,nav,section,summary,time,mark,audio,video{margin:0; padding:0; outline:0; border:0;}
ol, ul, li {list-style:none;}
html, body {
    margin: 0; padding: 0; height: 100%;
    overflow: hidden; /* 스크롤바 숨기기 */
  }
  #container {
    height: 100vh;
    width: 100vw;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    scroll-behavior: smooth;
  }
  #container {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE 10+ */
}

#container::-webkit-scrollbar {
	display: none; /* Chrome, Safari, Opera */
}
.section {
	position: relative;
	height: 100vh;
	width: 100vw;
	scroll-snap-align: start;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	overflow: hidden;
	display: flex;
  justify-content: center;
  align-items: center;
}

/* 모달 구성 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  width: 374px;
  height: 155px;
  background-image: url('https://imgcdn.topgame.kr/tqgame/3d/pre-register/modal2.png');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 30px 20px 20px;
  box-sizing: border-box;
}

/* 메시지 */
.modal-message {
  font-size: 14px;
  font-weight: bold;
  color: #000;
  margin-top: 0px;
  margin-bottom: 30px;
}

/* 버튼 */
.modal-button {
  width: 126px;
  height: 36px;
  background-image: url('https://imgcdn.topgame.kr/tqgame/3d/pre-register/modal_confirm.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: 0 auto;
  cursor: pointer;
}

#fixed-arrow-wrapper {
  position: fixed;
  bottom: 2vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}

#fixed-arrow-visual {
  width: 8vw;
  max-width: 124px;
  min-width: 60px;
  
  display: flex;
  justify-content: center;
  align-items: center;
  
  animation: bounce 1.5s infinite;
}

#fixed-arrow-visual img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

#fixed-arrow-visual.rotate-up img {
  transform: rotate(-180deg);
  transition: transform 0.3s ease;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.content-wrapper {
  width: 90vw;         /* 뷰포트 너비 대비 */
  max-width: 1554px;
  aspect-ratio: 1554 / 1025; /* 전체 컨텐츠 비율 (width / height) */
  
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0;
  box-sizing: border-box;
}

.main-content {
  width: 95%;
  aspect-ratio: 1554 / 809;
  object-fit: contain;
  display: block;
}

.img-row {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: calc(249px * 4 + 10vw * 3);
}

.img-row img {
  width: 15vw;
  max-width: 249px;
  height: auto;
  min-width: 120px;
  cursor:pointer;
}

.arrow {
  margin-top: 20px;
  width: 8vw;
  max-width: 124px;
  height: auto;
  min-width: 60px;
}
.join-buttons2 {
  position: absolute;
  top: 32px;
  right: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;             
  z-index: 1000;
}

.join-btn-kakao,
.join-btn-naver,
.join-btn-insta {
  cursor: pointer;
  height: 52px;
  transition: filter 0.2s;
  display: block;
}

.join-btn-kakao:hover,
.join-btn-naver:hover,
.join-btn-insta:hover,{
  filter: brightness(0.9);
}	
.menu-buttons {
	position: absolute;
	top: 32px;
	left: 32px;
	display: flex;
	flex-direction: column;
	gap: 12px;             
	z-index: 1000;
	top: 50%;
	transform: translateY(-50%);
}
.join-btn-main,
.join-btn-event,
.join-btn-media {
	cursor: pointer;
	height: 59px;
	transition: filter 0.2s;
	display: block;
}
.event-title {
	width: 50vw;
	max-width: 929px;
	min-width: 600px;
	aspect-ratio: 929 / 892;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}
.event_button_back {
	 position: absolute;
	  top: 6.1%;
	  width: 77.15%;
	  height: 13%;
	  background-size: contain;
	  background-repeat: no-repeat;
	  background-position: center;
	  transform: translateY(-50%);
}
.btn_plus {
	 position: absolute;
	  top: 6.1%;
	  width: 20.85%;
	  height: 5%;
	  background-size: contain;
	  background-repeat: no-repeat;
	  background-position: center;
	  transform: translate(-90.8%, -50%);
}
.btn_lounge {
	 position: absolute;
	  top: 6.1%;
	  width: 24.35%;
	  height: 5%;
	  background-size: contain;
	  background-repeat: no-repeat;
	  background-position: center;
	  transform: translate(78%, -50%);
}
.button_back {
	 position: absolute;
	  top: 6.1%;
	  width: 37.15%;
	  height: 10%;
	  background-size: contain;
	  background-repeat: no-repeat;
	  background-position: center;
	  transform: translate(-51%, -50%);
	  transition: transform 0.5s ease;
}
.button_plus {
	 position: absolute;
	  top: 6.1%;
	  width: 37.15%;
	  height: 10%;
	  background-size: contain;
	  background-repeat: no-repeat;
	  background-position: center;
	  transform: translate(-51%, -50%);
	  cursor:pointer;
}
.button_lounge {
	 position: absolute;
	  top: 6.1%;
	  width: 24.35%;
	  height: 5%;
	  background-size: contain;
	  background-repeat: no-repeat;
	  background-position: center;
	  transform: translate(78%, -50%);
	  cursor:pointer;
}
.event1 {
	 position: absolute;
	  top: 40.1%;
	  width: 88.15%;
	  height: 45%;
	  background-size: contain;
	  background-repeat: no-repeat;
	  background-position: center;
	  transform: translateY(-50%);
}
.plus_join {
	 position: absolute;
	  top: 74%;
	  width: 38.55%;
	  height: 10%;
	  background-size: contain;
	  background-repeat: no-repeat;
	  background-position: center;
	  transform: translateY(-50%);
	  cursor: pointer;
}

.event2 {
	 position: absolute;
	  top: 45.1%;
	  width: 88.15%;
	  height: 63.47%;
	  background-size: contain;
	  background-repeat: no-repeat;
	  background-position: center;
	  transform: translateY(-50%);
}
.lounge_join {
	 position: absolute;
	  top: 84%;
	  width: 38.55%;
	  height: 10%;
	  background-size: contain;
	  background-repeat: no-repeat;
	  background-position: center;
	  transform: translateY(-50%);
	  cursor: pointer;
}
.btn_plus,
.btn_lounge {
transition: opacity 0.3s ease;
  opacity: 0;
}
.btn_plus.active,
.btn_lounge.active {
  opacity: 1;
}
.kakao, .naver {
 transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.kakao.active,
.naver.active {
  opacity: 1;
  pointer-events: auto;
}

.media-title {
	width: 60vw;
	max-width: 1065px;
	min-width: 600px;
	aspect-ratio: 1065 / 900;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}
.media_button_back {
	 position: absolute;
	  top: 6.1%;
	  width: 100%;
	  height: 13%;
	  background-size: contain;
	  background-repeat: no-repeat;
	  background-position: center;
	  transform: translateY(-50%);
}
.button_back_img {
	 position: absolute;
	  top: 6.1%;
	  width: 33%;
	  max-width: 347px;
	  height: 10%;
	  background-size: contain;
	  background-repeat: no-repeat;
	  background-position: center;
	  transform: translate(-100%, -50%);
	  transition: transform 0.5s ease;
}
.media-text1 {
	 position: absolute;
	  top: 6.1%;
	  width: 20.85%;
	  height: 5%;
	  background-size: contain;
	  background-repeat: no-repeat;
	  background-position: center;
	  transform: translate(-158.8%, -50%);
}
.media-text2 {
	 position: absolute;
	  top: 6.1%;
	  width: 24.35%;
	  height: 5%;
	  background-size: contain;
	  background-repeat: no-repeat;
	  background-position: center;
	  transform: translate(0%, -50%);
}
.media-text3 {
	 position: absolute;
	  top: 6.1%;
	  width: 24.35%;
	  height: 5%;
	  background-size: contain;
	  background-repeat: no-repeat;
	  background-position: center;
	  transform: translate(136%, -50%);
}
.button_media1 {
	 position: absolute;
	 top: 6.1%;
	  width: 33%;
	  max-width: 347px;
	  height: 10%;
	  background-size: contain;
	  background-repeat: no-repeat;
	  background-position: center;
	  transform: translate(-100%, -50%);
	  cursor:pointer;
}
.button_media2 {
	 position: absolute;
	  top: 6.1%;
	  width: 33%;
	  max-width: 347px;
	  height: 10%;
	  background-size: contain;
	  background-repeat: no-repeat;
	  background-position: center;
	  transform: translate(0%, -50%);
	  cursor:pointer;
}
.button_media3 {
	 position: absolute;
	  top: 6.1%;
	  width: 33%;
	  max-width: 347px;
	  height: 10%;
	  background-size: contain;
	  background-repeat: no-repeat;
	  background-position: center;
	  transform: translate(100%, -50%);
	  cursor:pointer;
}
.button_media1,
.button_media2,
.button_media3 {
transition: opacity 0.3s ease;
  opacity: 0;
}
.button_media1.active,
.button_media2.active,
.button_media3.active
{
  opacity: 1;
}
.media-text1.active,
.media-text2.active,
.media-text3.active {
  opacity: 1;
}
.youtube-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}

.youtube-modal-content {
  position: relative;
  width: 100%;
  max-width: 1000px; /* 최대 1000px */
  background: #000;
}

.youtube-modal-close-btn {
  position: absolute;
  top: -30px; right: -30px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  user-select: none;
}

.youtube-video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 비율 */
  height: 0;
}

.youtube-video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}
.media-box {
	position:absolute; top: 42%; left:50%; transform:translate(-50%, -42%);width:100%;height:70%;margin-top: 30px;
}