/* ===================================
   ND — 웹 런처 안내 페이지 (launcher)
   카드형 패널 · 골드 액센트 · 글래스/필터 배경
   =================================== */

/* 단독 레이아웃: 배경 이미지(불투명 100%) + 위에 흰색 필터(90%) */
body.launcher-standalone-page::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image: url('https://web-files-tokyo-cdn.masangsoft.com/public/ND/homepage/sub/download_bg.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 1;
    pointer-events: none;
}

body.launcher-standalone-page::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background-color: rgba(255, 255, 255, 0.92);
    pointer-events: none;
}

body.launcher-standalone-page > * {
    position: relative;
    z-index: 1;
}

.launcher-page-outer {
    margin-top: calc(var(--site-top-offset, 0px) + var(--header-height, 90px));
    min-height: calc(100vh - var(--site-top-offset, 0px) - var(--header-height, 90px) - 120px);
}

/* 런처 단독: 세로 가운데 정렬(헤더·풋터 없음) */
body.launcher-standalone-page .launcher-page-outer.sub-container {
    margin-top: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: max(40px, env(safe-area-inset-top, 0px));
    padding-bottom: max(40px, env(safe-area-inset-bottom, 0px));
    background: transparent;
    box-sizing: border-box;
    overflow-y: auto;
}

body.launcher-standalone-page .launcher-page-outer .container,
body.launcher-standalone-page .launcher-page-outer .sub-layout {
    width: 100%;
}

.launcher-page-outer.sub-container {
    padding-top: 56px;
    padding-bottom: 100px;
}

/* 로고: 카드 외부 상단, 살짝 드롭섀도우 */
.launcher-page-outer .launcher-logo-wrap {
    display: flex;
    justify-content: center;
    margin: 0 auto 28px;
    max-width: 720px;
    padding: 0 24px;
}

.launcher-page-outer .launcher-logo {
    width: auto;
    max-width: min(100%, 380px);
    height: auto;
    max-height: 88px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(122, 95, 26, 0.18));
}

/* 패널 카드: 골드 액센트 라인 + 글래스 배경 + 소프트 섀도우 */
.launcher-panel {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding: 52px 72px 44px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(160, 124, 32, 0.22);
    border-radius: 20px;
    box-shadow:
        0 24px 60px -22px rgba(0, 0, 0, 0.18),
        0 6px 18px rgba(0, 0, 0, 0.06);
    text-align: center;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    overflow: hidden;
}

/* 카드 상단 골드 액센트 바 */
.launcher-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        rgba(201, 168, 106, 0) 0%,
        rgba(201, 168, 106, 0.6) 20%,
        #92722a 50%,
        rgba(201, 168, 106, 0.6) 80%,
        rgba(201, 168, 106, 0) 100%
    );
}

.launcher-panel__head {
    padding: 0;
    border: none;
    background: transparent;
}

.launcher-panel__lead {
    margin: 0;
    font-size: 19px;
    color: #3a3a3a;
    line-height: 1.7;
    letter-spacing: -0.01em;
}

.launcher-panel__body {
    padding: 28px 0 0;
}

.launcher-panel__actions {
    margin: 0 0 26px;
    display: flex;
    justify-content: center;
}

/* CTA 버튼: 골드 그라데이션 · 좌측 아이콘 슬롯 유지 */
.launcher-btn {
    display: inline-flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    min-height: 64px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #a07c20 0%, #c9a86a 50%, #a07c20 100%);
    background-size: 200% 200%;
    background-position: 0% 50%;
    border: 1px solid rgba(122, 95, 26, 0.55);
    border-radius: 12px;
    box-shadow:
        0 10px 22px -14px rgba(122, 95, 26, 0.28),
        0 1px 3px rgba(122, 95, 26, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
    line-height: 1.25;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-position 0.4s ease, color 0.2s;
}

.launcher-btn__icon-wrap {
    position: relative;
    flex: 0 0 64px;
    align-self: stretch;
    width: 64px;
    overflow: hidden;
    background: rgba(10, 10, 10, 0.85);
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 11px 0 0 11px;
}

.launcher-btn__icon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.launcher-btn__label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0 32px 0 22px;
    letter-spacing: -0.005em;
}

.launcher-btn__dl-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.launcher-btn:hover {
    transform: translateY(-2px);
    background-position: 100% 50%;
    color: #fff;
    box-shadow:
        0 14px 28px -14px rgba(122, 95, 26, 0.32),
        0 2px 5px rgba(122, 95, 26, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.launcher-btn:active {
    transform: translateY(0);
    box-shadow:
        0 5px 12px -10px rgba(122, 95, 26, 0.26),
        0 1px 2px rgba(122, 95, 26, 0.08);
}

.launcher-btn:focus-visible {
    outline: 2px solid #DFCB96;
    outline-offset: 3px;
}

/* 안내문: 박스 없이 본문 톤 */
.launcher-panel__note {
    margin: 0;
    padding: 0;
    font-size: 14.5px;
    color: #666;
    line-height: 1.75;
    background: transparent;
    border: none;
    border-radius: 0;
}

/* 주의 문구: 박스 없이 강조만 */
.launcher-panel__caution {
    display: block;
    margin: 16px 0 0;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.65;
    color: #8a6a22;
    background: transparent;
    border: none;
    border-radius: 0;
    text-align: center;
}

.launcher-panel__caution::before {
    content: '※ ';
    font-weight: 700;
    color: #a07c20;
}

/* 가이드: 점선 구분 + 타이틀 언더라인 + 스텝 카드 */
.launcher-guide {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px dashed rgba(160, 124, 32, 0.28);
}

.launcher-guide__title {
    display: inline-block;
    font-size: 17px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 18px;
    letter-spacing: -0.015em;
}

.launcher-guide__list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: guide;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.launcher-guide__list li {
    counter-increment: guide;
    position: relative;
    margin: 0;
    padding: 14px 18px 14px 52px;
    font-size: 14.5px;
    color: #3f3f3f;
    line-height: 1.7;
    background: #fbfaf6;
    border: 1px solid #ececec;
    border-radius: 10px;
}

.launcher-guide__highlight {
    color: #7a5f1a;
    font-weight: 700;
    background: linear-gradient(180deg, transparent 62%, rgba(223, 203, 150, 0.55) 62%);
    padding: 0 2px;
}

.launcher-guide__list li::before {
    content: counter(guide);
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #a07c20, #c9a86a);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(122, 95, 26, 0.28);
}

/* 홈 링크: 고스트 버튼 */
.launcher-home-link-wrap {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.launcher-home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 46px;
    padding: 0 28px;
    font-size: 14.5px;
    font-weight: 600;
    color: #7a5f1a;
    background: transparent;
    border: 1px solid rgba(160, 124, 32, 0.42);
    border-radius: 8px;
    text-decoration: none;
    transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.18s;
}

.launcher-home-link:hover {
    color: #5c4612;
    background: rgba(223, 203, 150, 0.2);
    border-color: rgba(160, 124, 32, 0.65);
    transform: translateY(-1px);
}

.launcher-home-link:focus-visible {
    outline: 2px solid #DFCB96;
    outline-offset: 3px;
}

/* ───── 태블릿 ───── */
@media (min-width: 769px) and (max-width: 1024px) {
    .launcher-panel {
        max-width: 680px;
        padding: 44px 48px 38px;
    }
}

/* ───── 모바일 ───── */
@media (max-width: 768px) {
    .launcher-page-outer.sub-container {
        padding-top: 32px;
        padding-left: 0;
        padding-right: 0;
    }

    .launcher-page-outer .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .launcher-page-outer .launcher-logo-wrap {
        padding-left: 16px;
        padding-right: 16px;
        margin-bottom: 22px;
    }

    .launcher-page-outer .launcher-logo {
        max-height: 64px;
    }

    .launcher-panel {
        padding: 32px 22px 28px;
        border-radius: 16px;
        max-width: 100%;
        margin: 0 4px;
    }

    .launcher-panel__lead {
        font-size: 16px;
    }

    .launcher-panel__body {
        padding-top: 22px;
    }

    .launcher-btn {
        width: 100%;
        max-width: 360px;
        min-height: 60px;
        font-size: 16px;
        box-sizing: border-box;
    }

    .launcher-btn__icon-wrap {
        flex-basis: 60px;
        width: 60px;
    }

    .launcher-btn__label {
        padding: 0 22px 0 18px;
    }

    .launcher-panel__note {
        font-size: 13.5px;
    }

    .launcher-panel__caution {
        font-size: 13px;
    }

    .launcher-guide {
        margin-top: 30px;
        padding-top: 22px;
    }

    .launcher-guide__list li {
        padding: 12px 14px 12px 46px;
        font-size: 13.8px;
    }

    .launcher-guide__list li::before {
        left: 12px;
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .launcher-home-link {
        width: 100%;
        max-width: 360px;
        box-sizing: border-box;
    }
}

/* ───── 초협소(420 이하) ───── */
@media (max-width: 420px) {
    .launcher-panel {
        padding: 28px 18px 24px;
        border-radius: 14px;
    }

    .launcher-panel__lead {
        font-size: 15.5px;
    }
}
