#game {
    padding-top: 130px;
    padding-bottom: 112px;
    background-color: #111;
    text-align: center;
    position: relative;
}
#game::before {
    content: '';
    position: absolute;
    width: 1000px;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    background: radial-gradient(50% 50% at 50% 50%, rgba(197, 197, 197, 0.15) 0%, rgba(17, 17, 17, 0.00) 70.83%);
    aspect-ratio: 1/1;
    opacity: 0;
}
#game:has(em.aos-animate)::before {
    animation: fadeIn 0.3s forwards;
}
#game .container .logo img {
    max-width: 577px;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
#game .container em {
    font-size: 40px;
    font-weight: 700;
    margin-top: 95px;
    margin-bottom: 40px;
    display: inline-block;
}
#game .container p {
    color: #ccc;
    font-size: 18px;
    line-height: 1.5;
}
#game .container p strong {
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
}
#introduce {
    background-color: #111;
    display: grid;
}
#introduce .item {
    padding-top: 130px;
}
#introduce .item .text-box {
    line-height: 1.5;
    display: grid;
    row-gap: 32px;
    padding-bottom: 67px;
    position: relative;
}
#introduce .item .text-box::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 0.75em;
    width: 16px;
    height: 16px;
    background-image: url('../images/common/icon-swiper-pagination.svg');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}
#introduce .item .text-box::after {
    content: '';
    position: absolute;
    left: -28px;
    top: calc(0.75em + 7px);
    width: 100vw;
    height: 1px;
    background-color: #818181;
    rotate: 180deg;
    transform-origin: left;
}
#introduce .item .text-box strong {
    font-size: 28px;
    font-weight: 700;
}
#introduce .item .text-box span {
    color: #ccc;
    font-size: 18px;
}
/* swiper 의 캐릭터 하단 가리기 위해 선언 */
#introduce .swiper + .item {
    position: relative;
    z-index: 3;
    background-color: #111;
}
/* swiper 관련 */
#introduce .swiper {
    overflow-y: visible;
    overflow-x: clip;
    position: relative;
    width: 100dvw;
}
#introduce .swiper .swiper-slide {
    position: relative;
    height: 520px;
}
.container-full {
    max-width: 1920px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    z-index: 4;
    pointer-events: none;
}
.swiper-button-prev,
.swiper-button-next {
    pointer-events: all;
}
.swiper-button-prev {
    left: 120px;
}
.swiper-button-next {
    right: 120px;
}
#introduce .swiper .swiper-slide .bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
#introduce .swiper .swiper-slide .banner {
    position: absolute;
    left: 255px;
    top: 50%;
    translate: 0 -50%;
}
#introduce .swiper .swiper-slide .character {
    position: absolute;
    aspect-ratio: 1/1;
    height: 1300px;
    right: -90px;
    bottom: -520px;
}
#introduce[data-title="sword-master"] .swiper .swiper-slide .character {
    bottom: -250px;
    height: 950px;
    right: 50px;
}
#introduce .swiper .swiper-slide #morgana-spine {
    translate: 80px 10px;
}
/* swiper 관련 끝 */
/* marquee 관련 */
#introduce .marquee-container {
    display: block;
    max-width: 100dvw;
    overflow: hidden;
    position: relative;
}
#introduce .marquee-container::before {
    left: 0;
}
#introduce .marquee-container::after {
    right: 0;
    rotate: 180deg;
}
#introduce .marquee-container::before,
#introduce .marquee-container::after {
    content: '';
    top: 0;
    position: absolute;
    height: 100%;
    width: 35dvw;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.73) 8.72%, rgba(0, 0, 0, 0.44) 25.15%, rgba(0, 0, 0, 0.00) 50.77%);
    z-index: 1;
}
#introduce .marquee-container + .marquee-container{
    margin-top: 40px;
}
#introduce .marquee-container .marquee {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    height: 305px;
}
#introduce .marquee-container .marquee div{
    animation: marquee 30s linear infinite;
    display: flex;
    width: 100%;
}
#introduce .marquee-container .marquee img {
    display: inline-block;
    height: 100%;
    margin-right: 40px;
}
#introduce .marquee-container:has(.reverse) {
    justify-content: end;
}
#introduce .marquee-container .marquee.reverse div {
    animation-direction: reverse;
}
@keyframes marquee {
    0% {
        translate: 0% 0%;
    }
    100% {
        translate: -100% 0%;
    }
}
/* marquee 관련 끝 */
/* 하단 캐릭터 소개 리스트 */
#introduce .item .character-list {
    display: flex;
    column-gap: 30px;
    height: 480px;
}
#introduce .item .character-list li {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    min-width: 0px;
    transition: 0.3s all;
    cursor: pointer;
}
#introduce .item .character-list li::after {
    position: absolute;
    bottom: 0;
    left: 0;
    content: '';
    width: 100%;
    height: 210px;
    background: linear-gradient(0deg, #111 0%, rgba(17, 17, 17, 0.00) 100%);
}
#introduce .item .character-list li .bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
#introduce .item .character-list li .idle {
    position: absolute;
    bottom: 0;
    left: 50%;
    translate: -50% 0;
    width: max-content;
    object-fit: contain;
    object-position: center;
    transition: 0.5s all;
}
#introduce .item .character-list li .ingame {
    display: none;
}
/* 캐릭터 위치 수정 */
/* .bedivere .idle {
    margin-left: 20px;
}
.morgana .idle {
    margin-top: -40px;
    margin-left: 60px;
}
.merlin .idle {
    margin-top: -90px;
    margin-left: 60px;
}
.ifrit .idle {
    margin-left: -40px;
}
.airi .idle {
    margin-left: 10px;
}
.cain .idle {
    margin-left: -20px;
}
.aphrodite .idle {
    margin-left: -15px;
} */
/* 호버펼침효과 */
#introduce .item .character-list li[aria-expanded='true'] {
    grid-template-columns: 820px;
    min-width: 820px;
}
#introduce .item .character-list:has(li[aria-expanded='true']) li:not([aria-expanded='true']){
    opacity: 0.2;
}
#introduce .item .character-list li[aria-expanded='true'] .idle {
    left: 0;
    translate: 0% 0%;
    margin-left: 0;
}
#introduce .item .character-list li[aria-expanded='true'] .ingame {
    display: block;
    animation: fadeIn 1s forwards;
    position: absolute;
    right: 0;
    bottom: 0;
    width: max-content;
    object-fit: contain;
    object-position: center;
    transition: 1s all;
    z-index: 2;
}
#introduce .item .mobile-character-list {
    display: none;
}
/* service 링크 */
#service {
    padding-top: 130px;
    padding-bottom: 130px;
    background-color: #111;
}
#service .container {
    display: flex;
    column-gap: 50px;
    align-items: center;
    justify-content: center;
}
#service .container .service-link {
    position: relative;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 260px;
    height: 80px;
    padding-left: 30px;
    background-color: #222;
    font-size: 24px;
    font-weight: 700;
    overflow: hidden;
}
#service .container .service-link span {
    width: 80px;
    height: 80px;
    background-color: #666;
    display: grid;
    place-items: center;
}
#service .container .service-link span img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    object-position: center;
}
#service .container .service-link:nth-of-type(1) span {
    background-color: var(--blue);
}
/* mobile 모바일 */
/* container 크기보다 작으면 모바일 화면 */
@media screen and (max-width: 1409px) {
    #game .container em {
        font-size: 28px;
        word-break: keep-all;
        line-height: 1.5;
    }
    #game .container p {
        word-break: keep-all;
        font-size: 14px;
    }
    #game .container p strong {
        font-size: 18px;
        word-break: keep-all;
    }
    #introduce .item .text-box::before,
    #introduce .item .text-box::after{
        top: -32px;
    }
    #introduce .item .text-box::before {
        left: 0;
    }
    #introduce .item .text-box::after {
        left: 8px;
        width: 60px;
        rotate: 0deg;
        translate: 0 8px;
        z-index: -1;
    }
    #introduce .item .text-box strong {
        word-break: keep-all;
        font-size: 24px;
        text-wrap: balance;
    }
    #introduce .item .text-box span {
        word-break: keep-all;
        font-size: 16px;
    }
    #introduce .swiper .swiper-slide .character {
        width: 100%;
        max-width: 360px;
        height: 100%;
        min-height: 800px;
        right: auto;
        left: 50%;
        bottom: -320px;
        translate: -50% 0;
    }
    #introduce .swiper .swiper-slide #bedivire-spine {
        min-height: 670px;
        bottom: -270px;
    }
    #introduce .swiper .swiper-slide #morgana-spine {
        translate: -135px 0px;
        /* translate: 0 0; */
        scale: 1.5;
        bottom: -335px;
    }
    #introduce > .swiper .swiper-slide {
        height: 360px;
    }
    #introduce .swiper .swiper-slide .banner {
        width: 60dvw;
        max-width: 250px;
        left: 50%;
        top: auto;
        bottom: 0;
        translate: -50% 0;
        z-index: 1;
    }
    #introduce[data-title="sword-master"] .swiper .swiper-slide .character {
        bottom: -347px;
    }
    #introduce[data-title="sword-master"] .swiper .swiper-slide #mia-spine {
        translate: -45% 0;
    }
    .swiper-button-prev, .swiper-button-next {
        width: 36px !important;
        height: 36px !important;
    }
    .swiper-button-prev {
        left: 10px;
    }
    .swiper-button-next {
        right: 10px;
    }
    .swiper-button-prev::after, .swiper-button-next::after {
        width: 16px;
        height: 16px;
    }
    #introduce .marquee-container .marquee,
    #introduce .marquee-container .marquee img {
        height: 25dvh;
    }
    #introduce .marquee-container .marquee div {
        animation-duration: 25s;
    }
    #introduce .item .character-list {
        display: none;
    }
    #introduce .item .mobile-character-list {
        display: block;
        position: relative;
    }
    #introduce .item .mobile-character-list .swiper .swiper-slide {
        position: relative;
        overflow: hidden;
        height: 384px;
        width: 70%;
        margin-right: 20px;
        transition: 0.3s all;
    }
    #introduce .item .mobile-character-list .swiper .swiper-slide .bg {
        width: 100%;
        object-fit: cover;
        object-position: center;
    }
    #introduce .item .mobile-character-list .swiper .swiper-slide .idle {
        position: absolute;
        bottom: 0;
        left: 50%;
        translate: -50% 0;
        width: max-content;
        height: 100%;
        object-fit: contain;
        object-position: center;
        transition: 0.5s all;
    }
    #introduce .item .mobile-character-list .swiper .swiper-slide.swiper-slide-next,
    #introduce .item .mobile-character-list .swiper .swiper-slide.swiper-slide-prev {
        opacity: 0.2;
    }
    #introduce .item .mobile-character-list .ingame-image-container {
        position: absolute;
        right: 0;
        bottom: -70px;
        z-index: 1;
        width: 60dvw;
        max-width: 220px;
    }
    #introduce .item .mobile-character-list .ingame-image-container img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        display: none;
        animation: fadeIn 0.3s forwards;
    }
    #service {
        padding-top: 200px;
    }
    #service .container {
        flex-direction: column;
        row-gap: 20px;
    }
    #service .container .service-link {
        width: 200px;
        height: 60px;
        font-size: 18px;
        border-radius: 10px;
    }
}