@charset "utf-8";
/* 2026 한가위 이벤트 - 통합 스타일 (단일 파일)
 * 구성: 리셋/공용(작년 20251001_thanksgiving 컨벤션 계승) + 슬라이스 좌표 + 연출 + 반응형
 * 반응형: 1920x1080 기본 스펙 / 최소 1280 폭
 * 전 섹션 20240826_chuseok 방식 요소별 반응형
 * (배경 cover, 타이틀/버튼 원본 크기 고정, cont/캐릭터 높이(vh) 맞춤, 장식 vw/vh 앵커)
 */

/* ---------------- 폰트 ---------------- */
@font-face {
  font-family: "NanumSquareRound";
  font-weight: 400;
  src: local("NanumSquareRoundR"), url("https://file.valofe.com/Valofe_file/web/fonts/NanumSquareRound/NanumSquareRoundR.woff2") format("woff2");
}

@font-face {
  font-family: "NanumSquareRound";
  font-weight: 700;
  src: local("NanumSquareRoundB"), url("https://file.valofe.com/Valofe_file/web/fonts/NanumSquareRound/NanumSquareRoundB.woff2") format("woff2");
}

/*  Reset CSS  */
* {
  margin: 0;
  padding: 0;
  font-family: "NanumSquareRound", sans-serif;
  box-sizing: border-box;
}

ol,
ul {
  list-style: none;
}

a {
  outline: 0;
  text-decoration: none;
  color: #555;
}

img {
  border: 0;
}

body {
  font: 12px/1.6 arial;
  color: #555;
  min-width: 1280px;
  margin: 0;
  padding: 0;
  background: #0b1020;
}

/* 스크롤 바 */
::-webkit-scrollbar {
  width: 4px;
  height: 4px; /* 가로 스크롤바도 얇게 */
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: rgba(206, 158, 87, 0.85);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(206, 158, 87, 1);
}

.hidden {
  visibility: hidden;
  position: absolute;
}

.text-indent {
  text-indent: -9999px;
}

.wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: auto;
}

#wrap {
  position: relative;
  width: 100%;
}

/* ---------------- sns (우측 상단) ---------------- */
#sns {
  position: fixed;
  top: 40px;
  right: 50px;
  z-index: 14;
}

#sns li {
  float: left;
  margin-left: 20px;
}

#sns li i {
  font-size: 25px;
  color: #f3cd7e;
  opacity: 0.7;
  transition: all 0.25s;
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands";
  font-style: normal;
  line-height: 1;
}

#sns li .fa-brands, #sns li .fab, .fa-brands, .fab {
  font-weight: 400;
  font-family: "Font Awesome 6 Brands";
}

#sns li i:hover {
  transform: scale(1.2);
  opacity: 1;
}

/* ---------------- 공용 LNB ---------------- */
#lnb {
  box-sizing: border-box;
  position: fixed;
  height: 100%;
  width: 310px;
  overflow: hidden;
  top: 0;
  left: 0px;
  margin-top: 0;
  z-index: 14;
}

#lnb .lnb-wrapper {
  margin-top: 0;
  box-sizing: border-box;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
  width: 263px;
  padding: 0px 16px 30px 30px;
  background-color: rgba(0, 0, 0, 0.85);
  background-size: 263px 100%;
  background-repeat: repeat;
  background-position: left top;
  height: 100%;
  overflow-y: auto;
}

h1 {
  position: absolute;
  top: 34px;
  left: 2rem;
  z-index: 10;
  width: 100%;
  max-width: 200px;
  text-align: center;
}

h1 img {
  width: 19vh;
  height: auto;
  max-width: 200px;
  cursor: pointer;
}

.btn-lnb-controll {
  position: absolute;
  left: 263px;
  top: 71px;
  width: 45px;
  height: 46px;
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.85);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.btn-lnb-controll .blit {
  display: inline-block;
  margin-top: 13px;
  margin-left: 9px;
  width: 23px;
  height: 19px;
  vertical-align: middle;
  transition: all 0.25s;
}

.btn-lnb-controll.is-normal .blit {
  background: url(https://lostsagakr-cdn-image.valofe.com/2014_grand/event/20210210_newyear/images/common/btn-close-off-min.png) center no-repeat;
  background-size: 100%;
}

.btn-lnb-controll.is-normal:hover .blit {
  background: url(https://lostsagakr-cdn-image.valofe.com/2014_grand/event/20210210_newyear/images/common/btn-close-on-min.png) center no-repeat;
  background-size: 100%;
}

.btn-lnb-controll.is-closed .blit {
  background: url(https://lostsagakr-cdn-image.valofe.com/2014_grand/event/20210210_newyear/images/common/btn-is-closed-off-min.png) center no-repeat;
  background-size: 100%;
}

.btn-lnb-controll.is-closed:hover .blit {
  background: url(https://lostsagakr-cdn-image.valofe.com/2014_grand/event/20210210_newyear/images/common/btn-is-closed-on-min.png) center no-repeat;
  background-size: 100%;
}

.btn-lnb-controll .bar {
  position: absolute;
  z-index: 1;
  right: 0;
  width: 3px;
  height: 46px;
  display: inline-block;
  background-color: #9c44ff;
}

#lnb_home {
  position: absolute;
  top: 14vh;
  left: 2rem;
  width: 200px;
  z-index: 10;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 15px;
  line-height: 15px;
  padding-top: 5px;
}

#lnb_home i {
  font-size: 16px;
  line-height: 16px;
  vertical-align: top;
}

#lnb_home:hover,
#lnb_home:hover i {
  color: #fff;
  animation: neon3 1.5s ease-in-out infinite alternate;
}

#lnb_sns {
  position: fixed;
  z-index: 14;
  bottom: 105px;
  padding-top: 10px;
  box-sizing: border-box;
  padding-left: 20px;
  width: 221px;
  text-align: center;
  background-position: left top;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-image: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.125) 0%,
    rgba(255, 255, 255, 0.125) 1%,
    rgba(255, 255, 255, 0.1) 69%,
    rgba(255, 255, 255, 0) 100%
  );
}

#lnb_sns li {
  display: inline-block;
  margin-left: 2rem;
  margin-right: 2rem;
}

#lnb_sns li:first-child {
  margin-left: 0;
  margin-right: 2rem;
}

#lnb_sns li i {
  font-size: 25px;
  color: rgba(255, 255, 255, 0.5);
  opacity: 0.5;
  transition: all 0.25s;
}

#lnb_sns li i:hover {
  transform: scale(1.2);
  opacity: 1;
  animation: neon3 1.5s ease-in-out infinite alternate;
}

#lnb_sns + p {
  position: fixed;
  bottom: 40px;
  z-index: 14;
  padding-top: 20px;
  padding-left: 10px;
  padding-right: 20px;
  box-sizing: border-box;
  width: 221px;
  background-position: left top;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-image: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.125) 0%,
    rgba(255, 255, 255, 0.125) 1%,
    rgba(255, 255, 255, 0.1) 69%,
    rgba(255, 255, 255, 0) 100%
  );
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

#menu {
  margin-top: 23.5vh;
}

#menu > li {
  position: relative;
  display: block;
  box-sizing: border-box;
  height: 5.68vh;
  max-height: 63px;
  line-height: 5.6vh;
  min-height: 52px;
  background-position: left top;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-image: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.125) 0%,
    rgba(255, 255, 255, 0.125) 1%,
    rgba(255, 255, 255, 0.1) 69%,
    rgba(255, 255, 255, 0) 100%
  );
}

#menu a {
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  overflow: hidden;
  width: 100%;
  transition: all 0.25s;
  color: rgba(255, 255, 255, 1);
  text-align: left;
  font-size: 18px;
  opacity: 0.8;
  letter-spacing: -1px;
}

#menu li a:hover {
  font-size: 18px;
  opacity: 1;
  text-decoration: none;
}

#menu li.on a {
  font-size: 18px;
  opacity: 1;
}

#menu > li > a {
  font-size: 18px;
  padding-left: 14px;
  line-height: 1.5;
}

#menu li a:hover,
#menu li.on a {
  animation: neon3 1.5s ease-in-out infinite alternate;
}

@keyframes neon3 {
  from {
    text-shadow: 0 0 0 #fff, 0 0 2px #ffe36b, 0 0 4px #ffe36b, 0 0 6px #ffe36b, 0 0 8px #ceb241, 0 0 10px #ceb241;
  }
  to {
    text-shadow: 0 0 0 #fff, 0 0 0 #ffe36b, 0 0 0 #ffe36b, 0 0 0 #ffe36b, 0 0 0 #ceb241, 0 0 1px #ceb241;
  }
}

/* 마우스 스크롤 이미지 */
.mouse {
  position: fixed;
  top: 100px;
  right: -11px;
  z-index: 13;
}

.aniBounce {
  animation: bounce 1s infinite alternate;
}

@keyframes bounce {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(-15px);
  }
}

/* ---------------- 섹션 / 반응형 ----------------
 * 기본 스펙 1920x1080, 최소 폭 1280. 20240826_chuseok 방식(요소별 반응형):
 * 배경은 뷰포트 cover, 타이틀/버튼류는 원본 크기 고정(선명),
 * cont/캐릭터는 뷰포트 높이(vh)에 맞춰 축소, 장식은 vw/vh 앵커. */
.section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #0b1020;
}

.section img {
  display: block;
}

#section0 {
  background: url("https://lostsagakr-cdn-image.valofe.com/2014_grand/event/202609_chuseok/images/section0/bg-min.jpg") no-repeat center / cover;
}

/* section1/section4 : 20240826_chuseok 방식(요소별 반응형)
 * 배경은 뷰포트 cover, 타이틀은 원본 크기 고정(가로 중앙),
 * cont 는 뷰포트 높이에 맞춰 축소, 캐릭터/장식은 vw/vh 앵커.
 * 1440 이하에서는 캐릭터를 숨긴다(참조 페이지와 동일). */
#section1 {
  background: url("https://lostsagakr-cdn-image.valofe.com/2014_grand/event/202609_chuseok/images/section1/bg-min.jpg") no-repeat center / cover;
}

#section3 {
  background: url("https://lostsagakr-cdn-image.valofe.com/2014_grand/event/202609_chuseok/images/section3/bg-min.jpg") no-repeat center / cover;
}

#section4 {
  background: url("https://lostsagakr-cdn-image.valofe.com/2014_grand/event/202609_chuseok/images/section4/bg-min.jpg") no-repeat center / cover;
}

/* ---------------- section0 : 인트로 ---------------- */
/* 타이틀 묶음: 원본 크기 고정, 묶음 축(x720=37.5%) 기준 배치, 세로는 vh */
#mainTitle {
  position: absolute;
  left: 37.5%;
  top: 14.9vh;
  width: 0;
  height: 0;
}

#mainTitle img {
  position: absolute;
}

#mainTitle .tit1 {
  left: -152px;
  top: 0;
  width: 303px;
}

#mainTitle .tit2 {
  left: -244px;
  top: 131px;
  width: 506px;
}

#mainTitle .tit3 {
  left: -280px;
  top: 507px;
  width: 560px;
}

.chr1 {
  position: absolute;
  right: 0;
  bottom: 0;
  height: min(99.5vh, 1075px, 56vw);
  aspect-ratio: 937 / 1075;
  animation: chr1Breath 3.8s ease-in-out infinite;
  transform-origin: 58% 82%;
  will-change: transform, filter;
  z-index: 2;
}

.chr1 img {
  width: 100%;
  height: 100%;
}

.chr1-light {
  position: absolute;
  right: 8.1%;
  bottom: 13.1vh;
  width: 35.4vw;
  max-width: 680px;
  height: 75.9vh;
  max-height: 820px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle at 50% 42%, rgba(255, 238, 172, .36) 0, rgba(255, 198, 87, .24) 28%, rgba(255, 164, 76, .1) 52%, rgba(255, 164, 76, 0) 72%);
  filter: blur(18px);
  mix-blend-mode: screen;
  animation: chr1LightBreath 3.8s ease-in-out infinite;
}

.s0-cloud01 { position: absolute; left: 18.8%; top: 39.3vh; width: 9.69vw; max-width: 186px; }
.s0-cloud02 { position: absolute; left: 45%; top: 54.1vh; width: 5.42vw; max-width: 104px; }
.s0-leaf01 { position: absolute; left: 80.3%; top: 13.8vh; width: 5.26vw; max-width: 101px; }
.s0-leaf02 { position: absolute; left: 54.8%; top: 42.6vh; width: 3.07vw; max-width: 59px; }
.s0-leaf03 { position: absolute; left: 9.4%; top: 43.1vh; width: 8.28vw; max-width: 159px; }
.s0-leaf04 { position: absolute; left: 17.5%; top: 25.6vh; width: 3.85vw; max-width: 74px; }
.s0-leaf05 { position: absolute; left: 53.5%; top: 11.3vh; width: 3.75vw; max-width: 72px; }
.s0-leaf06 { position: absolute; left: 50.7%; top: 72vh; width: 4.48vw; max-width: 86px; }
.s0-star01 { position: absolute; left: 20.8%; top: 21.8vh; width: 5.78vw; max-width: 111px; }
.s0-star02 { position: absolute; left: 48.7%; top: 47.5vh; width: 5.63vw; max-width: 108px; }

/* ---------------- section1 : 추석 맞이 한가위 뽑기 (참여방법) ---------------- */
.wolf {
  position: absolute;
  right: 0;
  bottom: 2vh;
  height: 59.4vh;
  max-height: 642px;
  aspect-ratio: 466 / 642;
}

.wolf img {
  width: 100%;
  height: 100%;
}

.light-left {
  position: absolute;
  right: 7.1%;
  bottom: 10.4vh;
  width: 18.65vw;
  max-width: 358px;
}

.light-left img {
  width: 100%;
  height: auto;
}

/* 타이틀은 원본 크기 고정 + 가로 중앙 (margin 기반이라 픽셀 스냅됨) */
.s1-tit {
  position: absolute;
  left: 50%;
  margin-left: -227px;
  top: 92px;
  width: 455px;
}

.s1-tit-desc {
  position: absolute;
  left: 50%;
  margin-left: -217px;
  top: 167px;
  width: 434px;
}

.s1-reed {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 31.3vw;
  max-width: 601px;
}

.s1-leaf01 { position: absolute; left: 80.3%; top: 13.8vh; width: 5.26vw; max-width: 101px; }
.s1-leaf02 { position: absolute; left: 19.7%; top: 61.8vh; width: 3.07vw; max-width: 59px; }
.s1-leaf03 { position: absolute; left: 9.4%; top: 43.1vh; width: 8.28vw; max-width: 159px; }
.s1-leaf04 { position: absolute; left: 17.5%; top: 25.6vh; width: 3.85vw; max-width: 74px; }
.s1-leaf05 { position: absolute; left: 76.2%; top: 37.4vh; width: 4.48vw; max-width: 86px; }

/* cont : 타이틀 아래(230px)부터 하단 여유(40px)까지의 높이에 맞춰 축소.
 * 원본(777px)보다 커지지는 않는다. (참조: 2024 .wrap-cont .cont height:100vh) */
.img-wrap._1 {
  position: absolute;
  left: 0;
  right: 0;
  top: 230px;
  bottom: 40px;
  text-align: center;
}

.img-wrap._1 > img {
  display: inline-block;
  /* 높이 맞춤 + 좁은 화면에서는 LNB(310px)를 피하도록 폭 기준으로도 제한 */
  height: min(100%, 777px, calc((100vw - 560px) * 0.709));
  width: auto;
}

/* ---------------- section3 : 신규 전용무기 ---------------- */
.hero-wrap {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.hero-wrap > * {
  position: absolute;
}

/* 캐릭터: 하단 고정, 뷰포트 높이에 맞춰 축소(좁은 폭에서는 폭 기준 상한) */
.chr-hero {
  left: 0;
  bottom: 0;
  height: min(98.9vh, 1068px, 55.6vw);
  width: auto;
}

.chr-hero2 {
  right: -15.6vw;
  bottom: 0;
  height: min(82.6vh, 892px, 46.4vw);
  width: auto;
}

.glow-l,
.glow-r {
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
}

/* 타이틀/버튼/스킬: 원본 크기 고정, 가로는 % 축 기준, 세로는 vh */
.tit-hero {
  left: 50%;
  margin-left: -192px;
  top: 76px;
  width: 383px;
}

.tit-hero img {
  width: 100%;
  height: auto;
}

.tit-hero-desc {
  left: 50%;
  margin-left: -326px;
  top: 171px;
  width: 652px;
}

.btn-yt {
  left: 50%;
  margin-left: -60px;
  top: 44.6vh;
  width: 121px;
  height: 121px;
  cursor: pointer;
}

.btn-yt img {
  width: 100%;
  height: auto;
}

.skill01 {
  left: 34.3%;
  margin-left: -136px;
  top: 58.2vh;
  width: 272px;
}

.skill02 {
  left: 65.8%;
  margin-left: -136px;
  top: 58.1vh;
  width: 272px;
}

.skill01 img,
.skill02 img {
  width: 100%;
  height: auto;
}

/* ---------------- section4 : 풍성한 한가위 패키지 ---------------- */
.chr5 {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 96.1vh;
  max-height: 1038px;
  aspect-ratio: 834 / 1038;
}

.chr5 img {
  width: 100%;
  height: 100%;
}

/* cont+버튼 그룹 : 뷰포트 높이에 맞춰 함께 축소.
 * 버튼은 cont 박스 기준 % 좌표라 축소 시에도 정확히 따라간다. */
.img-wrap._4 {
  position: absolute;
  left: 0;
  right: 0;
  top: 230px;
  bottom: 40px;
  text-align: center;
}

.btn-container {
  position: relative;
  display: inline-block;
  vertical-align: top;
  /* 높이 맞춤 + 좁은 화면에서는 LNB(310px)를 피하도록 폭 기준으로도 제한 */
  height: min(100%, 776px, calc((100vw - 560px) * 0.708));
  aspect-ratio: 1096 / 776;
}

.product-img {
  display: block;
  width: 100%;
  height: 100%;
}

/* 원좌표 (425,596,240,49) / cont (1096x776) */
.btn-go-to-shop {
  position: absolute;
  left: 38.78%;
  top: 76.8%;
  width: 21.9%;
  height: 6.31%;
}

.btn-go-to-shop img {
  width: 100%;
  height: auto;
  display: block;
}

.s4-tit {
  position: absolute;
  left: 50%;
  margin-left: -311px;
  top: 92px;
  width: 623px;
}

.s4-tit-desc {
  position: absolute;
  left: 50%;
  margin-left: -211px;
  top: 167px;
  width: 422px;
}

.s4-reed {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 31.3vw;
  max-width: 601px;
}

.s4-leaf01 { position: absolute; left: 80.3%; top: 13.8vh; width: 5.26vw; max-width: 101px; }
.s4-leaf02 { position: absolute; left: 19.7%; top: 61.8vh; width: 3.07vw; max-width: 59px; }
.s4-leaf03 { position: absolute; left: 9.4%; top: 43.1vh; width: 8.28vw; max-width: 159px; }
.s4-leaf04 { position: absolute; left: 17.5%; top: 25.6vh; width: 3.85vw; max-width: 74px; }
.s4-leaf05 { position: absolute; left: 76.2%; top: 37.4vh; width: 4.48vw; max-width: 86px; }

/* 참조 페이지(2024)와 동일: 좁은 화면에서는 캐릭터를 숨긴다 */
@media screen and (max-width: 1440px) {
  .wolf, .light-left, .chr5 {
    display: none;
  }
}

/* ---------------- 앰비언트 CSS 애니메이션 ---------------- */
@keyframes chr1Breath {
  0%, 100% {
    filter: drop-shadow(0 0 12px rgba(255, 221, 126, .38)) drop-shadow(0 0 28px rgba(255, 151, 64, .2));
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    filter: drop-shadow(0 0 26px rgba(255, 238, 154, .7)) drop-shadow(0 0 54px rgba(255, 156, 72, .36));
    transform: translate3d(0, -5px, 0) scale(1.012);
  }
}

@keyframes chr1LightBreath {
  0%, 100% {
    opacity: .35;
    transform: scale(.96);
  }
  50% {
    opacity: .72;
    transform: scale(1.05);
  }
}

/* 나뭇잎 낙하 (레퍼런스: 낙엽 파티클 이펙트 영상 Ginkgo_fall 분석)
 * - 궤적: 잎마다 고유 기울기(--drift)의 완만한 사선 직선, 순수 등속
 * - 회전: 진자 왕복이 아니라 한 방향 연속 텀블링(rotate 360 루프)
 *         + 잎면이 얇아졌다 펴지는 3D 뒤집힘(rotateX 루프) */
@keyframes leafFall {
  0% {
    opacity: 0;
    translate: 0 0;
  }
  5% {
    opacity: 1;
  }
  93% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    translate: var(--drift, 7vw) 118vh;
  }
}

@keyframes leafSpin {
  from {
    transform: rotate(0deg) rotateX(0deg);
  }
  to {
    transform: rotate(360deg) rotateX(360deg);
  }
}

@keyframes twinkle {
  0%, 100% {
    opacity: .35;
    transform: scale(.92);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes drift {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(22px);
  }
}

@keyframes flicker {
  0%, 100% {
    opacity: .72;
    transform: scale(1);
  }
  45% {
    opacity: 1;
    transform: scale(1.03);
  }
  70% {
    opacity: .85;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* 각 잎은 섹션 상단 바깥(-12vh)에서 시작해 자기 delay 후 떨어진다.
 * (기존 슬라이스 top 값은 .leaf 가 뒤에서 덮어쓴다)
 * 섹션 재진입 시 js(fnRestartLeaves)가 애니메이션을 리셋해 처음부터 다시 시작한다. */
.leaf {
  top: -12vh;
  opacity: 0;
  transform-origin: center;
  --drift: 7vw;
  animation: leafFall 6.5s linear infinite, leafSpin 3.2s linear infinite;
}

.leaf:nth-of-type(2n) {
  --drift: -6vw;
  animation-duration: 8s, 4.2s;
  animation-delay: 2s, 0s;
  animation-direction: normal, reverse;
}

.leaf:nth-of-type(3n) {
  --drift: 10vw;
  animation-duration: 7s, 2.8s;
  animation-delay: 4s, 0.6s;
}

.leaf:nth-of-type(5n) {
  --drift: -9vw;
  animation-duration: 9s, 4.8s;
  animation-delay: 1s, 0.2s;
  animation-direction: normal, reverse;
}

.twinkle {
  animation: twinkle 2.4s ease-in-out infinite;
}

.twinkle:nth-of-type(2n) {
  animation-delay: -1.2s;
}

.drift {
  animation: drift 12s ease-in-out infinite;
}

.drift:nth-of-type(2n) {
  animation-duration: 15s;
  animation-delay: -3s;
}

.flicker {
  animation: flicker 1.2s ease-in-out infinite;
  transform-origin: bottom center;
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* 접근성: 모션 최소화 사용자에게는 앰비언트 애니메이션 정지 */
@media (prefers-reduced-motion: reduce) {
  .chr1, .chr1-light, .leaf, .twinkle, .drift, .flicker, .pulse, .aniBounce {
    animation: none;
  }
}

/* ---------------- 레이어 팝업 (작년 컨벤션 계승) ---------------- */
.layer-wrap {
  z-index: 9998;
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  text-align: center;
}

/* 팝업 열렸을 때 body 스크롤 락
 * (본 페이지는 네이티브 스크롤 기반이라 position:fixed 는 쓰지 않는다) */
body.popup-lock {
  overflow: hidden !important;
}

body.popup-lock .wrapper,
body.popup-lock #wrap {
  overflow: hidden !important;
}

.layer-wrap:before {
  content: "";
  display: inline-block;
  height: 100%;
  vertical-align: middle;
  margin-right: -0.25em;
}

.layer-wrap.yt .pop-layer {
  z-index: 9999;
  box-sizing: border-box;
  display: inline-block;
  vertical-align: middle;
  width: 900px;
  max-width: 92vw;
  height: 506px;
  background-color: #000;
}

.pop-container {
  padding: 10px;
  height: 100%;
}

.pop-container .skip {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  visibility: hidden;
}

.pop-container .frame {
  z-index: 9999;
  position: relative;
  margin: 0;
  width: 100%;
  height: 100%;
  border: 2px solid #b3762b;
}

.shadow {
  display: none;
  opacity: 1;
  width: 100%;
  height: 100%;
  position: fixed;
  padding-bottom: 0px;
  top: 0;
  left: 0;
  z-index: -1;
  background-size: cover;
  background: rgba(0, 0, 0, 0.8);
}

.pop-container .frame h1 {
  top: 10px;
  left: 0;
  width: 100%;
  height: 22px;
  max-width: unset;
  padding: 0;
  padding-left: 5px;
  text-indent: 16px;
  box-sizing: border-box;
  color: #311e13;
  font-weight: bold;
  font-size: 16px;
  background: none;
  text-align: left;
  position: absolute;
}

.pop-container .btn-layer-close {
  position: absolute;
  top: 4px;
  right: 10px;
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url("https://lostsagakr-cdn-image.valofe.com/2014_grand/event/202108_thanksgiving/images/btn-pop-x-o.png") 0 0 no-repeat;
  background-size: contain;
  text-indent: -9999px;
}

.yt .pop-container {
  padding: 0;
}

.yt .pop-container .frame {
  overflow: inherit;
}

.yt .pop-container .frame iframe {
  min-width: 100%;
  height: 500px;
}

/* 영상 팝업 닫기: 페이지 골드 톤에 맞춘 원형 버튼 (프레임 우상단 바깥) */
.yt .pop-container .btn-layer-close {
  display: inline-block;
  right: -14px;
  top: -46px;
  width: 36px;
  height: 36px;
  line-height: 31px;
  text-align: center;
  text-indent: 0;
  color: #ffe36b;
  font-size: 20px;
  font-weight: 700;
  background: rgba(11, 16, 32, 0.6);
  border: 2px solid #ffe36b;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 227, 107, 0.35);
  transition: all 0.2s;
}

.yt .pop-container .btn-layer-close:hover {
  background: #ffe36b;
  color: #1a1206;
  box-shadow: 0 0 16px rgba(255, 227, 107, 0.6);
}
