:root {
    --page-bg: #000;
    --panel-bg: #000;
    --text: #ffffff;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: var(--page-bg);
    color: var(--text);
    font-family:
        Pretendard,
        "Noto Sans KR",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

/* 전체 랜딩페이지 */
.landing {
    width:100%;
    margin: 0 auto;
    overflow: hidden;
    background: var(--panel-bg);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.35);
}

/* 일반 랜딩 이미지 */
.landing-image,
.landing-image picture,
.landing-image img {
    display: block;
    width: 100%;
}

.landing-image img {
    height: auto;
    object-fit: cover;
}

/* 버튼 배치 영역 */
.button-row {
       width: min(100%, 1200px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 14px;
    padding: 26px clamp(18px, 4vw, 54px);
    background: #000;
}

/* 버튼 3 한 개만 들어가는 영역 */
.button-row--single {
    grid-template-columns: minmax(0, 620px);
    justify-content: center;
}

/* 마지막 버튼 영역 */
.button-row--last {
    padding-bottom: 34px;
}

/* 이미지 버튼 */
.image-button {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: #000;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}

/* 버튼 이미지 */
.image-button picture,
.image-button img {
    display: block;
    width: 100%;
}

.image-button img {
    height: auto;
    object-fit: contain;
    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}

/* PC 마우스오버 효과 */
@media (hover: hover) and (pointer: fine) {
    .image-button:hover {
        z-index: 2;
        transform: translateY(-5px) scale(1.025);
    }

    .image-button:hover img {
        filter:
            brightness(1.1)
            drop-shadow(0 14px 18px rgba(0, 0, 0, 0.38));
    }
}

/* 클릭 효과 */
.image-button:active {
    transform: translateY(0) scale(0.97);
}

/* 키보드 선택 효과 */
.image-button:focus-visible {
    border-radius: 12px;
    outline: 3px solid #79a4ff;
    outline-offset: 5px;
}

/* 모바일 */
@media (max-width: 767px) {
    .landing {
        width: 100%;
        box-shadow: none;
    }

    .button-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 18px 14px;
    }

    .button-row--single {
        grid-template-columns: minmax(0, 100%);
        padding-right: 14px;
        padding-left: 14px;
    }

    .button-row--last {
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }

    .image-button:active {
        transform: scale(0.96);
        filter: brightness(1.08);
    }
}
