/* =========================================================
   RESET
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    background: #111;
}

button {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* =========================================================
   SECTION BASE
========================================================= */
section {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    overflow: hidden;
}

#section_title,
#section_1,
#section_2,
#section_3,
#section_4,
#section_5 {
    height: 1430px;
}

/* =========================================================
   SECTION ENTER ANIMATION
========================================================= */
#section_1 .contentWrap img,
#section_2 .contentWrap img,
#section_3 .contentWrap img,
#section_4 .contentWrap img,
#section_5 .contentWrap img {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#section_1.is-active .contentWrap img,
#section_2.is-active .contentWrap img,
#section_3.is-active .contentWrap img,
#section_4.is-active .contentWrap img,
#section_5.is-active .contentWrap img {
    opacity: 1;
    transform: translateY(0);
}

.contentWrap img:nth-of-type(1) {
    transition-delay: 0.05s;
}

.contentWrap img:nth-of-type(2) {
    transition-delay: 0.15s;
}

.contentWrap img:nth-of-type(3) {
    transition-delay: 0.25s;
}

.contentWrap img:nth-of-type(4) {
    transition-delay: 0.35s;
}

/* =========================================================
   BACKGROUND
========================================================= */
.background {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.background img {
    position: absolute;
    top: 0;
    left: 50%;
    width: auto;
    height: 100%;
    max-width: none;
    transform: translateX(-50%);
}

.contentWrap {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
}

/* =========================================================
   FOOTER
========================================================= */
#footer {
    width: 100%;
}

#footer img {
    max-width: 100%;
}

/* =========================================================
   TOP UTIL
========================================================= */
#top_util {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    z-index: 1000;
    background: #1a1d25;
    backdrop-filter: blur(6px);
}

.util_inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.util_bi img {
    height: 28px;
}

.util_right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.util_btn {
    line-height: 0;
}

.util_btn img {
    height: 28px;
    width: auto;
}

.util_btn.login {
    color: #fff;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
}

/* =========================================================
   TITLE SECTION
========================================================= */
#promotion_title {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 270px;
}

#promotion_title img {
    width: 851px;
}

#promotion_player {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

#promotion_player iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    aspect-ratio: 16 / 9;
    pointer-events: none;
}

#promotion_nav ol {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(6px, 1vw, 16px);
    list-style: none;
}

#promotion_nav li {
    width: clamp(240px, 18vw, 360px);
}

#promotion_nav li img {
    width: 100%;
    cursor: pointer;
}

#promo_video {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1920px;
    height: 1080px;
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
}

#promo_video iframe {
    width: 100%;
    height: 100%;
}

#promo_video::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26,29,37,0.8) 0%,
        rgba(26,29,37,0.4) 40%,
        rgba(26,29,37,0.8) 100%
    );
}

/* =========================================================
   COMMON EVENT STYLE
========================================================= */
#section_1 #event_title,
#section_2 #event_title,
#section_3 #event_title,
#section_4 #event_title,
#section_5 #event_title {
    display: flex;
    justify-content: center;
    padding-top: 92px;
}

#section_1 #event_title img,
#section_2 #event_title img,
#section_3 #event_title img,
#section_4 #event_title img,
#section_5 #event_title img {
    margin: 0 auto;
}

#section_1 #event_comment,
#section_2 #event_comment,
#section_3 #event_comment,
#section_4 #event_comment,
#section_5 #event_comment {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

/* =========================================================
   SECTION 1
========================================================= */
#section_1 #event_content {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

#section_1 #event_content #contend_background {
    position: relative;
    width: 1160px;
}

#main_img_wrap {
    position: relative;
    width: 100%;
}

#main_img_wrap .current {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    opacity: 1;
    transform: scale(1);
    z-index: 2;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

#main_img_wrap .next {
    position: absolute;
    inset: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    transform: scale(1.04);
    z-index: 3;
    pointer-events: none;
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

#main_img_wrap .next.show {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1.05);
}

#section_1 #event_content #contend_background #convert_img {
    position: absolute;
    top: 9%;
    left: 8%;
    width: 16%;
    z-index: 5;
}

#section_1 #event_content #contend_background #convert_img img {
    width: 100%;
}

#section_1 #sticker {
    position: absolute;
    bottom: 10%;
    right: 2%;
    width: 23.6%;          /* 핵심: 비율 */
    max-width: 274px;      /* PC에서 원본 유지 */
    z-index: 4;
}

#section_1 #sticker img {
    width: 100%;
    height: auto;
}

#package_select_character {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

#package_select_character select {
    width: 258px;
    height: 35px;
    padding: 0 12px;
    background: #000;
    color: #fff;
    border: 1px solid #444;
}

#section_1 #get_package_item {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

#get_package_item img {
    width: 258px;
    height: auto;
}

#section_1 #event_guide {
    margin-top: 2%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#section_1 #event_guide img {
    width: 550px;
}

/* =========================================================
   SECTION 2
========================================================= */
#section_2 #event_attendance {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

#section_2 #event_attendance > img {
    width: 896px;
}

#section_2 #event_attendance_split {
    position: absolute;
    top: 0;
    left: 50%;
    width: 896px;
    height: 100%;
    transform: translateX(-50%);
}

#section_2 #event_attendance_split #event_type_switch {
    position: absolute;
    top: -20%;
    right: -16%;
    width: 20%;
}

#section_2 #event_attendance_split #event_type_switch img {
    width: 100%;
}

#section_2 #event_attendance_split #newbie_map {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(3, 1fr);
    width: 100%;
    height: 100%;
    list-style: none;
}

#section_2 #event_attendance_split #exists_map {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(2, 1fr);
    width: 100%;
    height: 100%;
    list-style: none;
}

#exists_map .draw-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/static/images/promotion/20260429/section_2/만인지적.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#section_2 #event_attendance_split ul li {
    position: relative;
    cursor: pointer;
}

#event_attendance_split ul li.completed::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1;
}

#event_attendance_split ul li.completed::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    transform: translate(-50%, -50%);
    background: url('/static/images/promotion/20260429/section_2/출석도장.png') no-repeat center;
    background-size: contain;
    z-index: 2;
    pointer-events: none;
}

#event_attendance #select_character {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: 24px;
}

#select_character select {
    width: 258px;
    height: 35px;
    padding: 0 12px;
    background: #000;
    color: #fff;
    border: 1px solid #444;
}

#event_attendance #get_attendance_item img,
#guide_attendance img {
    margin: 0 auto;
}

/* =========================================================
   SECTION 3
========================================================= */
#section_3 #event_container {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

#section_3 #event_container #container_background {
    width: 1120px;
}

#section_3 #event_container #container_background img {
    width: 100%;
}

#section_3 #event_container #container_content {
    position: absolute;
    width: 1120px;
    height: 100%;
}

#container_content #school_btns {
    display: flex;
    gap: 16px;
    margin-top: 10%;
    padding-left: 34px;
}

#container_content #school_btns button {
    width: 180px;
}

#container_content #school_btns button img {
    width: 100%;
}

#container_content #event_balloon {
    display: block;
    width: 100%;
    padding-right: 30%;
    text-align: right;
}

#container_content #event_balloon img {
    margin-left: auto;
}

#section_3 #event_guide {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

#school_contents {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

#school_contents .school-content {
    position: absolute;
    inset: 0;
    display: none;
    pointer-events: none;
}

#school_contents .school-content.active {
    display: block;
    z-index: 10;
    pointer-events: auto;
}

#school_contents .school-content img {
    width: 100%;
    height: auto;
}

#school_btns {
    position: relative;
    z-index: 5;
}

#event_balloon {
    position: relative;
    z-index: 4;
}

#school_contents .close_btn {
    position: absolute;
    top: 2%;
    right: 2%;
    width: 40px;
    height: 40px;
    z-index: 20;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 24px;
    border-radius: 50%;
}

#school_contents:has(.school-content.active) {
    z-index: 20;
    pointer-events: auto;
}

/* =========================================================
   SECTION 4
========================================================= */
#section_4 #event_roadmap {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

#section_4 #event_roadmap img {
    width: 1383px;
}

#section_4 #event_guide {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

/* =========================================================
   SECTION 5
========================================================= */
#section_5 #event_container {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

#section_5 #container_background {
    width: 1533px;
}

#section_5 #container_background img {
    width: 100%;
}

#section_5 #container_content {
    position: absolute;
    width: 1533px;
    height: 100%;
}

/* 원본 배경 1533 x 934 기준 */
#section_5 #happy_character_select {
    position: absolute;
    top: 69%;
    left: 15%;
    width: 16.83%;   /* 258 / 1533 */
    height: 3.75%;   /* 35 / 934 */
    min-width: 130px;
    min-height: 28px;
    max-width: 258px;
    max-height: 35px;
    padding: 0 8px;
    background: #000;
    color: #fff;
    border: 1px solid #444;
    font-size: clamp(10px, 0.85vw, 13px);
    z-index: 5;
}

#section_5 #container_content #get_item {
    position: absolute;
    bottom: 19%;
    left: 15%;
    width: 16.83%;   /* 258 / 1533 */
    height: auto;
    max-width: 258px;
    z-index: 5;
}

#section_5 #container_content #get_item img {
    width: 100%;
    height: auto;
}

/* =========================================================
   SIDE NAV
========================================================= */
#side_nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}

#side_nav ul {
    list-style: none;
}

#side_nav li {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    margin: 14px 0;
    cursor: pointer;
    transition: all 0.3s;
}

#side_nav li.active {
    background: #fff;
    transform: scale(1.3);
}

/* =========================================================
   ADDRESS MODAL
========================================================= */
#address_modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.modal_dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.modal_box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    width: 420px;
    padding: 28px 24px;
    background: #1a1d25;
    border-radius: 10px;
    text-align: center;
    color: #fff;
    box-sizing: border-box;
}

.modal_box h3 {
    margin: 0 0 18px;
    font-size: 24px;
    font-weight: 700;
}

.modal_box input {
    display: block;
    width: 100%;
    height: 44px;
    margin-bottom: 10px;
    padding: 0 14px;
    border: 1px solid #444a57;
    border-radius: 4px;
    background: #fff;
    color: #111;
    font-size: 15px;
    box-sizing: border-box;
}

.modal_box input::placeholder {
    color: #888;
}

#address_input {
    margin-top: 0;
}

.modal_btns {
    margin-top: 22px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal_btns button {
    width: 120px;
    height: 42px;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

#address_confirm {
    background: #3b82f6;
    color: #fff;
}

#address_cancel {
    background: #4b5563;
    color: #fff;
}

.modal_btns button:hover {
    opacity: 0.88;
}

/* =========================================================
   SECTION 5 - 1544 이하 하단 중앙 배치
========================================================= */
@media (max-width: 1544px) {

    #section_5 #event_container {
        position: relative;
        display: flex;
        justify-content: center;
        margin-top: 34px;
        padding-bottom: 130px;
    }

    #section_5 #container_background {
        width: 94vw;
        max-width: 1533px;
    }

    #section_5 #container_content {
        position: absolute;
        left: 50%;
        bottom: 10px;
        transform: translateX(-50%);

        width: 100%;
        max-width: 1533px;

        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;

        gap: 12px;
        z-index: 10;
        pointer-events: none;
    }

    #section_5 #happy_character_select {
        position: static;
        width: 258px;
        height: 35px;
        min-width: 0;
        max-width: calc(100vw - 48px);

        padding: 0 12px;
        background: #000;
        color: #fff;
        border: 1px solid #444;
        font-size: 13px;
        pointer-events: auto;
    }

    #section_5 #container_content #get_item {
        position: static;
        width: 258px;
        height: auto;
        max-width: calc(100vw - 48px);
        pointer-events: auto;
    }

    #section_5 #container_content #get_item img {
        width: 100%;
        height: auto;
    }
}
/* =========================================================
   TABLET
========================================================= */
@media (max-width: 1400px) {
    #promotion_nav li {
        width: clamp(220px, 22vw, 340px);
    }

    #promotion_nav ol {
        gap: clamp(6px, 1vw, 14px);
    }
}

@media (max-width: 1200px) {
    #promotion_title img {
        width: 70vw;
    }

    #section_1 #event_content #contend_background {
        width: 90vw;
    }

    #section_2 #event_attendance > img,
    #section_2 #event_attendance_split {
        width: 82vw;
    }

    #section_3 #event_container #container_background,
    #section_3 #event_container #container_content {
        width: 88vw;
    }

    #section_4 #event_roadmap img {
        width: 92vw;
    }

    #section_5 #container_background,
    #section_5 #container_content {
        width: 94vw;
    }
}

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 768px) {
    #top_util {
        height: 44px;
    }

    .util_bi img {
        height: 5vw;
        max-height: 28px;
    }

    .util_btn img {
        height: 5vw;
        max-height: 28px;
    }

    .util_btn.login {
        font-size: 3vw;
    }

    .util_right {
        gap: 8px;
    }

    #section_title {
        height: 1430px;
    }

    #section_1,
    #section_2,
    #section_3,
    #section_4,
    #section_5 {
        height: 993px;
    }

    #section_1 {
        overflow: hidden;
    }

    .background img {
        width: auto;
        height: 100%;
        max-width: none;
    }

    #promotion_title {
        padding-top: 140px;
    }

    #promotion_title img {
        width: 82vw;
        max-width: none;
    }

    #promotion_nav {
        margin-top: 0;
    }

    #promotion_nav ol {
        display: grid;
        grid-template-columns: repeat(2, 40vw);
        justify-content: center;
        gap: 4vw 3vw;
    }

    #promotion_nav li {
        width: 40vw;
        max-width: 410px;
    }

    #promotion_nav li img {
        width: 100%;
        height: auto;
    }

    #promotion_player {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    #promotion_player iframe {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);

        height: 100%;
        width: auto;
        aspect-ratio: 16 / 9;

        pointer-events: none;
    }

    #section_1 #event_title,
    #section_2 #event_title,
    #section_3 #event_title,
    #section_4 #event_title,
    #section_5 #event_title {
        padding-top: 92px;
    }

    #section_1 #event_title img,
    #section_2 #event_title img,
    #section_3 #event_title img,
    #section_4 #event_title img,
    #section_5 #event_title img {
        max-width: 80vw;
    }

    #section_1 #event_comment,
    #section_2 #event_comment,
    #section_3 #event_comment,
    #section_4 #event_comment,
    #section_5 #event_comment {
        margin-top: 28px;
        padding: 0 5vw;
    }

    #section_1 #event_comment img,
    #section_2 #event_comment img,
    #section_3 #event_comment img,
    #section_4 #event_comment img,
    #section_5 #event_comment img {
        max-width: 90vw;
    }

    #section_1 #event_content,
    #section_2 #event_attendance,
    #section_3 #event_container,
    #section_4 #event_roadmap,
    #section_5 #event_container {
        margin-top: 32px;
    }

    #section_1 #event_content #contend_background,
    #section_1 #contend_background {
        width: 92vw;
    }

    #section_1 #convert_img {
        width: 22%;
    }

    #get_package_item {
        bottom: 6%;
    }

    #get_package_item img {
        width: 22vw;
        max-width: 258px;
        height: auto;
    }

    #package_select_character {
        bottom: 18%;
        gap: 10px;
    }

    #package_select_character select {
        width: 45vw;
        max-width: 258px;
        height: 32px;
        font-size: 12px;
    }

    #section_1 #event_guide {
        margin-top: 4%;
        padding: 0 5vw;
    }

    #section_1 #event_guide img {
        width: 80vw;
        max-width: 550px;
        height: auto;
    }

    #section_2 #event_attendance > img,
    #section_2 #event_attendance_split {
        width: 92vw;
    }

    #section_2 #event_attendance_split #event_type_switch {
        top: -16%;
        right: -3%;
        width: 18vw;
    }

    #event_attendance #select_character {
        gap: 10px;
        margin-top: 18px;
    }

    #select_character select {
        width: 58vw;
        height: 32px;
        font-size: 12px;
    }

    #event_attendance #get_attendance_item img {
        width: 32vw;
    }

    #guide_attendance img {
        width: 78vw;
    }

    #section_3 #event_container #container_background,
    #section_3 #event_container #container_content {
        width: 92vw;
    }

    #school_contents {
        width: 100%;
        height: 100%;
    }

    #school_contents .school-content {
        inset: 0;
    }

    #school_contents .school-content img {
        width: 100%;
        height: auto;
        max-height: 100%;
        object-fit: contain;
    }

    #school_contents .close_btn {
        width: 8vw;
        height: 8vw;
        font-size: 5vw;
        top: 3%;
        right: 3%;
    }

    #container_content #school_btns {
        gap: 1.5vw;
        margin-top: 10%;
        padding-left: 3vw;
    }

    #container_content #school_btns button {
        width: 15vw;
    }

    #container_content #event_balloon {
        padding-right: 24%;
    }

    #container_content #event_balloon img {
        width: 24vw;
    }

    #section_3 #event_guide img {
        max-width: 84vw;
    }

    #section_4 #event_roadmap img {
        width: 94vw;
    }

    #section_4 #event_guide img {
        max-width: 84vw;
    }

    #section_5 #container_background,
    #section_5 #container_content {
        width: 94vw;
    }
    /*
    #section_5 #happy_character_select {
        left: 15%;
        top: 69%;        
        min-width: 0;
        max-width: none;
        height: 32px;
        font-size: 12px;
        padding: 0 8px;
    }

    #section_5 #container_content #get_item {
        left: 15%;
        bottom: 19%;        
        max-width: none;
        height: auto;
    }*/

    #side_nav {
        top: auto;
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
    }

    #side_nav ul {
        display: flex;
        gap: 12px;
    }

    #side_nav li {
        width: 10px;
        height: 10px;
        margin: 0;
    }

    .modal_box {
        width: 85vw;
        padding: 16px;
    }

    #address_input {
        height: 36px;
    }

    .modal_btns button {
        width: 40vw;
        height: 34px;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */
@media (max-width: 480px) {
    #promotion_title img {
        width: 86vw;
    }

    #promotion_nav ol {
        grid-template-columns: repeat(2, 42vw);
        gap: 3vw 2vw;
    }

    #promotion_nav li {
        width: 42vw;
    }

    #section_1 #event_content #contend_background,
    #section_2 #event_attendance > img,
    #section_2 #event_attendance_split,
    #section_3 #event_container #container_background,
    #section_3 #event_container #container_content {
        width: 94vw;
    }

    #section_4 #event_roadmap img,
    #section_5 #container_background,
    #section_5 #container_content {
        width: 96vw;
    }
    /*
    #section_5 #happy_character_select {       
        height: 30px;
        font-size: 11px;
    }*/
    
}