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;
}
.section1 {
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}
.img-button img {
	width: 30vw;
	max-width: 510px;
	min-width: 200px;
	height: auto;
}
.input-layer {
  width: clamp(700px, 70vw, 1132px);      /* ← 화면이 줄어들면 같이 줄어듦 */
  max-width: 1132px;
  aspect-ratio: 1132 / 401;
  position: absolute;
  bottom: clamp(16px, 7vh, 80px);
  left: 50%;
  transform: translateX(-50%);
}

.img-input-form {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.form-content {
  position: absolute;
  inset: 0;
}

.event-layer {
  width: clamp(320px, 70vw, 1000px); /* 원본 event1 기준 비율 */
  max-width: 1000px;
  aspect-ratio: 1000 / 925;
  margin: 0 auto;
  position: relative;
/*  top: clamp(16px, 8vh, 80px);*/
}

.img-event-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.event-content {
  position: absolute;
  inset: 0;
}

.numbers{
	font-size:1rem;font-family: 'Nanum Barun Gothic', sans-serif; position:absolute;
	background-color: #ffffffe6; color : #000; opacity:1; border: 2px solid #c1b6a1; text-align:center;outline: none;transition: border-color 0.2s;
}
.shine-layer {
  position: absolute;
  top: 476px; 
  left: 523px;
  width: 245px;
  height: 77px;
  overflow: hidden;
}
.sg {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, transparent, rgba(255,244,227,0.4), transparent, transparent);
  animation: animate-wipes 2s linear infinite;
  pointer-events: none;
  content: "";
}
@keyframes animate-wipes {
	from {left:-100%;}
	to {left:90%;}
}
.img-media-title {
	width: 50vw;
	max-width: 929px;
	min-width: 698px;
	aspect-ratio: 929 / 698;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}
.section2 {
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	z-index: 1;
}
.section3 {
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.section4 {
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}
.arrow {
  position: absolute;
  top: 50%;
  width: 9.15%;
  height: 15.47%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 2;
  margin-top: 12%;
}

.arrow-left {
  left: -2%;
  background-image: url('https://imgcdn.topgame.kr/tqgame/zb/pre-register/arrow_left.png');
}

.arrow-right {
  right: -2%;
  background-image: url('https://imgcdn.topgame.kr/tqgame/zb/pre-register/arrow_right.png');
}

.banner-box {
	width: 84.17%;
	aspect-ratio: 782 / 418;
	overflow: hidden;
	position: relative;
	z-index: 1;
	margin-top: 23%;
}

.banner-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out;
}

.banner-slide.active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.indicator-wrap {
  position: absolute;
  bottom: 0%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 1;
}

.dot {
  width: 69px;
  height: 6px;
  background-color: rgba(255, 231, 231, 0.36);
  transition: background-color 0.3s;
}

.dot.active {
  background-color: #FFE7E7;
}

#fixed-arrow-visual {
  position: fixed;
  bottom: 40px;
  right: 30px;
  width: 120px;
  z-index: 9;
  opacity: 1;
  transition: opacity 0.3s ease;
  animation: bounce 1.5s infinite;
}

#fixed-arrow-visual img {
  width: 100%;
  height: auto;
  display: block;
  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); }
}

.slide-container {
  width: 100%;
  height: 100%;
  position: relative;
}

/* 슬라이드 이미지 */
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

/* 버튼 컨테이너: 우하단 정렬 */
.slide-buttons {
  position: absolute;
  right: 28%;
  bottom: 25%;
  transform: translate(50%, 50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

/* 버튼 이미지 스타일 */
.slide-btn {
  width: 8.2vw;                /* 화면 비율에 따라 자동 조절 */
  max-width: 158px;
  min-width: 72px;
  aspect-ratio: 1 / 1;
  height: auto;
  filter: grayscale(100%);
  transition: filter 0.3s;
  cursor: pointer;
  object-fit: contain;
}

/* 선택된 버튼은 흑백 해제 */
.slide-btn.active {
  filter: grayscale(0%);
}

/* 푸터 */
#tail {
	color: white;
	position:relative; float: left;min-width:1920px;max-width:1920px;width:100%; left:50%; margin-left:-960px; background-color:#0a0a0a; overflow:hidden;;
	background: -moz-linear-gradient(bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.7) 100%); /* FF3.6-15 */
	background: -webkit-linear-gradient(bottom, rgba(0,0,0,1) 0%,rgba(0,0,0,0.7) 100%); /* Chrome10-25,Safari5.1-6 */
	background: linear-gradient(to top, rgba(0,0,0,1) 0%,rgba(0,0,0,0.7) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#000000', endColorstr='#00000000',GradientType=0 ); /* IE6-9 */
	background-repeat : no-repeat;
	 background-position:center top;
}
#tail ul {width:1400px; margin:0 auto; padding:10px 0;padding-top:0px; overflow:hidden;}
#tail .btn {padding-bottom:10px; overflow:hidden; border-bottom:1px solid #ddd;}
#tail .btn .b_01 {float:left; color:#fff; font-size:13px; font-family : "Nanum Gothic"; line-height: 20px;margin-right:0px;margin-top: 12px;}
#tail .btn .b_01 a {color:white; font-weight:bold; margin-right:10px;}
#tail .btn .b_02 {float:right;}
#tail .copy {width:100%; overflow:hidden; padding:20px 0 0 0;}
#tail .copy .logo {float:left; width:180px;}
#tail .copy .text {float:left; width:700px; color:#fff; font-size:10px; line-height:18px;font-weight: 500;}
#tail .copy .game {float:left; width:470px; color:#fff; font-size:11px; line-height:18px;font-weight: bold;}
.gamegrade { float: right;}

/* 모달 구성 */
.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;
}
/* contents */
#numbers { width: 34.5%; height: 12.8%; top: 49.5%; left: 6%; box-sizing: border-box; }
#submitbutton { width: 17.6%; height: 14.6%; top: 47.8%; left: 40.3%; }
#view1 { width: 7.9%; height: 4%; top: 66.8%; left: 48.4%; }
#numbers:focus {
	border: 2px solid #a68b62;
}
#in_chk { width: 7.4%; height: 3.5%; top: 66%; left: 25.3%;}
#in_chk3 { width: 7.4%; height: 3.5%; top: 66%; left: 3.4%; }

.store-button { width: 12.3%; height: 11.6%; }
#google { top: 74%; left: 6.2%; } 
#appstore { top: 74%; left: 18.8%; } 
#onestore { top: 74%; left: 31.7%; } 
#galaxystrore { top: 74%; left: 44.4%; } 
#event-button { width: 71.6%; height: 11.6%; top: 1.8%; left: 14.2%; } 
#event-button-2 { width: 81.6%; height: 60.6%; top: 22.8%; left: 9.2%; }

.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: 43.1%;
	  width: 88.15%;
	  height: 45%;
	  background-size: contain;
	  background-repeat: no-repeat;
	  background-position: center;
	  transform: translateY(-50%);
}
.plus_join {
	 position: absolute;
	  top: 80%;
	  width: 38.55%;
	  height: 10%;
	  background-size: contain;
	  background-repeat: no-repeat;
	  background-position: center;
	  transform: translateY(-50%);
	  cursor: pointer;
}

.event2 {
	 position: absolute;
	  top: 53.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: 94%;
	  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.1s ease;
  opacity: 0;
}
.btn_plus.active,
.btn_lounge.active {
  opacity: 1;
}
.kakao, .naver {
  transition: opacity 0.1s ease;
  opacity: 0;
  pointer-events: none;
}

.kakao.active,
.naver.active {
  opacity: 1;
  pointer-events: auto;
}