/* ════════════════════════════════════
   프로모션 랜딩 페이지 (2026 신규 캠페인)
════════════════════════════════════ */

:root {
    --promo-nav-width: 220px;
    --promo-bg: #0d0e14;
    --promo-accent: #ffcb45;
    --promo-text: #f5f5f7;
    --promo-text-dim: #a8a8b3;
}

* { box-sizing: border-box; }

.promo-body {
    margin: 0;
    font-family: 'Noto Sans KR', sans-serif;
    background: var(--promo-bg);
    color: var(--promo-text);
    overflow-x: hidden;
}

/* ── 상단 바: 오늘 하루 그만보기 + 닫기 / 홈으로 이동 (우측 상단 고정) ── */
.promo-topbar {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
}

.promo-dismiss {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: var(--promo-text-dim);
    font-size: 13px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    user-select: none;
}
.promo-dismiss__checkbox { accent-color: var(--promo-accent); cursor: pointer; }

.promo-close {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: var(--promo-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(4px);
    transition: background 0.2s ease;
}
.promo-close:hover { background: rgba(0, 0, 0, 0.7); }
.promo-close__icon { font-size: 18px; line-height: 1; }

/* ── 좌측 고정 사이드바 네비게이터 ── */
.promo-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--promo-nav-width);
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 28px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 900;
}
.promo-nav__logo { display: flex; justify-content: center; margin-bottom: 36px; }
.promo-nav__logo img { height: 64px; }

.promo-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}
.promo-nav__link {
    position: relative;
    display: block;
    padding: 12px 0 12px 16px;
    color: var(--promo-text-dim);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-left: 2px solid rgba(255, 255, 255, 0.12);
    transition: color 0.2s ease, border-color 0.2s ease;
}
.promo-nav__link:hover { color: var(--promo-text); }
.promo-nav__link.is-active {
    color: var(--promo-accent);
    border-left-color: var(--promo-accent);
    font-weight: 700;
}

.promo-nav__home-btn {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    background: var(--promo-accent);
    color: #1a1a1a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}
.promo-nav__home-btn:hover { opacity: 0.9; }

/* ── 모바일 상단 탭 (기본 숨김) ── */
.promo-tabs {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    overflow-x: auto;
    white-space: nowrap;
    background: rgba(13, 14, 20, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    padding: 12px 16px;
}
.promo-tabs__link {
    display: inline-block;
    margin-right: 20px;
    color: var(--promo-text-dim);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}
.promo-tabs__link.is-active { color: var(--promo-accent); font-weight: 700; }

/* ── 세로 스크롤 콘텐츠 ── */
.promo-content {
    margin-left: var(--promo-nav-width);
}

.promo-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    background: var(--promo-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
/* ── 목동 스킬 개편: 앞뒤 섹션 모두 var(--promo-bg)로 끝나므로 위/아래를 같은 색으로 페이드 ── */
.promo-section--alt {
    background-image:
        linear-gradient(
            180deg,
            var(--promo-bg) 0%,
            rgba(13, 14, 20, 0.55) 18%,
            rgba(13, 14, 20, 0.55) 82%,
            var(--promo-bg) 100%
        ),
        url('/data/promotion/skill_bg.png');
    background-size: 100% calc(100% + 8px), cover;
    background-position: center;
    background-repeat: no-repeat;
}
.promo-section--alt .promo-section__title--img img {
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.6));
}
.promo-section--last {
    min-height: 50vh;
    padding: 90px 40px;
    border-bottom: none;
}

/* ── 인트로 ↔ 목장 소개 사이 여백: 인트로의 구름이 여기서 완전히 보인 뒤 목장 배경으로 이어짐 ── */
.promo-section-gap {
    height: clamp(80px, 12vh, 160px);
    background: var(--promo-bg);
}

/* ── 목장 소개: 목장 배경 이미지를 위/아래로 페이드시켜 앞뒤 섹션과 자연스럽게 연결 ── */
.promo-section--ranch {
    /* 절대 위치 자식이 없으므로 position:relative는 두지 않는다. 두면 구름(position:absolute)과
       같은 페인트 순서로 묶여 DOM상 뒤에 오는 이 섹션이 구름 위를 덮어버려 잘린 것처럼 보인다. */
    background-image:
        linear-gradient(
            180deg,
            var(--promo-bg) 0%,
            rgba(13, 14, 20, 0.55) 18%,
            rgba(13, 14, 20, 0.55) 82%,
            var(--promo-bg) 100%
        ),
        url('/data/promotion/jarapa_001.png');
    /* 그라데이션 레이어와 이미지 레이어는 각각 독립적으로 래스터라이즈되므로, 섹션 높이가
       정수 픽셀이 아닐 때(예: 100vh 기반 레이아웃) 두 레이어의 반올림이 1 디바이스 픽셀만큼
       어긋나 최하단(또는 최상단) 줄에서 그라데이션이 이미지를 완전히 덮지 못하고 원본 이미지가
       살짝 비치는 경우가 있다. 그라데이션 레이어를 세로로 살짝 더 크게(overscan) 그려
       불투명 구간이 실제 경계보다 여유 있게 덮도록 한다. */
    background-size: 100% calc(100% + 8px), cover;
    background-position: center;
    background-repeat: no-repeat;
}
.promo-section--ranch .promo-section__title--img img {
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.6));
}

/* ── 접속 이벤트: 배경 이미지를 상단은 어둡게, 하단은 원본 밝기 그대로 노출시켜
   위쪽 타이틀/카드는 가독성을 확보하고 아래로 갈수록 이미지가 밝게 드러나게 한다 ── */
.promo-section--reward {
    background-image:
        linear-gradient(
            180deg,
            var(--promo-bg) 0%,
            rgba(13, 14, 20, 0.4) 18%,
            rgba(13, 14, 20, 0.2) 35%,
            rgba(13, 14, 20, 0) 55%
        ),
        url('/data/promotion/reward_bg.png');
    background-size: 100% calc(100% + 8px), cover;
    background-position: center;
    background-repeat: no-repeat;
}
.promo-section--reward .promo-section__title--img img {
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.6));
}

/* ── 육성 이벤트: 배경 이미지는 원본 밝기 그대로 노출하되, 이전 섹션(접속 이벤트) 배경 하단의
   색(reward_bg 하단 색조)에서 시작해 맨 위쪽만 짧게 페이드시켜 이음매를 자연스럽게 풀어준다 ── */
.promo-section--growth {
    background-image:
        linear-gradient(
            180deg,
            rgb(99, 78, 51) 0%,
            rgba(99, 78, 51, 0) 10%
        ),
        url('/data/promotion/rank_bg.png');
    background-size: 100% calc(100% + 8px), cover;
    background-position: center;
    background-repeat: no-repeat;
}
.promo-section--growth .promo-section__title--img img {
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.6));
}

.promo-section--hero {
    position: relative;
    border-bottom: none;
    background-image:
        linear-gradient(0deg, var(--promo-bg) 0%, rgba(13, 14, 20, 0) 22%),
        url('/data/promotion/intro_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.promo-section--hero .promo-hero-intro {
    position: relative;
    /* 넓은 화면에서는 -250px까지 왼쪽으로 밀어주되, 화면이 좁아져 사이드 메뉴(220px)에
       가까워지면 이동량을 점점 줄여 0으로 수렴시켜 겹치지 않도록 한다. */
    left: clamp(-250px, calc((100vw - 900px) * -0.5), 0px);
    z-index: 1;
}

/* ── 인트로 씬: 구름이 좌/우/아래에서 모여들고, 거북이가 그 뒤에서 떠오르듯 등장 ── */
.promo-hero-scene {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* 구름만 좌우로는 섹션 경계에서 잘리고, 상하로는 자유롭게 넘치도록 클리핑 */
.promo-hero-clouds {
    position: absolute;
    inset: 0;
    clip-path: inset(-9999px 0 -9999px 0);
    -webkit-clip-path: inset(-9999px 0 -9999px 0);
}

.promo-hero-turtle {
    position: absolute;
    right: 6%;
    bottom: 2%;
    width: min(46vw, 560px);
    height: auto;
    transform-origin: bottom center;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.35));
    /* -webkit-mask-image: linear-gradient(to top, transparent 0%, black 20%);
    mask-image: linear-gradient(to top, transparent 0%, black 8%); */
    animation: promo-turtle-rise 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.promo-hero-cloud {
    position: absolute;
    bottom: 4%;
    opacity: 0;
}
.promo-hero-cloud--1 {
    bottom: 8%;
    width: min(40vw, 500px);
    transform: scaleX(-1);
    animation: promo-cloud-in-left 1.3s ease-out 0.1s both;
}
.promo-hero-cloud--2 {
    right: 6%;
    bottom: -4%;
    width: min(26vw, 320px);
    animation: promo-cloud-in-right 1.3s ease-out 0.25s both;
}
.promo-hero-cloud--3 {
    left: 45%;
    bottom: -6%;
    width: min(70vw, 860px);
    animation: promo-cloud-in-up 1.3s ease-out 0.15s both;
}

@keyframes promo-turtle-rise {
    0% { opacity: 0; transform: translateY(40px) scale(0.94); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes promo-cloud-in-left {
    0% { opacity: 0; left: -24%; }
    100% { opacity: 1; left: -8%; }
}
@keyframes promo-cloud-in-right {
    0% { opacity: 0; transform: translateX(16%); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes promo-cloud-in-up {
    0% { opacity: 0; transform: translate(-50%, 28px); }
    100% { opacity: 1; transform: translate(-50%, 0); }
}

/* ── 인트로 타이틀: 서서히 또렷하게 "생성"되는 연출 (거북이·구름이 자리 잡은 뒤 등장) ── */
.promo-hero-intro__title {
    display: block;
    width: min(90vw, 620px);
    height: auto;
    animation: promo-intro-materialize 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
}

@keyframes promo-intro-materialize {
    0% { opacity: 0; transform: translateY(50px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .promo-hero-intro__title,
    .promo-hero-turtle,
    .promo-hero-cloud {
        animation: none;
        opacity: 1;
    }
    .promo-hero-intro__title,
    .promo-hero-turtle,
    .promo-hero-cloud--2,
    .promo-hero-cloud--3 {
        transform: none;
    }
    .promo-hero-cloud--1 {
        left: -8%;
        transform: scaleX(-1);
    }
}

.promo-section__inner {
    max-width: 720px;
    text-align: center;
}

.promo-section--hero .promo-section__inner { max-width: 960px; }

.promo-section__inner--wide { max-width: 960px; }

/* ── 히어로 2단 레이아웃 (텍스트 + 캐릭터 이미지, 하나의 글래스 카드) ── */
.promo-hero-grid {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 64px;
    max-width: 1080px;
    width: 100%;
    padding: 28px 56px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.promo-hero-grid__text {
    flex: 1;
    max-width: 620px;
    text-align: left;
}
.promo-hero-grid__visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.promo-hero-grid__visual img {
    max-width: 100%;
    max-height: 600px;
    margin: -110px 0; /* 카드 상/하단 테두리를 크게 벗어나 캐릭터가 글래스 위로 튀어나오게 함 */
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.45));
    clip-path: inset(0 0 83px 3px);
}

/* ── 목장 소개: 인트로 글래스 카드 + 이미지 팝아웃 효과를 리스트 항목 단위로 축소 재사용 ── */
.promo-list--cards { gap: 64px; }
.promo-hero-grid--card {
    gap: 40px;
    padding: 12px 40px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
/* 카드 상단 accent 바: 3개 카드가 완전히 동일 반복으로 보이지 않도록 미세한 리듬 부여 */
.promo-hero-grid--card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(90deg, transparent, var(--promo-accent), transparent);
    opacity: 0.7;
}
.promo-hero-grid--card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 203, 69, 0.5);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 24px rgba(255, 203, 69, 0.12);
}
.promo-hero-grid--card .promo-hero-grid__visual img {
    max-height: 300px;
    margin: -50px 0;
    border-radius: 16px;
    clip-path: inset(0 0 38px 0px);
    transition: transform 0.35s ease;
    transform-origin: center;
}
.promo-hero-grid--card:hover .promo-hero-grid__visual img {
    transform: scale(1.05);
}

/* ── 목장 소개 카드: 스크롤 진입 시 순차 slide-up (JS가 .is-visible 토글) ──
   글래스(배경/보더/backdrop-filter)는 li의 opacity에 얹혀 있으면 트랜지션 도중
   블러가 늦게 합성되어 "연출이 끝난 뒤에야 글래스가 적용되는" 것처럼 보인다.
   그래서 li 자체는 opacity 없이 위치(transform)만 움직이고, 글래스는 처음부터
   완전한 상태로 보이게 한다. */
.promo-list--cards .promo-list__item {
    transform: translateY(28px);
    transition: transform 0.6s ease;
}
.promo-list--cards .promo-list__item.is-visible { transform: translateY(0); }
.promo-list--cards .promo-list__item:nth-child(1) { transition-delay: 0s; }
.promo-list--cards .promo-list__item:nth-child(2) { transition-delay: 0.12s; }
.promo-list--cards .promo-list__item:nth-child(3) { transition-delay: 0.24s; }

/* 텍스트는 카드(글래스)가 먼저 자리 잡은 뒤 한 박자 늦게 나타나도록 별도 트랜지션 부여 */
.promo-list--cards .promo-hero-grid__text {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.promo-list--cards .promo-list__item.is-visible .promo-hero-grid__text {
    opacity: 1;
    transform: translateY(0);
}
.promo-list--cards .promo-list__item:nth-child(1) .promo-hero-grid__text { transition-delay: 0.3s; }
.promo-list--cards .promo-list__item:nth-child(2) .promo-hero-grid__text { transition-delay: 0.42s; }
.promo-list--cards .promo-list__item:nth-child(3) .promo-hero-grid__text { transition-delay: 0.54s; }

@media (prefers-reduced-motion: reduce) {
    .promo-list--cards .promo-list__item {
        transition: none;
        opacity: 1;
        transform: none;
    }
    .promo-list--cards .promo-hero-grid__text {
        transition: none;
        opacity: 1;
        transform: none;
    }
    .promo-hero-grid--card,
    .promo-hero-grid--card .promo-hero-grid__visual img {
        transition: none;
    }
    .promo-item-card {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

.promo-section__title {
    margin: 0 0 20px;
    font-size: 40px;
    font-weight: 900;
    line-height: 1.3;
}
.promo-section__title--img img {
    display: block;
    height: 44px;
    width: auto;
}

.promo-section__desc {
    margin: 0;
    color: var(--promo-text-dim);
    font-size: 16px;
    line-height: 1.7;
}
.promo-section__cta {
    display: inline-block;
    margin-top: 32px;
    padding: 14px 32px;
    background: var(--promo-accent);
    color: #1a1a1a;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
}
.promo-section__cta:hover { opacity: 0.9; }

/* ── 목장 소개 / 랭킹 이벤트 리스트 ── */
.promo-list {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: left;
}
.promo-list__item { display: flex; flex-direction: column; gap: 12px; }
.promo-list__text { margin: 0; font-size: 17px; line-height: 1.6; }
.promo-list--plain .promo-list__item { gap: 0; }

/* ── 목장 소개 카드: 데스크톱(비모바일)에서 가로 3열 배치 ── */
@media (min-width: 861px) {
    .promo-list--cards {
        flex-direction: row;
        align-items: stretch;
        gap: 32px;
    }
    .promo-list--cards .promo-list__item {
        flex: 1;
        min-width: 0;
        position: relative;
    }
    /* 카드 사이 순서 흐름(1→2→3)을 암시하는 연결 화살표. 장식용이라 실제 DOM에는 존재하지 않음 */
    .promo-list--cards .promo-list__item:not(:last-child)::after {
        content: '\2192';
        position: absolute;
        top: 40%;
        right: -26px;
        transform: translateY(-50%);
        font-size: 22px;
        line-height: 1;
        color: var(--promo-accent);
        opacity: 0.6;
        pointer-events: none;
    }
    .promo-list--cards .promo-hero-grid--card {
        flex-direction: column-reverse;
        text-align: center;
        gap: 16px;
        padding: 32px 0px 16px;
    }
    .promo-list--cards .promo-hero-grid--card .promo-hero-grid__text {
        max-width: none;
        text-align: center;
    }
    .promo-list--cards .promo-hero-grid--card .promo-hero-grid__visual img {
        max-height: 220px;
        margin: -35px 0 -28px;
        overflow: hidden;
        clip-path: inset(0 0 28px 0);
    }
}

/* ── 목동 스킬 개편 카드 그리드 ── */
.promo-skill-info {
    margin: 24px 0 0;
    text-align: center;
}
.promo-skill-info img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}
.promo-skill-grid {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.promo-skill-card {
    padding: 24px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-align: center;
}
.promo-skill-card__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--promo-text-dim);
    font-size: 20px;
    font-weight: 700;
    overflow: hidden;
}
.promo-skill-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.promo-skill-card__name { margin: 0 0 6px; font-size: 14px; font-weight: 700; }
.promo-skill-card__desc { margin: 0; font-size: 13px; color: var(--promo-text-dim); }

/* ── 접속 이벤트 아이템 슬롯 ── */
.promo-item-group__label {
    margin: 32px 0 16px;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    color: var(--promo-text);
}
.promo-item-group__label--spaced { margin-top: 48px; }
.promo-item-group__label--img img {
    display: block;
    height: 22px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.promo-item-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* ── 접속 이벤트 아이템 카드 (매일/누적 공통) ── */
.promo-item-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px 16px;
    /* 배경이 밝은 이미지(reward_bg) 구간에 걸쳐도 텍스트 대비가 유지되도록,
       흰색 유리 대신 어두운 스크림 + 블러로 카드 아래를 살짝 눌러준다 */
    background: rgba(13, 14, 20, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    text-align: center;
    /* 스크롤 진입 전 초기 상태(숨김) — JS가 .is-visible을 붙이면 나타난다 */
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.5s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.promo-item-card.is-visible { opacity: 1; transform: translateY(0); }
.promo-item-card.is-visible:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 203, 69, 0.5);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(255, 203, 69, 0.1);
}
.promo-item-card__time {
    display: inline-block;
    padding: 4px 12px;
    background: var(--promo-accent);
    color: #1a1a1a;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.promo-item-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 84px;
}
.promo-item-card__icon img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}
.promo-item-card__name {
    margin: 0;
    min-height: 2.4em;
    display: flex;
    align-items: center;
    font-size: 13px;
    line-height: 1.4;
    color: var(--promo-text);
}

/* ── 누적 접속 보상: 로드맵형(연결선 + 마일스톤 노드) ── */
.promo-item-grid--cumulative {
    position: relative;
}
.promo-item-grid--cumulative .promo-item-card__icon { height: 104px; }
.promo-item-grid--cumulative .promo-item-card__name { min-height: 2.8em; }
.promo-item-card--milestone .promo-item-card__icon {
    position: relative;
    z-index: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 203, 69, 0.16) 0%, rgba(255, 203, 69, 0) 70%);
}

@media (min-width: 861px) {
    /* 카드 아이콘(원형 노드) 높이의 세로 중앙을 가로지르는 연결선 — 첫/마지막 카드 중심 사이만 그린다 */
    .promo-item-grid--cumulative::before {
        content: '';
        position: absolute;
        top: 72px;
        left: 12.5%;
        right: 12.5%;
        height: 2px;
        background: linear-gradient(90deg, rgba(255, 203, 69, 0.05), rgba(255, 203, 69, 0.45) 15%, rgba(255, 203, 69, 0.45) 85%, rgba(255, 203, 69, 0.05));
    }

    /* 매일 접속 보상: 목장 소개 카드와 동일한 순서 연결 화살표 */
    .promo-item-grid--daily .promo-item-card:not(:last-child)::after {
        content: '\2192';
        position: absolute;
        top: 36%;
        right: -18px;
        transform: translateY(-50%);
        font-size: 20px;
        line-height: 1;
        color: var(--promo-accent);
        opacity: 0.6;
        pointer-events: none;
    }
}

/* ── 육성 이벤트 칭호 카드 ── */
.promo-title-grid {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.promo-title-card {
    padding: 28px 20px;
    /* 배경 이미지(rank_bg) 위에 올라가므로 흐린 유리 대신 어두운 스크림 + 블러로 대비를 확보 */
    background: rgba(13, 14, 20, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-align: center;
}
.promo-title-card__badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--promo-accent);
    color: #1a1a1a;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.promo-title-card__banner {
    display: block;
    width: calc(100% + 40px);
    margin: 16px -20px 0;
}
.promo-title-card__name {
    margin: 16px 0 12px;
    font-size: 22px;
    font-weight: 900;
    color: var(--promo-text);
}
.promo-title-card__cond {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--promo-text-dim);
}
.promo-title-card__cond strong {
    color: var(--promo-text);
    font-weight: 700;
}
.promo-title-card__effect {
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
    color: var(--promo-text-dim);
}
.promo-title-card__effect-value {
    color: var(--promo-accent);
    font-weight: 700;
    font-size: 16px;
}

/* 자라파고스의 수호자: 서버 최초 칭호 — 골드 글로우 테두리로 희귀도 강조 */
.promo-title-card--legendary {
    border-color: rgba(255, 203, 69, 0.5);
    box-shadow: 0 0 24px rgba(255, 203, 69, 0.15), inset 0 0 24px rgba(255, 203, 69, 0.04);
}
.promo-title-card__badge--legendary {
    background: linear-gradient(90deg, #ffcb45, #ffe08a);
}
.promo-title-card--legendary .promo-title-card__effect-value {
    font-size: 17px;
}

/* ── 유의사항 ── */
.promo-notice-list {
    margin: 24px 0 0;
    padding: 0 0 0 18px;
    text-align: left;
    color: var(--promo-text-dim);
    font-size: 14px;
    line-height: 1.8;
}

/* ── 반응형: 사이드바 → 상단 탭 ── */
@media (max-width: 860px) {
    .promo-nav { display: none; }
    .promo-tabs { display: block; }
    .promo-content { margin-left: 0; padding-top: 48px; }
    .promo-topbar { top: 60px; right: 16px; gap: 8px; }
    .promo-dismiss, .promo-close { padding: 8px 10px; font-size: 11px; }
    .promo-section__title { font-size: 30px; }
    .promo-section__title--img img { height: 34px; }

    .promo-hero-grid { flex-direction: column-reverse; gap: 16px; text-align: center; padding: 16px 24px; }
    .promo-hero-grid__text { text-align: center; }
    .promo-hero-grid__visual img { max-height: 280px; margin: -60px 0; }
    .promo-list--cards { gap: 40px; }
    /* 이미지가 카드 좌우 여백에 눌려 작게 보이지 않도록, 카드 자체는 가로 패딩을 없애 이미지가
       가장자리까지 꽉 채우게 하고 텍스트에만 별도로 가로 패딩을 준다.
       기존 max-height 기반 크기는 부모의 align-items:center 때문에 이미지가 카드 폭만큼
       늘어나지 못하고 가운데에 작게 떠 있었다 — 폭을 100%로 채우고 높이를 비율에 맞춰 따라가게 한다. */
    .promo-hero-grid--card { padding: 16px 0; }
    .promo-hero-grid--card .promo-hero-grid__text { padding: 0 24px; }
    .promo-hero-grid--card .promo-hero-grid__visual { width: 100%; }
    .promo-hero-grid--card .promo-hero-grid__visual img {
        width: 100%;
        max-width: none;
        height: auto;
        max-height: none;
        margin: -30px 0 -38px;
    }
    .promo-section--hero {
        background-image:
            linear-gradient(0deg, var(--promo-bg) 0%, rgba(13, 14, 20, 0) 30%),
            url('/data/promotion/intro_bg.png');
    }
    .promo-hero-intro__title { width: min(85vw, 380px); }
    .promo-hero-turtle { width: min(60vw, 320px); right: 4%; bottom: 2%; }
    .promo-hero-cloud--1 { width: min(55vw, 300px); }
    .promo-hero-cloud--2 { width: min(38vw, 200px); }
    .promo-hero-cloud--3 { width: min(90vw, 520px); }

    .promo-skill-grid { grid-template-columns: repeat(2, 1fr); }
    .promo-item-grid { grid-template-columns: repeat(2, 1fr); }
    .promo-title-grid { grid-template-columns: 1fr; }
}
