/* ------------------------------------------------------------
   초기화 및 공통 설정
------------------------------------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}

:root {
    --gold-primary: #ffcc00;
    --box-bg: rgba(26, 22, 18, 0.85);
    --header-bg: rgba(0, 0, 0, 0.9);
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #dee3ea;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #fff;
}

::-webkit-scrollbar {
  width: 6px;
}

body {
    font-family: 'Pretendard', sans-serif;
    overflow-x: hidden;
    background-color: #000;
    color: #fff;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }

main { width: 100%; max-width: 1920px; margin: 0 auto; }

.floating-character img {
    display: none;
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

#countdown-timer {
    position: fixed;
    top: 85px;
    left: 50%;
    transform: translateX(-50%);
    
    width: 80%;
    min-width: 280px;
    max-width: 600px;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.7); /* 반투명 검정 (고급스러운 느낌) */
    color: #ffffff;
    border-radius: 50px;  /* 라운드 스타일 */
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    backdrop-filter: blur(5px); /* 배경 흐림 효과 */
    border: 1px solid rgba(255,255,255,0.2);
    
    z-index: 1000;
}

#timer-display {
    color: #ffcc00;       /* 강조색 (금색/노랑) */
    margin-left: 10px;
    font-family: 'Courier New', Courier, monospace; /* 숫자 간격 일정하게 */
}

/* ------------------------------------------------------------
   MODAL 설정
------------------------------------------------------------ */
/* 배경 레이어 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px); /* 배경 살짝 흐리게 */
    display: none;
    z-index: 10000;
}

/* 모달 본체 */
.custom-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9); /* 중앙 배치 및 초기 크기 */
    width: 90%;
    max-width: 420px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 10001;
    transition: all 0.2s ease-out;
}

#reward_modal {
    max-width: 600px;
}
@media(max-width: 767px) {
    #reward_modal {
        max-width: 420px;
    }
}

#reward_modal, #link_modal {
    background: rgba(0,0,0,0.8);
}

#video_modal {
    max-width: 1000px;
    background: rgba(0,0,0,0.8);
    border: 1.5px solid #d4b47d;
}

/* 활성화 시 상태 */
.custom-modal.active {
    transform: translate(-50%, -50%) scale(1);
}

/* 헤더 */
.modal-header {
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h4 { margin: 0; font-size: 18px; color: #FFF; }
.close-btn { 
    background: none; border: none; font-size: 24px; cursor: pointer; color: #999; 
}

.modal-header-only-close {
    padding: 10px;
    display: flex;
    justify-content: flex-end; /* 우측 상단 배치 */
}

.close-x-btn {
    background: none;
    border: none;
    font-size: 35px;
    color: #ffcc00;
    cursor: pointer;
    line-height: 1;
}

/* 바디 */
.modal-body { padding: 25px 20px; }
.input-group label { display: block; margin-bottom: 8px; font-weight: bold; font-size: 14px; color: #555; }
.input-group input {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px; /* 모바일 아이폰 자동 확대 방지 */
    box-sizing: border-box;
    outline-color: #007bff;
}
.modal-guide { margin-top: 10px; font-size: 12px; color: #999; }

.grid-header { width: 100%; text-align: center; }
.grid-header img { max-width: 100%; height: auto; }

.flex-image-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.grid-item {    
    flex: 0 1 calc(33.333% - 10px); 
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 480px) {
    .grid-item {        
        flex: 0 1 calc(50% - 10px);
    }
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 비율 */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 푸터 */
.modal-footer {
    padding: 15px 20px;
    background: rgba(0,0,0,0.8);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    display: flex;
    gap: 10px;
}
.modal-footer button {
    flex: 1;
    height: 45px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-primary:hover { color: #fff; }
.btn-secondary { background: #e9ecef; color: #495057; }
.btn-secondary:hover { background: #dee2e6; }

/* ------------------------------------------------------------
   FOOTER 설정
------------------------------------------------------------ */
footer {
    width: 100%;
    height: 80px;
    background: #000;
}

.footer-info {
    width: 100%;
    max-width: 1400px;
    height: 100%;
    padding: 1rem 0;
    margin: 0 auto;
    
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-info p { margin:0; color: #ccc; font-size: 0.85rem; }
@media (max-width: 1024px) {
    .footer-info p { font-size: 0.6rem; }
}

/* ------------------------------------------------------------
   배경 화면 설정
------------------------------------------------------------ */
#sec1 { background-image:url('/static/images/promotion/20260108/background/m_background_1.jpg'); }
#sec2 { background-image:url('/static/images/promotion/20260108/background/m_background_2.jpg?v=2'); }
#sec3 { background-image:url('/static/images/promotion/20260108/background/m_background_3.jpg'); }
#sec4 { background-image:url('/static/images/promotion/20260108/background/m_background_4.jpg'); }
#sec5 { background-image:url('/static/images/promotion/20260108/background/m_background_5.jpg'); }

/* ------------------------------------------------------------
   레이아웃 (네비게이션 & 헤더)
------------------------------------------------------------ */
.header {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 80px;
    background: var(--header-bg);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img { height: auto; max-height: 60px; }

.pc-menu ul { display: flex; gap: 40px; }
.pc-menu ul li a { font-weight: 500; transition: 0.3s; }
.pc-menu ul li a:hover { color: var(--gold-primary); }

.util-menu { display: flex; align-items: center; gap: 15px; }

.today-hide {
    display: flex; align-items: center; gap: 5px;
    font-size: 12px; color: #ccc; cursor: pointer;
    padding-right: 10px;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.icon-btn {
    background: none; border: 1px solid rgba(255,255,255,0.3);
    color: #fff; padding: 6px 12px; font-size: 13px;
    border-radius: 4px; cursor: pointer; display: flex; align-items: center;
    transition: 0.3s;
}
.icon-btn:hover { background: #fff; color: #000; }

.m-menu-btn {
    display: none; flex-direction: column; gap: 6px;
    background: none; border: none; cursor: pointer;
}
.m-menu-btn span { width: 30px; height: 3px; background: #fff; display: block; }

/* 사이드바 & 오버레이 */
.side-menu {
    position: fixed; top: 0; right: -300px;
    width: 300px; height: 100%;
    background: #111; z-index: 2000;
    transition: 0.4s ease-in-out; padding: 100px 40px;
}
.side-menu.open { right: 0; }
.side-menu ul { display: flex; flex-direction: column; gap: 30px; }
.side-menu ul li a { font-size: 1.2rem; transition: color 0.3s ease; }
.side-menu ul li a:hover { color:#ffcc00; }
.close-btn { position: absolute; top: 20px; right: 20px; font-size: 2.5rem; background: none; border: none; color:#ffcc00; cursor: pointer; }
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 1500; display: none; }
.overlay.active { display: block; }

/* ------------------------------------------------------------
   3. 섹션 공통 스타일
------------------------------------------------------------ */
.promo-section {
    position: relative;
    width: 100%;
    height: 1080px;
    min-height: 800px; /* 너무 작아지지 않게 최소 높이 설정 */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* 배경이 삐져나가지 않게 */
    
    /* 배경 설정 핵심 */
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;

    margin-top: -1px;
}

.content-inner {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.section-character {
    position: absolute;
    top: 50%;
    right: -30%;
    transform: translateY(-50%);
    z-index: 1;
}
.section-character img { max-width:80%; height: auto; }

/* ------------------------------------------------------------
   SECTION 00 (인트로)
------------------------------------------------------------ */
.intro-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    pointer-events: none; /* 클릭 방지 */
}

#player {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    pointer-events: none; /* 영상 위 클릭 차단 */
}

#player iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 비율 계산 (9 / 16 = 0.5625) */
    min-height: 100vh;
    min-width: 177.78vh; /* 16:9 비율 계산 (16 / 9 = 1.7778) */
    transform: translate(-50%, -50%);
    border: none;
}

@media (min-aspect-ratio: 16/9) {
    .video-background iframe {
        width: 100vw;
        height: 56.25vw; /* 100 * 9 / 16 */
    }
}
@media (max-aspect-ratio: 16/9) {
    .video-background iframe {
        width: 177.78vh; /* 100 * 16 / 9 */
        height: 100vh;
    }
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* 0.4 수치로 어둡기 조절 */
    z-index: 0;
}

.intro-content {
    z-index: 2; /* 필터보다 위에 위치 */
}

.intro-visual {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.intro-visual img {
    max-width: 80%;
    height: auto;
}

.scroll-down {
    position: absolute;
    bottom: 50px;
    color: #fff;
    font-size: 12px;
}

.scroll-down .arrow {
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, var(--gold-primary), transparent);
    margin: 10px auto 0;
    animation: scrollMove 2s infinite;
}

@keyframes scrollMove {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}
/* ------------------------------------------------------------
   SECTION 01 (사전예약)
------------------------------------------------------------ */
.reserve-header { margin-bottom: 30px; z-index: 3; }
.reserve-header img { max-width: 100%; height: auto; }

.flex-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
}

/* 사전예약 박스 */
.reserve-box {
    position: relative;
    background: var(--box-bg);
    /*padding: 40px 30px; */
    padding-top: 50px;
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 30px;
    border: 1px solid rgba(255, 204, 0, 0.3);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    /*max-width: 500px; */
    width: 100%;

    z-index: 3;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.box-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.box-body {
    display: flex;
    align-items: center;
    justify-content: center;
}

.box-title {
    /*
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);*/
    max-width: 80%;
    height: auto;
}

.highlight-gold { color: var(--gold-primary); text-shadow: 0 0 10px rgba(255, 204, 0, 0.6); }
.box-date { max-width: 80%; height: auto; margin-bottom: 10px; }

/* 박스 내 치킨 이미지 */
.reserve-box img[src*="reward_chicken"] {
    max-width: 200px;
    margin: 0 auto;
    display: block;
}

.box-desc {max-width: 80%; height: auto;}

.chk-wrapper { text-align: left; margin: 0 auto 20px; max-width:309px; }
.chk-wrapper label {
    display: flex; align-items: center;
    color: #ccc; font-size: 0.85rem; margin-bottom: 8px; cursor: pointer;
}
.chk-wrapper input { margin-right: 8px; }
.chk-wrapper .point { color: var(--gold-primary); margin-left: 4px; }

.reserve-btn, .preReg-btn {
    margin-bottom: 20px;
    transition: 0.3s ease;
    cursor: pointer;
}
.reserve-btn:hover, .preReg-btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    width: 100%; height: 65px;
    background: linear-gradient(to bottom, #ffcc00 0%, #f39c12 100%);
    border: none; border-bottom: 4px solid #b35900;
    border-radius: 8px; font-size: 1.4rem; font-weight: bold;
    color: #1a1612; cursor: pointer; transition: 0.2s;
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-2px); }

/* 보상 영역 */
.rewardWrapper {
    width: 100%;
    overflow: hidden;
}

/* [PC] 3+2 배치를 위한 클래스 */
.reward-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 15px !important;
    max-width: 460px; /* ★ 아이템 3개 너비 + 간격만큼 제한하여 4번째부터 줄바꿈 */
    margin: 0 auto;
    transform: none !important; /* Swiper 잔재 제거 */
}

.reward-item {
    flex: 0 0 130px; /* 아이템 개별 너비 고정 */
    width: 130px;
}

.reward-item img {
    max-width: 100%;
    height: auto;
}

.preregWrap {
    width: 100%;
    margin: 0 auto 10px; 
    max-width:309px;
    height: 40px;    
}
.preregWrap #nickname {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0 10px;
}

.box-switch {
    display: inline-block;
    cursor: pointer;
    color: #ffde00;
    font-size: 14px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border: 1px solid #7d6336;
    border-radius: 20px;
    position: absolute;
    top: 10px;
    right: 15px;
    transition: all 0.3s;
    z-index: 10;
}

.box-switch:hover {
    background: #7d6336;
    color: #fff;
}

.box-switch::before {
    content: attr(data-balloon); /* 말풍선 문구 */
    position: absolute;
    top: -30px;
    right: 0;
    background: #ffde00;
    color: #000;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 11px;
    white-space: nowrap;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    animation: bounce 1.5s infinite; /* 둥둥 뜨는 효과 */
}

.box-switch::after {
    content: "";
    position: absolute;
    top: -5px;
    right: 20px;
    border-top: 10px solid #ffde00;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ------------------------------------------------------------
   SECTION 02
------------------------------------------------------------ */
#sec2 .content-inner img {
    max-width: 100%;
    height: auto;
}

#sec2 .content-inner img:first-of-type {
    max-width: 60%;
    height: auto;
}

/* 컨테이너 가로폭 및 중앙 정렬 */
.adWrap {
    margin-top: 50px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn-play-video {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 45px 10px 15px; /* 왼쪽은 아이콘 때문에 좁게, 오른쪽은 여유있게 */
    border-radius: 50px;
    
    /* 1. 배경: 아주 어두운 반투명 블랙 + 미세한 광택 */
    background: linear-gradient(180deg, rgba(60, 60, 60, 0.9) 0%, rgba(20, 20, 20, 1) 50%, rgba(0, 0, 0, 1) 100%);
    
    /* 2. 테두리: 이미지처럼 얇고 선명한 금색 (골드 엠보싱 느낌) */
    border: 1.5px solid #d4b47d; 
    
    /* 3. 그림자: 버튼 전체가 떠 있는 느낌을 주는 외부 그림자 + 내부 하이라이트 */
    box-shadow: 
        0 8px 15px rgba(0, 0, 0, 0.6),           /* 바깥 어두운 그림자 */
        inset 0 1px 1px rgba(255, 255, 255, 0.3); /* 상단 엣지 하이라이트 */

    color: #ffffff;
    text-decoration: none;
    font-size: 22px; /* 폰트 크기 키움 */
    font-weight: 700;
    font-family: 'Noto Sans KR', sans-serif;
    letter-spacing: -1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 플레이 아이콘 (금색 원형 그라데이션) */
.icon-play {
    width: 44px;
    height: 44px;
    background: #ff0033;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.icon-play svg {
    width: 20px;
    height: 20px;
    fill: #FFFFFF;    
}

/* 호버 시: 이미지보다 더 생동감 있게 빛나는 효과 추가 */
.btn-play-video:hover {
    transform: scale(1.05);
    border-color: #fff4e0;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(212, 180, 125, 0.4); /* 금색 은은한 광채 */
}

/* ------------------------------------------------------------
   SECTION 03
------------------------------------------------------------ */
#sec3 .content-inner {
    position: relative;
    flex-direction: row;
    padding: 0 80px;
}

.introduce-contetBox {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.introduce-contetBox .swiper-wrapper { width: 100%; }
.introduce-contetBox .swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;    
}
.introduce-contetBox .swiper-wrapper .swiper-slide img { 
    max-width: 100%;
    height: auto;
    display: block;
}

.slide-content {
    position: relative;
}

.soundtrack {
    position: absolute;
    top: 0;
    left: 51.1%;
    transform: translateX(-50%);

    width: 100%;
    max-width: 500px;
    height: 100%;    

    display: flex;
    align-items: center;
    justify-content: center;

    padding-left: 5px;
}

.soundtrack a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* 공통 이미지 처리 */
.soundtrack img {
    max-width: 100%;
    height: auto;
    display: block;
}

.soundtrack a {
    cursor: pointer;
}

.soundtrack .soundbar {
    position: relative;
    width: 60px;
    height: 59px;    
}
.soundbar img {
    position: absolute;
    top: 0;
    left: 0;
}

#newAudio {
    height: 1px;
}
audio {
    visibility: hidden;
}

.soundbar .audioplay {
    visibility: hidden;
}
.soundbar.play .audioplay {
    visibility: visible;
    z-index: 2;
}
.soundbar.play .audiostop {
    visibility: hidden;
}

.direction {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    cursor: pointer;
    z-index: 100; /* 최상단으로 */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5); /* 살짝 배경색을 주면 더 고급스러움 */
    border-radius: 50%;
    transition: all 0.3s ease;
}

.direction.left { left: 10px; }
.direction.right { right: 10px; }

.direction::after {
    content: '';
    width: 18px;
    height: 18px;
    border-top: 3px solid #FFFFFF;
    border-right: 3px solid #FFFFFF;
    display: block;
}

.direction.left::after {
    transform: rotate(-135deg);
    margin-left: 8px;
}

.direction.right::after {
    transform: rotate(45deg);
    margin-right: 8px;
}

.direction:hover {
    background-color: rgba(223, 189, 105, 0.2);
}
.direction:hover::after {
    border-color: #fff;
    filter: drop-shadow(0 0 5px #dfbd69);
}

@media (max-width: 1024px) {
    #sec3 .content-inner { padding: 0 50px; }
    .direction { width: 40px; height: 40px; }
    .direction::after { width: 12px; height: 12px; }
}

/* ------------------------------------------------------------
   SECTION 04
------------------------------------------------------------ */
#sec4 .section-character { left:-100%; right:0; }
#sec4 .section-character img { max-width: 60% !important; }

.sns-form {
    position: relative;
    width: 100%;
    max-width: 1024px;
}
.snsFormBox, .snsFormExplain {
    max-width: 100%;
    height: auto;
}
.snsFormBox { z-index: 0; }

.snsFormExplain {
    margin-bottom: 10px;
}

.snsFormContent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;    
    height: 100%;    
    padding-top: 7.5%;
    padding-right: 12%;
    padding-bottom: 10%;
    padding-left: 10%;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 3;
}
.snsFormTitle { max-width: 100%; height: auto; }
.snsGroup {
    width: 100%; 
    display:flex;
    align-items: center;
    justify-content:flex-end;
    padding:10px 0;
}
.sns-item { display:flex; align-items: center; justify-content:center;}
.sns-item img {max-width:40px; height:auto;}
@media (min-width:900px) {
    .snsGroup { justify-content:center; }
}

.snsBtns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 10px;
}
.snsBtns a {
    cursor: pointer;
    display: block;
    width: calc(50% - 5px);
}
.snsBtns a img {max-width: 100%; height: auto;}

/* ------------------------------------------------------------
   SECTION 05
------------------------------------------------------------ */
#sec5 .content-inner { align-items: flex-start; }

#sec5 .section-character {    
    top: auto;
    transform: none;  
    bottom: 0;    
}
#sec5 .section-character img {  
    width:1641px;
    height:943px;
    max-width: 100% !important;
}

.event-title {
    position: relative;
}

.title-img {
    position: relative;
    max-width: 100%;
    height: auto;
    z-index: 3;
}
.event-reward {
    position: absolute;
    top: -40%;
    right: -3%;
    z-index: 1;
    max-width: 60%;
    height: auto;
}

.event-content {
    max-width: 100%;
    height: auto;
    z-index: 3;
}

/* ------------------------------------------------------------
   사전예약 바로가기 버튼
------------------------------------------------------------ */
.fixed-reserve-btn {
    display: none;
}

.fixed-side-remote {
    position: fixed;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 150px;   
    z-index: 999;    
    
    /* 기본 상태: 숨김 */
    opacity: 0;
    pointer-events: none; /* 숨겨져 있을 때 클릭 방지 */
    transition: opacity 0.3s ease-in-out;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;    
}

.fixed-side-remote.is-active {
    opacity: 1;
    pointer-events: auto;
}

.fixed-side-remote-wrapper {
    width: 100%;
    height: 346px;
    background-image: url('/static/images/promotion/20260108/remote/reward_form.png');
    background-size: 100% 100%;

    padding: 10px 5px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; 
}

.ad-wrapper {
    position: relative;
    margin-top: 1rem;
    width: 100%;
    aspect-ratio: 1/1;
    background: rgba(0,0,0,0.5);
    border-radius: 5px;
    cursor: pointer;
    overflow: hidden;

    text-align: center;
}
.ad-wrapper img {
    width: auto;
    height: 100%;
}
.ad-wrapper p {
    position: absolute;
    margin: 0;
    bottom: 10px;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #ffde00;
}
.ad-wrapper::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    width: 30px;
    height: 30px;    
    
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"/><path d="M6.271 5.055a.5.5 0 0 1 .52.038l3.5 2.5a.5.5 0 0 1 0 .814l-3.5 2.5A.5.5 0 0 1 6 10.5v-5a.5.5 0 0 1 .271-.445"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"/><path d="M6.271 5.055a.5.5 0 0 1 .52.038l3.5 2.5a.5.5 0 0 1 0 .814l-3.5 2.5A.5.5 0 0 1 6 10.5v-5a.5.5 0 0 1 .271-.445"/></svg>');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    
    background-color: white; 
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.ad-wrapper:hover::after {
    background-color: #ffde00;
    transform: translate(-50%, -50%) scale(1.1);
}

.fixed-side-remote a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.fixed-side-remote a img {
    max-width: 100%;
    height: auto;
}

#goReserve {
    transform: translateY(25px);
}
#goCreator {
    transform: translateY(-10px);
}

.fixed-side-remote a .side-remote-btn {
    transform: translateY(-30px);
}

/* ------------------------------------------------------------
   5. 반응형 최적화 (모바일)
------------------------------------------------------------ */
@media (max-width: 1024px) {
    /* 네비게이션 조절 */
    .pc-menu, .today-hide, .section-character { display: none; }
    .m-menu-btn { display: flex; }
    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .util-menu {
        display: flex;
        align-items: center;
        gap: 5px;
        margin-left: auto;
        margin-right: 15px;
    }

    /* 섹션 높이 제어 (배경 이탈 방지) */
    .promo-section {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        
        background-size: cover; /* 모바일은 기기마다 비율이 너무 달라 cover가 유리 */
        background-position: center center;
        /*min-height: 800px;*/
        max-height: 800px;
    }

    .content-inner {
        max-width: 100%;
        width: 100%;
        padding: 0 20px; /* 기본 좌우 여백 */
        display: flex;
        flex-direction: column;
        align-items: center; /* 모든 자식 중앙 정렬 */
    }

    .flex-container {
        flex-direction: column;
        align-items: center; /* 자식 요소들 중앙 배치 */
        justify-content: center;
        width: 100%;
        gap: 20px;
    }

    /* 사전예약 박스 컴팩트화 */
    .reserve-header {margin-bottom: 10px;}

    .box-body {        
        flex-direction: column;
    }

    .reserve-box {
        margin: 0 auto;
        max-width: 480px; 
        width: 100%;
    }
    .reserve-box img[src*="reward_chicken"] { max-width: 140px; }
    
    .reward-grid {
        display: flex !important;
        flex-wrap: nowrap !important; /* 줄바꿈 해제 */
        justify-content: space-between !important; /* 아이템 사이 간격 균등 분배 */
        max-width: 100% !important; /* 너비 제한 해제 */
        gap: 10px !important; /* 모바일/태블릿에 맞춰 간격 축소 (선택) */
        overflow-x: auto; /* 혹시 화면보다 커질 경우를 대비해 가로 스크롤 허용 (선택) */
    }

    .reward-item {
        flex: 1 1 0; /* 5개가 동일한 비율로 너비를 나눠 가짐 */
        min-width: 0; /* flex 아이템의 최소 너비 제한 해제 */
        width: auto; /* 고정 너비 해제 */
        cursor: pointer;
        transition: 0.3s ease;
    }

    .reward-item:hover {
        transform: translateY(-10px);        
    }

    #sec2 .content-inner img:first-of-type {
        height: 40%;
        width: auto;
    }

    #sec5 .content-inner { align-items: center; }

    .event-reward {
        position: absolute;
        top: -100%;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
        max-width: 100%;
        height: auto;
    }

    .fixed-side-remote {
        display: none;
    }

    .fixed-reserve-btn {
        position: fixed;    
        right: 25px; /* 화면 끝 여백 살짝 조절 */
        bottom: 25px;
        width: 100px;  /* 크기 축소 */
        height: 117px; /* 크기 축소 */   
        
        background-image: url('/static/images/promotion/20260108/remote/reward_chicken.png');
        background-size: 100% 100%;   
        
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-weight: 800;
        z-index: 1000; 
        
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px) scale(0.8);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    /* 텍스트 크기 미세 조정 */
    .fixed-reserve-btn .text-top {
        font-size: 11px; /* 축소 */
        letter-spacing: -0.02em;
        line-height: 1.1;
    }

    .fixed-reserve-btn .text-bottom {
        font-size: 13px; /* 축소 */
        margin-top: 1px;
        letter-spacing: -0.05em;
        line-height: 1.1;
    }

    /* 활성화 및 호버 효과 */
    .fixed-reserve-btn.is-show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        animation: gold-shine 5s ease infinite;
    }

    .fixed-reserve-btn:hover {
        transform: scale(1.1);
        color: #000;
    }

    @keyframes gold-shine {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }

    /* 1. 내부 여백을 완전히 제거하여 박스가 꽉 차게 함 */
    #sec3 .content-inner { 
        padding: 0 !important; 
    }

    /* 2. 스와이퍼 박스 가로 제한 해제 */
    .introduce-contetBox { 
        max-width: 100% !important; 
    }

    /* 3. 화살표 위치를 이미지 안쪽으로 겹치게 조정 */
    .direction { 
        width: 45px; 
        height: 45px;
        background-color: rgba(0, 0, 0, 0.4); /* 이미지 위에서 잘 보이게 배경 살짝 유지 */
        border-radius: 50%;
    }

    /* 이미지와 너무 붙지 않게 살짝 띄움 (겹침 효과) */
    .direction.left { 
        left: 15px; 
    }
    .direction.right { 
        right: 15px; 
    }

    /* 화살표 꺽쇠 크기 미세 조정 */
    .direction::after { 
        width: 14px; 
        height: 14px; 
        border-width: 2px;
    }
}

@media (max-width:730px) {
    .soundtrack {
        max-width: 400px;
    }
}

@media (max-width:500px) {
    .soundtrack {
        max-width: 350px;
    }
}

/* 안내 문구 애니메이션 */
@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 0.9; }
    100% { opacity: 0.4; }
}