* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}
.pageMain {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to right, #eaeaea, #f9f9f9);
}
.pageMain img {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
}

.ftrWrap {
    padding: 15px 0;
    background: #000E14;
    text-align: center;
}
.ftrWrap .trmsWrap ul {
    display: flex;
    justify-content: center;
    gap:70px;
}
.ftrWrap p {
    font-weight: 300;
    color:#bdbdbd;
    font-size: 12px;
}
.ftrWrap .trmsWrap ul li {
    position: relative;
}
.ftrWrap .trmsWrap ul li:last-child::after {
    display: none;
}
.ftrWrap .trmsWrap .trmsModalBtn {
    display: inline-block;
    padding: 5px 10px;
    background: transparent;
    border: 0;
    cursor: pointer;
}
.ftrWrap .trmsWrap ul li:first-child .trmsModalBtn {
    padding-left: 0;
}
.ftrWrap .trmsWrap p {
    font-weight: 400;
    font-size: 14px;
    transition: all 0.4s;

}
.ftrWrap .trmsWrap ul li:hover .trmsModalBtn p {
    color:#fff;
}

body.trmsModalOpen {
    overflow: hidden;
}
.trmsModalBackdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    z-index: 999;
}
.trmsModal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 16px;
    z-index: 1000;
}
.trmsModal.isOpen {
    display: flex;
}
.trmsModalInner {
    width: min(720px, 100%);
    max-height: min(80vh, 900px);
    overflow: hidden;
    border-radius: 12px;
    padding: 24px 20px;
    background: #ffffff;
    border: 1px solid #d9d9d9;
    color: #1c1c1c;
    text-align: left;
    position: relative;
}
.trmsModalInner h2 {
    font-size: 20px;
    color: #1c1c1c;
    margin-bottom: 14px;
}
.trmsModalInner .termsTop {
    margin-top:20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.trmsModalInner .termsTop h2 {
    margin-bottom: 0;
}
.trmsModalInner .versionSelectWrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.trmsModalInner .versionSelectWrap label {
    font-size: 13px;
    color: #444;
}
.trmsModalInner #termsVersionSelect,.trmsModalInner #privacyVersionSelect {
    min-width: 180px;
    height: 32px;
    padding: 4px 8px;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    background: #fff;
}
.trmsModalBody {
    overflow: hidden;
    max-height: none;
    padding-right: 0;
}
.trmsModalFrame {
    display: block;
    width: 100%;
    height: min(58vh, 520px);
    border: 0;
    border-radius: 0;
    background: transparent;
}
.trmsModalClose {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #2d2d2d;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

/* 게임 등급 호버 영역 */
.gameRateLi {
    position: relative;
}
.gameRateHoverArea {
    position: relative;
    padding: 5px 10px;
}
.gameRateHoverArea p {
    transition: color 0.4s;
}
.gameRateHoverArea:hover p {
    color: #fff;
}
.gameRateHoverArea::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    height: 25px;
    width: 50px;
    pointer-events: auto;
}
.gameRateWrapper {
    position: absolute;
    bottom: calc(100% + 0px);
    left: 50%;
    transform: translateX(-50%);
    pointer-events: auto;
    z-index: 10;
}

.ftrWrap .cpyrImgWrap {
    margin-top: 35px;
}
.ftrWrap .cpyrImgWrap .ftrMoveLogo {
    max-width: 200px;
}
.ftrWrap .csAddr {
    margin: 35px 0;
}
.ftrWrap .csAddr ul {
    margin-top: 5px;
    display: flex;
    justify-content: center;
    gap:30px;
}
.ftrWrap .csAddr ul p {
    font-size: 12px;
}
.cmntWrap {
    position: fixed;
    right: 10px;
    bottom: 88px;
    z-index: 5;
}
.fixedCmntOuterWrap {
    position: fixed;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}
.fixedCmntWrap {
    background: #000000b3;
    border: 1px solid #ffffff80;
    border-radius: 45px;
    min-width: 50px;
    min-height: 50px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 30px;
}
.fixedCmntWrap:hover {
    backdrop-filter: blur(5px);
    background: #53535345;
    border-bottom: 1px solid #89878759;
    box-shadow: 0 2px 10px #0000004d;
}
.fixedCmntWrap img {
    cursor: pointer;
    max-width: 25px;
}
.fixedCmntToggleBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: 0;
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    line-height: 0;
    cursor: pointer;
}
.fixedCmntUl img {
    max-width: 25px;
}
.fixedCmntWrap:hover img {
    filter: brightness(5);
}
.cmntUl {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
.fixedCmntUl {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    display: none;
}

@media (hover:hover) and (pointer: fine) {
    .fixedCmntWrap:hover .fixedCmntUl {
        display: flex;
    }
}
.fixedCmntFreeBrickBtn {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}
.fixedCmntFreeBrickLink {
    display: block;
}
.fixedCmntFreeBrickBtn img.brickImg {
    max-width: 50px;
    display: block;
}
.cmntLink {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: #363a44;
    border-radius: 50%;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: all .2s;
}
.cmntLink.CmntNmDSCD:hover {
    background: #5865f2;
}
.cmntLink img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
@media (max-width:1024px) {
    .ftrWrap .trmsWrap ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        justify-content: center;
        gap: 10px;
        max-width: 800px;
        margin: 0 auto;
    }
    .ftrWrap .trmsWrap .trmsModalBtn {
        padding: 0;
    }
    .ftrWrap .csAddr {
        margin:15px 0;
    }
    .ftrWrap .csAddr ul   {
        justify-content: center;
        align-items: flex-start;
        gap: 5px;
        margin-top: 0;
    }
    .ftrWrap .trmsWrap p {
        font-size: 10px;
    }
    .rootContainer {
        padding-bottom: var(--ftr-height, 223px);
    }
    .BgW {
        padding-bottom: var(--ftr-height, 223px);
    }
    .ftrWrap .csAddr ul p {
        font-size: 8px;
    }
    .ftrWrap p {
        font-size: 8px;
    }
    .gameRateLi {
        display: flex;
        justify-content: center;
    }
    .gameRateHoverArea {
        padding: 4px 6px;
    }
    .gameRateHoverArea::before {
        width: 100%;
        min-width: 80px;
        height: 14px;
    }
    .gameRateWrapper {
        position: fixed;
        top: 50%;
        left: 50%;
        bottom: auto;
        transform: translate(-50%, -50%);
        width: min(92vw, 420px);
        max-width: none;
        z-index: 1000;
    }
    .gameRateWrapper img {
        max-width: 100%;
        height: auto;
    }
    .fixedCmntOuterWrap {
        top: 80px;
        transform: inherit;
        z-index: 5;
    }
    .fixedCmntWrap {
        background: #000000b3 !important;
        backdrop-filter: blur(5px);
    }
    .fixedCmntUl.isOpen {
        display: flex;
    }
    .privateWrap .rootContainer.BgW {
        padding-bottom: var(--ftr-height, 145px);
    }
    .trmsModalInner {
        padding: 18px 14px;
    }
    .trmsModalInner h2 {
        font-size: 16px;
    }
    .trmsModalInner .termsTop {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
    .trmsModalInner #termsVersionSelect,.trmsModalInner #privacyVersionSelect {
        min-width: 160px;
    }
    .trmsModalFrame {
        height: min(62vh, 560px);
    }
}
