/* GOMGOM compact G-LAB — result screen only */

#glab {
    background: #fff;
}

#glab > .eyebrow {
    margin: 0 0 18px;
    color: var(--gomgom-color-muted);
    font-size: 10px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* ---- 스크롤 워크 여정: 8개 성향 정류장을 지나 결과로 진입 ---- */
#glab .glab-walk {
    position: relative;
    width: calc(100% + (var(--gomgom-page-gutter) * 2));
    margin: 0 calc(var(--gomgom-page-gutter) * -1);
    padding: 0 0 40px;
    background-image: radial-gradient(rgba(17, 17, 17, .10) 1px, transparent 1px);
    background-size: 16px 16px;
}

#glab .glab-walk-svg { position: relative; display: block; margin: 0 auto; }
#glab .glab-walk-path-bg { fill: none; stroke: var(--gomgom-color-line); stroke-width: 2; stroke-linecap: round; }
#glab .glab-walk-path-fg {
    fill: none;
    stroke: url(#glabWalkRouteGradient);
    stroke-width: 2;
    stroke-linecap: round;
}

#glab .glab-walk-gradient-violet {
    stop-color: var(--gomgom-color-violet);
}

#glab .glab-walk-gradient-coral {
    stop-color: var(--gomgom-color-coral);
}


#glab .glab-walk-marker {
    position: absolute; width: 13px; height: 13px; margin: -6.5px; border-radius: 50%;
    background: var(--gomgom-color-violet); box-shadow: 0 0 0 5px rgba(119, 80, 248, .14);
    z-index: 5; will-change: top, left;
}

#glab .glab-walk-stop.is-met .glab-walk-stop-pole { background: var(--gomgom-color-violet); }
#glab .glab-walk-stop.is-mine .glab-walk-stop-icon { font-weight: 900; }


#glab .glab-walk-bubble.is-left { left: -166px; top: -6px; }
#glab .glab-walk-bubble.is-right { left: 72px; top: -6px; }
#glab .glab-walk-stop.is-met .glab-walk-bubble { opacity: 1; transform: translateY(0) scale(1); }
#glab .glab-walk-bubble b { display: block; color: var(--gomgom-color-violet); font-size: 12.5px; margin-bottom: 2px; }

#glab .glab-walk-stop-label { margin-top: 8px; width: 80px; text-align: center; font-size: 10.5px; font-weight: 500; color: rgba(17, 17, 17, .30); transition: color .25s ease; }
#glab .glab-walk-stop.is-met .glab-walk-stop-label { color: rgba(17, 17, 17, .55); }
#glab .glab-walk-stop.is-mine .glab-walk-stop-label { font-weight: 900; color: rgba(17, 17, 17, .48); }
#glab .glab-walk-stop.is-mine.is-met .glab-walk-stop-label { color: var(--gomgom-color-ink); }

#glab .glab-walk-arrival.is-ready .glab-walk-reveal-btn { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ---- 리빌: 걷기 화면 위로 겹쳐 뜨는 결과 카드. 즉시 스냅이 아니라 감속 커브로 "브레이크"를 준다 ---- */
#glabRevealMount .glab-reveal {
    position: absolute; inset: 0; overflow-y: auto; opacity: 0; transform: translateY(22px) scale(.98);
    transition: opacity .62s cubic-bezier(.16, 1, .3, 1), transform .62s cubic-bezier(.16, 1, .3, 1);
    pointer-events: none; background: var(--gomgom-color-paper); z-index: 21;
    /* 상단은 떠 있는 헤더(.top, z-index:60) 높이만큼, 하단은 떠 있는 하단 네비 높이만큼
       패딩을 줘서 카드가 그 사이 가용 공간에 딱 맞춰지고, 콘텐츠가 헤더/네비 밑에
       가려지지 않게 한다. 하단에는 푸터와 이미지 사이 여백을 살짝만 남긴다(28px→12px). */
    padding: calc(var(--gomgom-header-height) + var(--gomgom-safe-top) + 8px) 0 calc(var(--gomgom-bottom-nav-height) + var(--gomgom-safe-bottom) + 12px);
}
#glabRevealMount .glab-reveal.is-active { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }



#glab .insight {
    margin-top: 18px;
    padding: 22px 20px;
    border: 1px solid rgba(119, 80, 248, .15);
    border-radius: 24px;
    background: rgba(119, 80, 248, .055);
}

#glab .insight h3 {
    margin: 12px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.34;
    letter-spacing: -.035em;
    word-break: keep-all;
}

#glab .insight p {
    margin: 10px 0 0;
    color: var(--gomgom-color-muted);
    font-size: 12px;
    line-height: 1.62;
    word-break: keep-all;
}

#glabRevealMount .reader-note {
    margin: 18px 0 0;
    color: var(--gomgom-color-muted);
    font-size: 11px;
    line-height: 1.55;
    text-align: center;
}

#glab .primary,
#glabRevealMount .primary {
    width: 100%;
    height: 52px;
    margin-top: 24px;
    border: 0;
    border-radius: var(--gomgom-control-radius);
    background: var(--gomgom-color-ink);
    color: #fff;
    font-size: 13px;
    font-weight: 850;
}

/* ---- 16LECT + 그룹샷 4장 = 20장 스와이프 카드 ----
   catalogMarkup()은 항상 #glabRevealMount 안에만 렌더링된다(온보딩 게이트가 결과
   없는 방문자를 애초에 들여보내지 않아서, #glab 쪽에 카탈로그가 뜨는 경로 자체가
   없다). 그래서 #glab 스코프는 두지 않는다. */
#glabRevealMount .glab-catalog {
    position: relative;
    height: 100%;
}

/* 한 번에 카드 한 장이 헤더~푸터 사이 가용 공간을 전부 채운다. 이미지는 그 안에서
   원본 비율 그대로(안 잘림) 아래쪽에 붙고, 남는 위쪽 여백은 미디어 배경이 메워서
   헤더 바로 밑까지 통짜로 이어져 보이게 한다. */
#glabRevealMount .glab-catalog-track {
    display: flex;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

#glabRevealMount .glab-catalog-track::-webkit-scrollbar {
    display: none;
}

#glabRevealMount .glab-catalog-card {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* 실제 일러스트 파일들은 전부 흰색(약 rgb(254,254,254)) 배경이다(픽셀 샘플링으로 확인).
   이미지가 없는 위쪽 여백을 임의의 색으로 채우면 이미지가 시작하는 지점에 색 경계가
   생기니, 미디어 배경도 이미지와 같은 흰 배경으로 맞춰서 이음매 없이 이어지게 한다.
   딤(어두운 텍스트 가독용 그라데이션)은 .glab-catalog-card-overlay가 그 위에 얹는다. */
#glabRevealMount .glab-catalog-card-media {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    /* #fefefe(254)는 PNG 원본에서 뽑은 값이었는데, 카탈로그가 실제로 쓰는 건 웹용
       webp 썸네일이고 그건 컴프레션 때문에 대부분 253(#fdfdfd)이다 — 실제 파일
       17개를 다 찍어서 확인한 값. */
    background: #fdfdfd;
}

#glabRevealMount .glab-catalog-card.is-mine .glab-catalog-card-media {
    box-shadow: inset 0 -4px 0 var(--gomgom-color-violet);
}

/* 카드마다 이미지 원본 비율 그대로 — 세로로 긴 인물 단독샷과 가로로 넓은 그룹샷을
   같은 박스에 억지로 끼워 맞추면(고정 height + cover) 잘리니까, height는 auto로 두고
   이미지 자체 비율이 너비만 꽉 채운 채로 자기 높이를 결정하게 한다. 미디어 박스 안에서는
   flex-end로 바닥에 붙인다. */
#glabRevealMount .glab-catalog-card-img {
    width: 100%;
    height: auto;
    display: block;
}

/* 딤은 상시 노출. 텍스트가 걸리는 카드 하단(0%)에서 헤더 바로 밑(100%)까지 하나의
   연속된 그라데이션으로 이어진다 — 구간을 끊어서 이어붙이지 않는다. */
#glabRevealMount .glab-catalog-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px var(--gomgom-page-gutter);
    /* stop 5개짜리 그라데이션은 각 구간 경계에서 기울기(투명도 변화율)가 확 꺾여서
       색상 값 자체는 끊김이 없어도 눈에는 마하 밴드(가짜 선)로 보인다. 10% 간격의
       완만한 지수 감쇠 곡선으로 기울기가 서서히만 바뀌게 해서 그 착시를 없앤다. */
    background: linear-gradient(0deg,
        rgba(10, 8, 14, .84) 0%,
        rgba(10, 8, 14, .67) 10%,
        rgba(10, 8, 14, .51) 20%,
        rgba(10, 8, 14, .38) 30%,
        rgba(10, 8, 14, .27) 40%,
        rgba(10, 8, 14, .18) 50%,
        rgba(10, 8, 14, .11) 60%,
        rgba(10, 8, 14, .06) 70%,
        rgba(10, 8, 14, .03) 80%,
        rgba(10, 8, 14, .01) 90%,
        rgba(10, 8, 14, 0) 100%);
}

/* 그룹샷은 개별 렉트 카드와 다르게 배치한다 — 이미지는 그대로 하단 고정이지만,
   텍스트는 하단이 아니라 카드 중상부에 우정렬로 띄운다. 그 지점은 딤이 옅어서
   흰 글자(다른 카드용)가 안 보이니, 그룹샷만 잉크색 텍스트로 바꾼다. */
#glabRevealMount .glab-catalog-card.is-group .glab-catalog-card-overlay {
    justify-content: flex-start;
    align-items: flex-end;
    padding-top: 34%;
    text-align: right;
}

#glabRevealMount .glab-catalog-card.is-group .glab-catalog-card-headline {
    color: var(--gomgom-color-ink);
}

#glabRevealMount .glab-catalog-card.is-group .glab-catalog-card-subname {
    color: var(--gomgom-color-ink);
}

#glabRevealMount .glab-catalog-card.is-group .glab-catalog-card-desc {
    color: rgba(17, 17, 17, .66);
}

#glabRevealMount .glab-catalog-card-kicker {
    margin: 0;
    color: #c9b6ff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

#glabRevealMount .glab-catalog-card-headline-row {
    margin-top: 8px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

#glabRevealMount .glab-catalog-card-headline {
    margin: 0;
    color: #fff;
    font-family: 'KoPubWorldBatang', Georgia, serif;
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1;
}

#glabRevealMount .glab-catalog-card-badge {
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--gomgom-color-violet);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .06em;
}

#glabRevealMount .glab-catalog-card-subname {
    margin: 8px 0 0;
    font-family: 'KoPubWorldBatang', Georgia, serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.3;
    color: #fff;
    word-break: keep-all;
}

#glabRevealMount .glab-catalog-card-desc {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
    line-height: 1.6;
    word-break: keep-all;
}

@media (max-width: 359px) {
    #glabRevealMount .glab-catalog-card-headline {
        font-size: 32px;
    }
}

/*
 * LECT 카드 열람 중 공통 헤더·하단 도크를 무채색으로 낮춘다.
 * 맵과 START 화면에서는 기존 바이올렛·코랄 브랜드색을 유지한다.
 */
html.glab-catalog-mode .top .brand-mark-violet,
html.glab-catalog-mode .top .brand-mark-violet path {
    color: #3f4147;
    fill: #3f4147;
}

html.glab-catalog-mode .top .brand-mark-coral,
html.glab-catalog-mode .top .brand-mark-coral path {
    color: #b7bac1;
    fill: #b7bac1;
}

html.glab-catalog-mode .compact-bottom-nav .dock-glab,
html.glab-catalog-mode .compact-bottom-nav .dock-glab svg,
html.glab-catalog-mode .compact-bottom-nav .dock-glab path {
    color: #3f4147;
    fill: #3f4147;
}

html.glab-catalog-mode .compact-bottom-nav .dock-my,
html.glab-catalog-mode .compact-bottom-nav .dock-my svg,
html.glab-catalog-mode .compact-bottom-nav .dock-my path {
    color: #b7bac1;
    fill: #b7bac1;
}

html.glab-catalog-mode .compact-bottom-nav .nav-tab {
    transition:
        color .24s ease,
        fill .24s ease;
}

/* LECT 카드 번호와 회원 전용 여정 다시 보기 — 분리된 흰색 토스트형 컨트롤 */
#glabRevealMount .glab-catalog-tools {
    position: fixed;
    top: calc(var(--gomgom-header-height) + var(--gomgom-safe-top) + 10px);
    right: 14px;
    z-index: 22;
    display: flex;
    align-items: center;
    gap: 7px;
    pointer-events: none;
}

#glabRevealMount .glab-catalog-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 26px;
    padding: 0 8px;
    border: 1px solid rgba(17, 17, 17, .10);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    box-shadow:
        0 2px 0 rgba(17, 17, 17, .08),
        0 7px 16px rgba(17, 17, 17, .12);
    color: rgba(17, 17, 17, .88);
    font-family: Pretendard, sans-serif;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: .01em;
    white-space: nowrap;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

#glabRevealMount .glab-catalog-counter-total {
    color: rgba(17, 17, 17, .46);
    font-weight: 700;
}

#glabRevealMount .glab-catalog-replay {
    display: inline-grid;
    place-items: center;
    box-sizing: border-box;
    width: 26px;
    height: 26px;
    padding: 0 0 0 1px;
    border: 1px solid rgba(17, 17, 17, .10);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: rgba(17, 17, 17, .82);
    box-shadow:
        0 2px 0 rgba(17, 17, 17, .08),
        0 7px 16px rgba(17, 17, 17, .12);
    font-family: Pretendard, sans-serif;
    font-size: 8px;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition:
        transform .12s ease,
        background .12s ease;
}

#glabRevealMount .glab-catalog-replay:active {
    transform: translateY(2px) scale(.94);
    background: #f3f3f3;
}

#glabRevealMount .glab-catalog-replay:focus-visible {
    outline: 2px solid rgba(17, 17, 17, .30);
    outline-offset: 2px;
}


/* ---- 이탈 시점 전환 모달: 온보딩 직후 게스트가 결과를 두고 나가려 할 때만 ----
   레이아웃/톤은 헤더의 공용 인증 모달과 동일한 클래스(.compact-modal-layer/-scrim/-card/
   -handle/-kicker/-title, .compact-social-buttons/-btn/-icon, gomgom_compact_auth_modal.css)를
   그대로 쓴다. 이 파일에는 그 시스템에 없는, 이 모달만의 것(카운트다운, 안내 말풍선,
   "그냥 나갈게요" 텍스트 닫기, 스크롤 락)만 남긴다. */
html.glab-exit-lock,
html.glab-exit-lock body {
    overflow: hidden !important;
}

.glab-exit-bubble {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(17, 17, 17, .10);
    border-radius: 18px;
    background: var(--gomgom-color-canvas);
}

.glab-exit-bubble p {
    margin: 0;
    color: rgba(17, 17, 17, .72);
    font-size: 12.5px;
    line-height: 1.6;
    word-break: keep-all;
}

.glab-exit-countdown {
    margin-top: 10px !important;
    color: var(--gomgom-color-muted) !important;
    font-size: 11px !important;
}

.glab-exit-countdown span {
    color: var(--gomgom-color-violet);
    font-weight: 900;
}

.glab-exit-status {
    min-height: 16px;
    margin: 10px 0 0;
    color: var(--gomgom-color-muted);
    font-size: 11px;
    line-height: 1.5;
}

.glab-exit-dismiss {
    width: 100%;
    border: 0;
    background: none;
    text-align: center;
    text-decoration: underline;
    cursor: pointer;
}

/* G-LAB 여정 풍경 밀도 단계 */
#glab .glab-walk-scenery {
    position: absolute;
    color: rgba(17, 17, 17, .16);
    pointer-events: none;
    z-index: 0;
    transform: translateX(32px);
    opacity: .48;
}

#glab .glab-walk-scenery.is-faint {
    opacity: .28;
}

#glab .glab-walk-scenery.is-soft {
    opacity: .42;
}

#glab .glab-walk-scenery.is-forest {
    opacity: .52;
}

#glab .glab-walk-scenery svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}


/* G-LAB 탐험 곰 여행자 마커 */
#glab .glab-walk-marker.is-gomgom-traveler {
    position: absolute;
    width: 99px !important;
    height: 75px !important;
    margin: -38px 0 0 -50px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    z-index: 5;
    will-change: top, left;
}

#glab .glab-walk-marker.is-gomgom-traveler::before,
#glab .glab-walk-marker.is-gomgom-traveler::after {
    content: none !important;
    display: none !important;
}

#glab .glab-walk-marker.is-gomgom-traveler > img {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    opacity: 1 !important;
    filter: drop-shadow(0 2px 4px rgba(17, 17, 17, .12)) !important;
    pointer-events: none !important;
    user-select: none !important;
}



@keyframes gomgomWaitBounce{
0%,100%{transform:translateY(0);}
45%{transform:translateY(-8px);}
65%{transform:translateY(-2px);}
}


.glab-walk-start-button {
    min-width: 88px;
    padding: 10px 18px;
    border: 1px solid rgba(119, 80, 248, .24);
    border-radius: 999px;
    background: rgba(255, 255, 255, .98);
    color: #7750f8;
    box-shadow: 0 8px 20px rgba(17, 17, 17, .14);
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .12em;
    text-align: center;
    cursor: pointer;
    touch-action: manipulation;
}

.glab-walk-start-button:active {
    transform: translateY(1px);
}

.glab-walk-start-button:focus-visible {
    outline: 2px solid #7750f8;
    outline-offset: 3px;
}

.glab-walk-start-copy {
    margin: 0;
    color: rgba(17, 17, 17, .66);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -.01em;
    text-align: center;
    white-space: nowrap;
}

#glab .glab-walk-marker.is-waiting {
    cursor: default;
    animation: gomgomWaitBounce 1.05s ease-in-out infinite;
}


/* G-LAB 여정 도착 후 여행자 인사 */
#glab .glab-walk-marker.is-gomgom-traveler.is-finished-wiggle {
    transform-origin: 50% 72%;
    animation: gomgomFinishedWiggle 1.15s ease-in-out infinite;
}

@keyframes gomgomFinishedWiggle {
    0%,
    100% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(10deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    #glab .glab-walk-marker.is-gomgom-traveler.is-finished-wiggle {
        animation: none;
    }
}


/* G-LAB 정류장 성향명 및 START·FINISH 크기 통일 */



#glab .glab-walk-stop.is-mine.is-met .glab-walk-stop-tag {
    color: var(--gomgom-color-violet);
}



/* G-LAB 정류장 수동 진행 제어 */
#glab .glab-walk-stop.is-met:not(.is-active-stop)
.glab-walk-bubble {
    opacity: 0;
    transform: translateY(6px) scale(.9);
    pointer-events: none;
}

#glab .glab-walk-stop.is-active-stop
.glab-walk-bubble {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}


#glab .glab-walk-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin: 6px 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--gomgom-color-violet);
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    box-shadow: 0 3px 8px rgba(119, 80, 248, .20);
}

#glab .glab-walk-next:active {
    transform: translateX(1px);
}

#glab .glab-walk-next:focus-visible {
    outline: 2px solid var(--gomgom-color-violet);
    outline-offset: 3px;
}

/* 도착 전에는 문구와 FINISH를 모두 숨긴다. */

#glab .glab-walk-arrival.is-ready p {
    color: rgba(17, 17, 17, .92);
    opacity: 1;
    transform: translateY(0);
}

#glab .glab-walk-arrival.is-ready
.glab-walk-reveal-btn {
    transition-delay: .12s;
}


/* G-LAB 축 타이틀 배지 최상단 위계 */
#glab .glab-walk-stop {
    position: absolute;
    width: 56px;
    margin-left: -28px;
    margin-top: -28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 7;
}





/* 사용자 LECT 정류장 도착 축하 */

#glab .glab-walk-celebration i {
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #7750f8;
    opacity: 0;
    transform: translate(-50%, -50%) scale(.35);
}

#glab .glab-walk-celebration i:nth-child(even) {
    background: #ff6b61;
}

#glab .glab-walk-celebration i:nth-child(3n) {
    width: 4px;
    height: 4px;
    border-radius: 1px;
}


#glab .glab-walk-stop.is-mine-celebrating
.glab-walk-celebration i:nth-child(1) {
    --burst-x: -34px;
    --burst-y: -31px;
}

#glab .glab-walk-stop.is-mine-celebrating
.glab-walk-celebration i:nth-child(2) {
    --burst-x: -12px;
    --burst-y: -42px;
    animation-delay: .03s;
}

#glab .glab-walk-stop.is-mine-celebrating
.glab-walk-celebration i:nth-child(3) {
    --burst-x: 14px;
    --burst-y: -43px;
    animation-delay: .05s;
}

#glab .glab-walk-stop.is-mine-celebrating
.glab-walk-celebration i:nth-child(4) {
    --burst-x: 36px;
    --burst-y: -29px;
    animation-delay: .02s;
}

#glab .glab-walk-stop.is-mine-celebrating
.glab-walk-celebration i:nth-child(5) {
    --burst-x: -42px;
    --burst-y: -8px;
    animation-delay: .07s;
}

#glab .glab-walk-stop.is-mine-celebrating
.glab-walk-celebration i:nth-child(6) {
    --burst-x: 43px;
    --burst-y: -5px;
    animation-delay: .06s;
}

#glab .glab-walk-stop.is-mine-celebrating
.glab-walk-celebration i:nth-child(7) {
    --burst-x: -26px;
    --burst-y: 12px;
    animation-delay: .04s;
}

#glab .glab-walk-stop.is-mine-celebrating
.glab-walk-celebration i:nth-child(8) {
    --burst-x: 27px;
    --burst-y: 13px;
    animation-delay: .08s;
}

#glab .glab-walk-stop.is-mine-celebrating
.glab-walk-stop-icon {
    animation: gomgomMineIconPop .62s cubic-bezier(.2, .8, .3, 1);
}

#glab .glab-walk-stop.is-mine-celebrating
.glab-walk-stop-tag {
    animation: gomgomMineTagGlow .68s ease-out;
}

@keyframes gomgomMineBurst {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(.25);
    }

    18% {
        opacity: 1;
    }

    72% {
        opacity: .9;
    }

    100% {
        opacity: 0;
        transform:
            translate(
                calc(-50% + var(--burst-x)),
                calc(-50% + var(--burst-y))
            )
            scale(1);
    }
}

@keyframes gomgomMineIconPop {
    0%,
    100% {
        transform: scale(1.08) translateY(-2px);
    }

    42% {
        transform: scale(1.2) translateY(-4px);
    }

    68% {
        transform: scale(1.12) translateY(-2px);
    }
}

@keyframes gomgomMineTagGlow {
    0%,
    100% {
        box-shadow:
            0 0 0 1px rgba(119, 80, 248, .22),
            0 5px 14px rgba(119, 80, 248, .15);
    }

    44% {
        box-shadow:
            0 0 0 4px rgba(119, 80, 248, .14),
            0 7px 20px rgba(119, 80, 248, .24);
    }
}

@media (prefers-reduced-motion: reduce) {
    #glab .glab-walk-stop.is-mine-celebrating
    .glab-walk-celebration i {
        animation: none;
        opacity: 0;
    }

    #glab .glab-walk-stop.is-mine-celebrating
    .glab-walk-stop-icon,
    #glab .glab-walk-stop.is-mine-celebrating
    .glab-walk-stop-tag {
        animation: none;
    }
}


/* G-LAB 자연 풍경 저채도 채색
 * 자연물만 은은하게 채색하고 정보성 픽토그램은 기존 단색을 유지한다.
 */
#glab .glab-walk-scenery.icon-cloud,
#glab .glab-walk-scenery.icon-cloudPair,
#glab .glab-walk-scenery.icon-forest,
#glab .glab-walk-scenery.icon-grove,
#glab .glab-walk-scenery.icon-hills,
#glab .glab-walk-scenery.icon-flowers {
    opacity: .76;
}

/* 구름 — 아주 옅은 청회색 */
#glab .glab-walk-scenery.icon-cloud,
#glab .glab-walk-scenery.icon-cloudPair {
    color: #aebdcc;
}

#glab .glab-walk-scenery.icon-cloud path,
#glab .glab-walk-scenery.icon-cloudPair path {
    fill: rgba(218, 229, 238, .62);
    stroke: #9eafbd;
}

/* 침엽수 숲 — 홀수 path는 줄기·지면, 짝수 path는 잎 */
#glab .glab-walk-scenery.icon-forest {
    color: #6f9177;
}

#glab .glab-walk-scenery.icon-forest path:nth-child(odd) {
    fill: none;
    stroke: #8d725e;
}

#glab .glab-walk-scenery.icon-forest path:nth-child(even) {
    fill: rgba(135, 166, 126, .24);
    stroke: #66866c;
}

/* 둥근 나무 군락 — 원은 잎, 선은 줄기와 땅 */
#glab .glab-walk-scenery.icon-grove {
    color: #769479;
}

#glab .glab-walk-scenery.icon-grove circle {
    fill: rgba(145, 174, 132, .28);
    stroke: #6f8f73;
}

#glab .glab-walk-scenery.icon-grove path {
    fill: none;
    stroke: #8b725e;
}

/* 언덕·바위 — 따뜻한 회갈색과 세이지 */
#glab .glab-walk-scenery.icon-hills {
    color: #92958b;
}

#glab .glab-walk-scenery.icon-hills path:nth-child(1) {
    fill: rgba(181, 181, 166, .20);
    stroke: #96978e;
}

#glab .glab-walk-scenery.icon-hills path:nth-child(2) {
    fill: rgba(154, 169, 143, .16);
    stroke: #879184;
}

#glab .glab-walk-scenery.icon-hills path:nth-child(3) {
    fill: none;
    stroke: #8f897f;
}

/* 꽃 — 줄기·잎은 녹색, 꽃송이만 작은 컬러 포인트 */
#glab .glab-walk-scenery.icon-flowers {
    color: #7d9a74;
}

#glab .glab-walk-scenery.icon-flowers path {
    fill: none;
    stroke: #78916f;
}

#glab .glab-walk-scenery.icon-flowers circle:nth-of-type(1) {
    fill: rgba(244, 195, 92, .58);
    stroke: #d2a84d;
}

#glab .glab-walk-scenery.icon-flowers circle:nth-of-type(2) {
    fill: rgba(255, 107, 97, .42);
    stroke: #d98078;
}

#glab .glab-walk-scenery.icon-flowers circle:nth-of-type(3) {
    fill: rgba(119, 80, 248, .32);
    stroke: #8f78d2;
}


/* G-LAB 가로형 축 이정표
 * 정류장 좌표와 말풍선 기준은 유지하고 내부 표식만 통합한다.
 */

/* 기존 사각 알파벳 표지판 스타일 해제 */
#glab .glab-walk-stop-icon {
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-family: Pretendard, sans-serif;
    font-size: 14px;
    font-weight: 900;
    transition: color .25s ease,
        transform .25s cubic-bezier(.22, 1, .36, 1);
    box-shadow: none;
    padding: 0;
    line-height: 1;
    transform: none;
}

#glab .glab-walk-stop-divider {
    color: rgba(17, 17, 17, .26);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

/* 기존 별도 축 배지 스타일을 이정표 내부 텍스트로 재설정 */
#glab .glab-walk-stop-tag {
    margin-top: 5px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    font-size: 11px;
    font-weight: 800;
    color: inherit;
    letter-spacing: -.02em;
    transition: color .25s ease, background .25s ease;
    box-sizing: border-box;
    min-width: 0;
    line-height: 1;
    text-align: left;
    white-space: nowrap;
    position: static;
    z-index: auto;
    isolation: isolate;
    opacity: 1;
    box-shadow: none;
    margin: 0;
}

/* 과거 버스정류장 다리는 완전히 제거 */
#glab .glab-walk-stop-pole {
    width: 2px;
    height: 16px;
    background: var(--gomgom-color-line);
    transition: background .25s ease;
    display: none;
}

/* 방문한 축 */
#glab .glab-walk-stop.is-met .glab-walk-stop-sign {
    border-color: rgba(119, 80, 248, .32);
    background: rgba(255, 255, 255, .98);
    color: var(--gomgom-color-violet);
    box-shadow:
        0 2px 0 rgba(119, 80, 248, .22),
        0 6px 14px rgba(119, 80, 248, .11);
    transform: translateY(-2px);
}

#glab .glab-walk-stop.is-met .glab-walk-stop-icon {
    color: var(--gomgom-color-violet);
    border-color: rgba(119, 80, 248, .35);
    transform: none;
    box-shadow: none;
    border: 0;
    background: transparent;
}

#glab .glab-walk-stop.is-met .glab-walk-stop-tag {
    background: transparent;
    color: var(--gomgom-color-violet);
}

/* 현재 설명 중인 축 */
#glab .glab-walk-stop.is-active-stop .glab-walk-stop-sign {
    border-color: rgba(119, 80, 248, .50);
    background: #fff;
    color: var(--gomgom-color-violet);
    box-shadow:
        0 0 0 2px rgba(119, 80, 248, .10),
        0 7px 16px rgba(119, 80, 248, .16);
}

#glab .glab-walk-stop.is-active-stop .glab-walk-stop-tag {
    background: transparent;
    color: var(--gomgom-color-violet);
    box-shadow: none;
}

/* 내 LECT 축 */
#glab .glab-walk-stop.is-mine .glab-walk-stop-sign {
    color: rgba(17, 17, 17, .82);
}

#glab .glab-walk-stop.is-mine .glab-walk-stop-tag {
    color: inherit;
    font-weight: 900;
}

#glab .glab-walk-stop.is-mine.is-met .glab-walk-stop-sign,
#glab .glab-walk-stop.is-mine.is-active-stop .glab-walk-stop-sign {
    color: var(--gomgom-color-violet);
}

/* 축하 애니메이션은 통합 이정표를 기준으로 반응 */
#glab .glab-walk-stop.is-mine-celebrating .glab-walk-stop-sign {
    animation: gomgomMineSignPop .68s cubic-bezier(.2, .8, .3, 1);
}

@keyframes gomgomMineSignPop {
    0%,
    100% {
        transform: translateY(-2px) scale(1);
    }

    42% {
        transform: translateY(-4px) scale(1.07);
    }

    70% {
        transform: translateY(-2px) scale(1.02);
    }
}

@media (prefers-reduced-motion: reduce) {
    #glab .glab-walk-stop.is-mine-celebrating .glab-walk-stop-sign {
        animation: none;
    }
}


/* G-LAB 보석 체크포인트 퀘스트 UI */

#glab .glab-gem-score {
    position: fixed;
    top: calc(var(--gomgom-header-height) + var(--gomgom-safe-top) + 10px);
    right: 14px;
    z-index: 100040;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(119, 80, 248, .24);
    border-radius: 12px;
    background: linear-gradient(180deg, #fff, #f5f1ff);
    color: #49368f;
    box-shadow:
        0 3px 0 rgba(85, 60, 160, .20),
        0 8px 18px rgba(17, 17, 17, .11);
    font-family: Pretendard, sans-serif;
    font-weight: 900;
    pointer-events: none;
}

#glab .glab-gem-score-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    margin-right: 5px;
    color: #7750f8;
}

#glab .glab-gem-score svg,
#glab .glab-walk-gem svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

#glab .glab-gem-score-times {
    margin-right: 4px;
    color: rgba(17, 17, 17, .44);
    font-size: 10px;
}

#glab .glab-gem-score strong {
    color: #7750f8;
    font-size: 14px;
}

#glab .glab-gem-score-total {
    margin-left: 2px;
    color: rgba(17, 17, 17, .45);
    font-size: 10px;
}

#glab .glab-gem-score.is-gaining {
    animation: gomgomGemScoreGain .58s cubic-bezier(.2, .84, .26, 1);
}

@keyframes gomgomGemScoreGain {
    0%, 100% { transform: scale(1); }
    40% { transform: translateY(-3px) scale(1.12) rotate(-2deg); }
    70% { transform: scale(.98) rotate(1deg); }
}

#glab .glab-walk-gem {
    position: relative;
    z-index: 12;
    display: flex;
    width: 44px;
    height: 44px;
    color: #a9aaae;
    filter: drop-shadow(0 3px 2px rgba(17, 17, 17, .12));
    transition:
        opacity .24s ease,
        transform .38s cubic-bezier(.2, .84, .26, 1);
}

#glab .glab-walk-stop-sign {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: absolute;
    z-index: 12;
    box-sizing: border-box;
    justify-content: center;
    width: max-content;
    min-width: 100px;
    height: 34px;
    padding: 0 12px;
    gap: 7px;
    border: 1px solid rgba(17, 17, 17, .16);
    border-radius: 9px;
    background: rgba(255, 255, 255, .96);
    color: rgba(17, 17, 17, .54);
    box-shadow: 0 2px 0 rgba(17, 17, 17, .12),
        0 5px 12px rgba(17, 17, 17, .07);
    white-space: nowrap;
    transition: color .25s ease,
        border-color .25s ease,
        background .25s ease,
        box-shadow .25s ease,
        transform .25s cubic-bezier(.22, 1, .36, 1);
    top: 5px;
    left: 50%;
    opacity: 0;
    transform: translateX(-50%) scale(.72) rotate(-3deg);
    pointer-events: none;
}

#glab .glab-walk-celebration {
    position: absolute;
    top: 21px;
    left: 50%;
    width: 1px;
    height: 1px;
    z-index: 14;
    pointer-events: none;
}

#glab .glab-walk-arrival {
    position: relative;
    z-index: 10;
    margin-top: 20px;
    text-align: center;
    padding: 12px 24px 72px;
    min-height: 150px;
}

#glab .glab-walk-arrival p {
    margin: 0;
    /* G-LAB 온보딩 결과 화면은 아직 다크모드 대응 전이라 배경이 항상
       밝다 — 토큰(var(--gomgom-color-muted))을 쓰면 다크모드에서 이
       글자만 밝은색으로 뒤집혀 안 보이므로 고정 톤으로 둔다. */
    color: rgba(17, 17, 17, .56);
    font-size: 12px;
    opacity: 0;
    transform: translateY(7px);
    transition: opacity .28s ease,
        transform .28s ease;
    min-height: 20px;
    line-height: 1.55;
    word-break: keep-all;
}

.glab-walk-start-button,
#glab .glab-walk-reveal-btn {
    box-sizing: border-box;
    width: 108px;
    min-width: 108px;
    height: 42px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 950;
    line-height: 38px;
    letter-spacing: .045em;
    text-align: center;
    white-space: nowrap;
    border: 2px solid #5f3ed8;
    background: linear-gradient(180deg, #9378ff, #7750f8 72%, #6842e8);
    color: #fff;
    font-family: Pretendard, sans-serif;
    text-shadow: 0 1px 0 rgba(50, 28, 120, .35);
    box-shadow: 0 4px 0 #5132c6,
        0 9px 16px rgba(63, 39, 145, .22);
}


.glab-walk-start-button:active,
#glab .glab-walk-reveal-btn:active {
    transform: translateY(3px);
}


/* START와 같은 입체 구조를 유지한 코랄 FINISH 버튼 */
#glab .glab-walk-reveal-btn {
    position: relative;
    z-index: 11;
    box-sizing: border-box;
    width: 132px;
    min-width: 132px;
    height: 44px;
    min-height: 44px;
    margin-top: 16px;
    padding: 0 18px;
    border: 2px solid #d84a42;
    border-radius: 14px;
    background:
        linear-gradient(
            180deg,
            #ff9b93 0%,
            #ff6b61 70%,
            #ea554c 100%
        );
    color: #fff;
    font-family: Pretendard, sans-serif;
    font-size: 13px;
    font-weight: 950;
    line-height: 40px;
    letter-spacing: .08em;
    text-align: center;
    text-shadow: 0 1px 0 rgba(120, 37, 31, .34);
    box-shadow:
        0 5px 0 #bd3e38,
        0 10px 18px rgba(190, 63, 55, .25);
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    touch-action: manipulation;
    transition:
        opacity .28s ease,
        transform .28s ease,
        box-shadow .12s ease;
}

#glab .glab-walk-reveal-btn:active {
    transform: translateY(4px);
    box-shadow:
        0 1px 0 #bd3e38,
        0 5px 9px rgba(190, 63, 55, .22);
}

#glab .glab-walk-reveal-btn:focus-visible {
    outline: 3px solid rgba(255, 107, 97, .28);
    outline-offset: 4px;
}

/* 일반 보석 해금: 작고 짧은 파티클 */
#glab .glab-walk-stop.is-mine-celebrating
.glab-walk-celebration {
    transform: scale(.72);
}

#glab .glab-walk-stop.is-mine-celebrating
.glab-walk-celebration i {
    animation: gomgomMineBurst .72s cubic-bezier(.2, .72, .3, 1)
        forwards;
    width: 4px;
    height: 4px;
    animation-duration: .62s;
}

/* 내 LECT 해금: 반경·입자·이정표 반응을 크게 강화 */
#glab .glab-walk-stop.is-major-celebration
.glab-walk-celebration {
    transform: scale(1.22);
}

#glab .glab-walk-stop.is-major-celebration
.glab-walk-celebration i {
    width: 6px;
    height: 6px;
    box-shadow:
        0 0 0 3px rgba(119, 80, 248, .08);
    animation-duration: .88s;
}

#glab .glab-walk-stop.is-major-celebration
.glab-walk-stop-sign {
    animation:
        gomgomMajorLectUnlock .92s
        cubic-bezier(.16, 1, .3, 1);
}

@keyframes gomgomMajorLectUnlock {
    0% {
        transform:
            translateX(-50%)
            translateY(-2px)
            scale(.78)
            rotate(-4deg);
    }

    42% {
        transform:
            translateX(-50%)
            translateY(-6px)
            scale(1.16)
            rotate(2deg);
    }

    72% {
        transform:
            translateX(-50%)
            translateY(-2px)
            scale(.98)
            rotate(-1deg);
    }

    100% {
        transform:
            translateX(-50%)
            translateY(-2px)
            scale(1)
            rotate(0);
    }
}

#glab .glab-walk-stop.is-major-celebration
.glab-walk-gem {
    color: #7750f8;
    filter:
        drop-shadow(0 0 9px rgba(119, 80, 248, .44));
}

@media (prefers-reduced-motion: reduce) {
    #glab .glab-walk-stop.is-major-celebration
    .glab-walk-stop-sign {
        animation: none;
    }
}


/* G-LAB 로딩-스타트 통합 고스트 딤 */

html.glab-journey-gate-lock,
html.glab-journey-gate-lock body {
    overflow: hidden !important;
}

.glab-journey-gate {
    position: fixed;
    inset: 0;
    z-index: 200100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding:
        calc(28px + env(safe-area-inset-top, 0px))
        24px
        calc(28px + env(safe-area-inset-bottom, 0px));
    background: rgba(7, 6, 10, .78);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity .32s ease,
        visibility .32s ease;
}

.glab-journey-gate.is-visible {
    opacity: 1;
    visibility: visible;
}

.glab-journey-gate.is-leaving {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.glab-journey-gate-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 360px);
    min-height: 440px;
    color: #fff;
    text-align: center;
}

/* 별도 흰 카드·박스 없이 딤 위에 콘텐츠만 배치 */
.glab-journey-gate-loading,
.glab-journey-gate-ready {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.glab-journey-gate.is-loading
.glab-journey-gate-loading {
    display: flex;
}

.glab-journey-gate.is-ready
.glab-journey-gate-ready {
    display: flex;
}

.glab-journey-gate-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, .22);
    border-top-color: #fff;
    border-radius: 50%;
    animation: gomgomJourneyGateSpin .8s linear infinite;
}

@keyframes gomgomJourneyGateSpin {
    to {
        transform: rotate(360deg);
    }
}

.glab-journey-gate-loading-title {
    margin: 20px 0 0;
    color: #fff;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.4;
    letter-spacing: -.025em;
}

.glab-journey-gate-loading-copy {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .68);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: -.015em;
    word-break: keep-all;
}

.glab-journey-gate-traveler {
    display: block;
    width: 166px;
    height: 204px;
    margin: 0 auto;
    object-fit: contain;
    filter:
        drop-shadow(0 9px 12px rgba(0, 0, 0, .35));
    animation:
        gomgomJourneyGateFloat 1.7s ease-in-out infinite;
}

@keyframes gomgomJourneyGateFloat {
    0%,
    100% {
        transform: translateY(0) rotate(-1.5deg);
    }

    50% {
        transform: translateY(-8px) rotate(1.5deg);
    }
}

.glab-journey-gate-copy {
    margin: 15px 0 0;
    color: rgba(255, 255, 255, .92);
    font-family: Pretendard, sans-serif;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.62;
    letter-spacing: -.025em;
    word-break: keep-all;
    text-shadow: 0 2px 5px rgba(0, 0, 0, .35);
}

.glab-journey-gate-start {
    box-sizing: border-box;
    width: 148px;
    height: 48px;
    margin-top: 22px;
    padding: 0 20px;
    border: 2px solid #5f3ed8;
    border-radius: 15px;
    background:
        linear-gradient(
            180deg,
            #9b83ff 0%,
            #7750f8 70%,
            #6842e8 100%
        );
    color: #fff;
    font-family: Pretendard, sans-serif;
    font-size: 14px;
    font-weight: 950;
    line-height: 44px;
    letter-spacing: .08em;
    text-align: center;
    text-shadow: 0 1px 0 rgba(50, 28, 120, .34);
    box-shadow:
        0 5px 0 #5132c6,
        0 11px 19px rgba(0, 0, 0, .30);
    cursor: pointer;
    touch-action: manipulation;
    transition:
        transform .12s ease,
        box-shadow .12s ease;
}

.glab-journey-gate-start:active {
    transform: translateY(4px);
    box-shadow:
        0 1px 0 #5132c6,
        0 5px 9px rgba(0, 0, 0, .26);
}

.glab-journey-gate-start:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .45);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .glab-journey-gate-spinner,
    .glab-journey-gate-traveler {
        animation: none;
    }

    .glab-journey-gate {
        transition: none;
    }
}


/* G-LAB 출발 깃발과 대기 점프 */

/* 실제 경로 시작점 옆의 작은 체크무늬 깃발 */
/* G-LAB Light 그레이-바이올렛 출발 깃발 */
#glab .glab-walk-start-flag {
    position: absolute;
    z-index: 7;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 36px;
    height: 44px;
    pointer-events: none;
    transform-origin: 19% 92%;
    opacity: .92;
    filter:
        drop-shadow(0 2px 2px rgba(17, 17, 17, .10));
}

#glab .glab-walk-start-flag svg,
#glab .glab-walk-start-flag img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    overflow: visible;
}

#glab .glab-walk-start-flag .glab-start-flag-base {
    fill: #b7bac1;
}

#glab .glab-walk-start-flag .glab-start-flag-gray {
    fill: #d7d9de;
}

#glab .glab-walk-start-flag .glab-start-flag-violet {
    fill: #9277ef;
}

/* START를 누르고 딤이 걷히는 짧은 순간에 깃발도 긴장감 있게 반응 */
#glab .glab-walk-start-flag.is-ready-to-start {
    animation:
        gomgomStartFlagReady .42s ease-in-out infinite alternate;
}

@keyframes gomgomStartFlagReady {
    from {
        transform: rotate(-2deg);
    }

    to {
        transform: rotate(3deg);
    }
}

/* 실제 출발 순간 한 번 크게 흔들린다. */
#glab .glab-walk-start-flag.is-starting {
    animation:
        gomgomStartFlagWave .72s
        cubic-bezier(.2, .8, .3, 1)
        1;
}

@keyframes gomgomStartFlagWave {
    0% {
        transform: rotate(0);
    }

    24% {
        transform: rotate(-11deg);
    }

    48% {
        transform: rotate(9deg);
    }

    72% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(0);
    }
}

/*
 * START 딤이 사라진 뒤 실제 이동 전까지의 대기 동작.
 * 마커 위치 자체는 건드리지 않고 이미지에만 애니메이션을 적용해
 * 경로 좌표 계산과 충돌하지 않게 한다.
 */
#glab .glab-walk-marker.is-start-line-waiting
img {
    animation:
        gomgomStartLineBounce .52s
        cubic-bezier(.36, .07, .19, .97)
        infinite;
    transform-origin: 50% 88%;
}

@keyframes gomgomStartLineBounce {
    0%,
    100% {
        transform:
            translateY(0)
            scaleY(1)
            rotate(-2deg);
    }

    22% {
        transform:
            translateY(2px)
            scaleX(1.04)
            scaleY(.94)
            rotate(1deg);
    }

    52% {
        transform:
            translateY(-8px)
            scaleX(.97)
            scaleY(1.04)
            rotate(2deg);
    }

    76% {
        transform:
            translateY(-2px)
            scaleX(1.01)
            scaleY(.99)
            rotate(-1deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    #glab .glab-walk-start-flag,
    #glab .glab-walk-marker.is-start-line-waiting img {
        animation: none !important;
    }
}


/* G-LAB 데이터 설명 말풍선 */


#glab .glab-walk-bubble-axis,
#glab .glab-walk-bubble-title,
#glab .glab-walk-bubble-fit,
#glab .glab-walk-bubble-description,
#glab .glab-walk-bubble-strength,
#glab .glab-walk-bubble-relation {
    display: block;
    box-sizing: border-box;
    word-break: keep-all;
}

#glab .glab-walk-bubble-axis {
    margin: 0 0 5px;
    color: rgba(17, 17, 17, .46);
    font-size: 9px;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: .04em;
}

#glab .glab-walk-bubble-title {
    margin: 0;
    color: #211a35;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.28;
    letter-spacing: -.025em;
}

#glab .glab-walk-bubble-fit {
    margin: 5px 0 0;
    color: #7750f8;
    font-size: 10px;
    font-weight: 850;
    line-height: 1.3;
}


#glab .glab-walk-bubble-strength {
    margin: 7px 0 0;
    color: rgba(17, 17, 17, .58);
    font-size: 9.5px;
    font-weight: 650;
    line-height: 1.45;
}

#glab .glab-walk-bubble-relation {
    margin: 8px 0 0;
    padding-top: 7px;
    border-top: 1px solid rgba(17, 17, 17, .08);
    color: rgba(17, 17, 17, .48);
    font-size: 9px;
    font-weight: 650;
    line-height: 1.42;
}

#glab .glab-walk-bubble-relation.is-mine {
    color: #6744db;
    font-weight: 800;
}

#glab .glab-walk-bubble-copy {
    display: none;
}

/* 긴 설명이 들어가므로 화살표는 우측 하단에 고정한다. */
#glab .glab-walk-bubble .glab-walk-next {
    position: absolute;
    right: 8px;
    bottom: 8px;
    margin: 0;
}


/* G-LAB 20칸 단일 축 점수 막대 */

/* 과거 적합도 숫자와 비교형 축 그래프는 사용하지 않는다. */
#glab .glab-walk-bubble-fit,
#glab .glab-walk-bubble-strength,
#glab .glab-walk-axis-meter {
    display: none !important;
}

/*
 * 현재 정류장 성향의 축 점수만 표시한다.
 * 총 20칸이며 한 칸은 5점에 해당한다.
 */
#glab .glab-walk-score-cells {
    display: grid;
    grid-template-columns: repeat(20, minmax(0, 1fr));
    gap: 2px;
    width: 100%;
    margin: 10px 0 0;
}

#glab .glab-walk-score-cells i {
    display: block;
    min-width: 0;
    height: 5px;
    border: 1px solid rgba(119, 80, 248, .18);
    border-radius: 1.5px;
    background: rgba(119, 80, 248, .045);
    box-sizing: border-box;
}

#glab .glab-walk-score-cells i.is-filled {
    border-color: rgba(119, 80, 248, .68);
    background: #9277ef;
    box-shadow:
        0 1px 2px rgba(119, 80, 248, .12);
}

#glab .glab-walk-stop.is-mine
.glab-walk-score-cells i.is-filled {
    border-color: rgba(255, 107, 97, .72);
    background: #ff8178;
    box-shadow:
        0 1px 2px rgba(255, 107, 97, .14);
}

#glab .glab-walk-bubble-description {
    margin: 9px 0 0;
    color: rgba(17, 17, 17, .78);
    font-size: 10.5px;
    font-weight: 620;
    line-height: 1.52;
    letter-spacing: -.015em;
    margin-top: 10px;
}

/*
 * JS의 실제 화면 경계 보정은 그대로 유지한다.
 * CSS 좌우값은 정류장과의 기본 간격만 담당한다.
 */
#glab .glab-walk-bubble {
    position: absolute;
    width: 184px;
    padding: 13px 32px 13px 14px;
    border: 1px solid var(--gomgom-color-line);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(17, 17, 17, .12);
    font-size: 11px;
    color: var(--gomgom-color-muted);
    line-height: 1.5;
    text-align: center;
    opacity: 0;
    transform: translateY(6px) scale(.9);
    transition: opacity .3s cubic-bezier(.22, 1.4, .36, 1), transform .3s cubic-bezier(.22, 1.4, .36, 1);
    z-index: 10;
    box-sizing: border-box;
    min-height: 0;
    max-width: calc(100vw - 24px);
}


/* G-LAB 보석 통과 획득과 FINISH 전환 */

/*
 * 보석 통과 순간 is-unlocked가 붙으며,
 * 정지·말풍선 활성화보다 먼저 획득 상태가 보인다.
 */
#glab .glab-walk-stop .glab-walk-gem {
    transition:
        color .24s cubic-bezier(.16, 1, .3, 1),
        opacity .24s ease,
        transform .34s cubic-bezier(.16, 1.35, .3, 1),
        filter .34s ease;
}

/* 마지막 8 / 8을 카드 전환 전에 짧게 강조한다. */
#glab .glab-gem-score.is-completing {
    animation:
        glabGemCompletePulse .68s
        cubic-bezier(.16, 1, .3, 1)
        both;
}

@keyframes glabGemCompletePulse {
    0% {
        transform: scale(1);
    }

    38% {
        transform: scale(1.12);
        box-shadow:
            0 12px 30px rgba(119, 80, 248, .24);
    }

    100% {
        transform: scale(1);
    }
}

/* 도착 문구와 FINISH는 카드가 열리기 전에 조용히 물러난다. */
#glab .glab-walk-arrival.is-finishing {
    pointer-events: none;
    animation:
        glabArrivalFinishOut .52s
        cubic-bezier(.4, 0, .2, 1)
        both;
}

@keyframes glabArrivalFinishOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(8px) scale(.97);
    }
}

/*
 * 여정과 카탈로그 사이를 잇는 짧은 고스트 딤.
 * 헤더와 하단 네비는 유지하고 앱 본문 안에서만 작동한다.
 */
.app > .glab-finish-transition {
    position: absolute;
    inset: 0;
    z-index: 59;
    pointer-events: none;
    opacity: 0;
    background:
        radial-gradient(
            circle at 50% 58%,
            rgba(119, 80, 248, .13),
            rgba(17, 17, 17, .18) 58%,
            rgba(17, 17, 17, .24)
        );
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    transition:
        opacity .28s ease,
        backdrop-filter .38s ease;
}

.app > .glab-finish-transition.is-show {
    opacity: 1;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.app > .glab-finish-transition.is-clearing {
    opacity: 0;
}

/* 내 LECT 카드가 처음 정착할 때만 아주 작게 안정된다. */
#glabRevealMount
.glab-catalog-card.is-entry-focus
.glab-catalog-card-media {
    animation:
        glabLectCardSettle .72s
        cubic-bezier(.16, 1, .3, 1)
        both;
}

@keyframes glabLectCardSettle {
    from {
        opacity: .86;
        transform: scale(.985);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    #glab .glab-gem-score.is-completing,
    #glab .glab-walk-arrival.is-finishing,
    #glabRevealMount
    .glab-catalog-card.is-entry-focus
    .glab-catalog-card-media {
        animation: none;
    }

    .app > .glab-finish-transition {
        transition-duration: .01ms;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* G-LAB 체크포인트 상태 흐름
 *
 * 1. is-unlocked
 *    회색 보석이 바이올렛으로 바뀐다.
 *
 * 2. is-gem-touch
 *    최초 접촉 순간 한 번만 Pop 애니메이션을 실행한다.
 *
 * 3. is-met + is-active-stop
 *    보석을 제거하고 LECT 배너·폭죽·말풍선을 표시한다.
 */

#glab .glab-walk-stop.is-unlocked:not(.is-met)
.glab-walk-gem {
    opacity: 1;
    visibility: visible;
    color: #7750f8;
    transform: scale(1);
    filter:
        drop-shadow(0 0 8px rgba(119, 80, 248, .38));
}

#glab .glab-walk-stop.is-unlocked:not(.is-met)
.glab-walk-stop-sign,
#glab .glab-walk-stop.is-unlocked:not(.is-met)
.glab-walk-bubble,
#glab .glab-walk-stop.is-unlocked:not(.is-met)
.glab-walk-celebration {
    opacity: 0;
    pointer-events: none;
}

#glab .glab-walk-stop.is-unlocked:not(.is-met)
.glab-walk-stop-sign {
    transform:
        translateX(-50%)
        scale(.72)
        rotate(-3deg);
}

#glab .glab-walk-stop.is-gem-touch
.glab-walk-gem {
    animation:
        glabGemOnlyTouchPop .34s
        cubic-bezier(.22, 1, .36, 1);
}

@keyframes glabGemOnlyTouchPop {
    0% {
        transform: scale(1);
    }

    38% {
        transform: scale(1.18);
    }

    70% {
        transform: scale(.97);
    }

    100% {
        transform: scale(1);
    }
}

/* 보석 통과 후 3.5% 지점 */
#glab .glab-walk-stop.is-met .glab-walk-stop-sign,
#glab .glab-walk-stop.is-active-stop .glab-walk-stop-sign {
    opacity: 1;
    transform:
        translateX(-50%)
        translateY(-2px)
        scale(1);
}

#glab .glab-walk-stop.is-active-stop
.glab-walk-bubble {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* LECT 배너가 나타나는 순간 보석 요소를 완전히 제거한다. */
#glab .glab-walk-stop.is-met .glab-walk-gem,
#glab .glab-walk-stop.is-active-stop .glab-walk-gem {
    display: none;
    opacity: 0;
    visibility: hidden;
    animation: none;
    transform: none;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    #glab .glab-walk-stop.is-gem-touch
    .glab-walk-gem {
        animation: none;
    }
}


/* G-LAB village world background v1
 *
 * 여행자·경로·정류장보다 뒤에 놓이는 저채도 배경 시스템.
 * 참고 시트의 마을·숲·강·언덕·도서관만 추출하고,
 * 앱 UI 가독성을 위해 디테일과 대비를 크게 낮춘다.
 */

#glab .glab-walk {
    overflow: hidden;
    background:
        linear-gradient(
            180deg,
            #fbf7ed 0%,
            #f8f4e9 36%,
            #f3f6ed 67%,
            #f8f3e8 100%
        );
}

#glab .glab-walk::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(
            circle at 18% 8%,
            rgba(255, 255, 255, .88) 0 52px,
            transparent 54px
        ),
        radial-gradient(
            circle at 78% 18%,
            rgba(255, 255, 255, .66) 0 44px,
            transparent 46px
        );
}

#glab .glab-walk-world {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

#glab .glab-walk-svg {
    z-index: 3;
    pointer-events: none;
}

#glab .glab-walk-start-flag,
#glab .glab-walk-stop {
    z-index: 8;
}

#glab .glab-walk-marker {
    z-index: 12;
}

#glab .glab-world-scene {
    position: absolute;
    left: 0;
    width: 100%;
    height: 20%;
    overflow: hidden;
    opacity: .88;
}

#glab .glab-world-scene.is-village {
    top: 0;
}

#glab .glab-world-scene.is-forest {
    top: 20%;
}

#glab .glab-world-scene.is-river {
    top: 40%;
}

#glab .glab-world-scene.is-meadow {
    top: 60%;
}

#glab .glab-world-scene.is-destination {
    top: 80%;
}

#glab .glab-world-hills {
    position: absolute;
    left: -12%;
    right: -12%;
    bottom: 4%;
    height: 50%;
    border-radius: 50% 50% 0 0 / 72% 72% 0 0;
    background:
        radial-gradient(
            ellipse at 18% 100%,
            rgba(132, 151, 92, .23) 0 34%,
            transparent 35%
        ),
        radial-gradient(
            ellipse at 72% 100%,
            rgba(101, 130, 78, .20) 0 38%,
            transparent 39%
        ),
        linear-gradient(
            180deg,
            transparent 0 58%,
            rgba(181, 191, 139, .14) 59% 100%
        );
}

#glab .glab-world-cottage {
    position: absolute;
    bottom: 17%;
    width: 62px;
    height: 46px;
    border: 1px solid rgba(91, 67, 43, .16);
    border-radius: 13px 13px 8px 8px;
    background: rgba(236, 213, 170, .48);
    box-shadow: 0 8px 18px rgba(78, 60, 38, .06);
}

#glab .glab-world-cottage::before {
    content: "";
    position: absolute;
    left: -7px;
    top: -20px;
    width: 74px;
    height: 30px;
    border-radius: 50% 50% 12px 12px;
    background: rgba(146, 102, 61, .48);
    transform: rotate(-3deg);
}

#glab .glab-world-cottage i {
    position: absolute;
    left: 23px;
    bottom: 0;
    width: 16px;
    height: 25px;
    border-radius: 8px 8px 2px 2px;
    background: rgba(103, 74, 47, .38);
}

#glab .glab-world-cottage.is-left {
    left: 4%;
}

#glab .glab-world-cottage.is-right {
    right: 5%;
    bottom: 10%;
    transform: scale(.82);
}

#glab .glab-world-fence {
    position: absolute;
    left: 2%;
    bottom: 8%;
    width: 105px;
    height: 26px;
    opacity: .46;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(113, 82, 49, .55) 0 3px,
            transparent 3px 20px
        ),
        linear-gradient(
            180deg,
            transparent 0 9px,
            rgba(113, 82, 49, .55) 9px 12px,
            transparent 12px 100%
        );
}

#glab .glab-world-flowers,
#glab .glab-world-shrubs,
#glab .glab-world-reeds {
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 2%;
    height: 22px;
    opacity: .62;
    background:
        radial-gradient(circle, rgba(221, 132, 102, .68) 0 2px, transparent 3px)
            7px 4px / 42px 18px repeat-x,
        radial-gradient(circle, rgba(119, 80, 248, .35) 0 2px, transparent 3px)
            26px 10px / 54px 20px repeat-x,
        linear-gradient(
            90deg,
            transparent,
            rgba(93, 123, 67, .22),
            transparent
        );
}

#glab .glab-world-tree {
    position: absolute;
    bottom: 8%;
    width: 46px;
    height: 92px;
}

#glab .glab-world-tree::before {
    content: "";
    position: absolute;
    left: 20px;
    bottom: 0;
    width: 7px;
    height: 42px;
    border-radius: 4px;
    background: rgba(101, 72, 44, .36);
}

#glab .glab-world-tree::after {
    content: "";
    position: absolute;
    left: 1px;
    top: 0;
    width: 44px;
    height: 62px;
    border-radius: 52% 48% 46% 54%;
    background:
        radial-gradient(
            circle at 35% 28%,
            rgba(141, 158, 93, .58) 0 25%,
            transparent 26%
        ),
        radial-gradient(
            circle at 66% 37%,
            rgba(100, 132, 76, .58) 0 30%,
            transparent 31%
        ),
        radial-gradient(
            circle at 48% 70%,
            rgba(86, 119, 71, .55) 0 35%,
            transparent 36%
        );
    filter: drop-shadow(0 5px 7px rgba(52, 75, 42, .08));
}

#glab .glab-world-tree.t1 {
    left: 4%;
}

#glab .glab-world-tree.t2 {
    right: 5%;
    transform: scale(.82);
}

#glab .glab-world-tree.t3 {
    left: 18%;
    bottom: 2%;
    transform: scale(.56);
    opacity: .72;
}

#glab .glab-world-river {
    position: absolute;
    left: -8%;
    right: -8%;
    top: 35%;
    height: 66px;
    border-radius: 48%;
    background:
        repeating-linear-gradient(
            170deg,
            rgba(255, 255, 255, .30) 0 4px,
            transparent 4px 16px
        ),
        linear-gradient(
            90deg,
            rgba(147, 187, 194, .22),
            rgba(105, 159, 171, .38),
            rgba(153, 192, 195, .22)
        );
    transform: rotate(-4deg);
}

#glab .glab-world-bridge {
    position: absolute;
    left: 50%;
    top: 31%;
    width: 92px;
    height: 54px;
    transform: translateX(-50%);
    border-top: 11px solid rgba(147, 109, 72, .46);
    border-radius: 50% 50% 0 0;
}

#glab .glab-world-bridge::before,
#glab .glab-world-bridge::after {
    content: "";
    position: absolute;
    top: 3px;
    width: 7px;
    height: 42px;
    border-radius: 4px;
    background: rgba(111, 80, 52, .36);
}

#glab .glab-world-bridge::before {
    left: 8px;
}

#glab .glab-world-bridge::after {
    right: 8px;
}

#glab .glab-world-bridge i {
    position: absolute;
    top: -10px;
    width: 2px;
    height: 29px;
    background: rgba(92, 65, 42, .25);
}

#glab .glab-world-bridge i:nth-child(1) {
    left: 25px;
}

#glab .glab-world-bridge i:nth-child(2) {
    left: 45px;
}

#glab .glab-world-bridge i:nth-child(3) {
    right: 25px;
}

#glab .glab-world-meadow-lines {
    position: absolute;
    inset: 20% -10% 0;
    opacity: .42;
    background:
        repeating-linear-gradient(
            168deg,
            transparent 0 22px,
            rgba(167, 177, 111, .24) 23px 25px
        );
}

#glab .glab-world-library {
    position: absolute;
    left: 50%;
    bottom: 7%;
    width: 126px;
    height: 112px;
    transform: translateX(-50%);
    opacity: .72;
}

#glab .glab-world-library .body {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 65px;
    border: 1px solid rgba(89, 68, 47, .18);
    border-radius: 13px 13px 5px 5px;
    background: rgba(229, 204, 161, .48);
}

#glab .glab-world-library .roof {
    position: absolute;
    left: 6px;
    top: 26px;
    width: 114px;
    height: 32px;
    border-radius: 50% 50% 9px 9px;
    background: rgba(135, 93, 56, .53);
    transform: rotate(-1deg);
}

#glab .glab-world-library .tower {
    position: absolute;
    left: 48px;
    top: 0;
    width: 30px;
    height: 58px;
    border: 1px solid rgba(89, 68, 47, .16);
    border-radius: 14px 14px 3px 3px;
    background: rgba(235, 218, 184, .64);
}

#glab .glab-world-library .tower::before {
    content: "";
    position: absolute;
    left: -5px;
    top: -12px;
    width: 40px;
    height: 23px;
    border-radius: 50% 50% 6px 6px;
    background: rgba(128, 86, 52, .58);
}

#glab .glab-world-library .door {
    position: absolute;
    left: 53px;
    bottom: 0;
    width: 22px;
    height: 36px;
    border-radius: 11px 11px 2px 2px;
    background: rgba(92, 67, 45, .44);
}

#glab .glab-world-lamps {
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 7%;
    height: 54px;
    background:
        radial-gradient(
            circle at 2px 8px,
            rgba(255, 220, 145, .66) 0 4px,
            transparent 5px
        ) 0 0 / 110px 54px repeat-x,
        linear-gradient(
            90deg,
            rgba(86, 70, 52, .28) 0 2px,
            transparent 2px
        ) 2px 10px / 110px 44px repeat-x;
}

@media (prefers-reduced-motion: no-preference) {
    #glab .glab-world-river {
        animation: glabWorldRiverDrift 9s linear infinite;
    }

    #glab .glab-world-flowers {
        animation: glabWorldBreeze 5.8s ease-in-out infinite;
        transform-origin: 50% 100%;
    }
}

@keyframes glabWorldRiverDrift {
    0% {
        background-position: 0 0, 0 0;
    }

    100% {
        background-position: 64px 0, 0 0;
    }
}

@keyframes glabWorldBreeze {
    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(.7deg);
    }
}

@media (max-width: 360px) {
    #glab .glab-world-cottage.is-right,
    #glab .glab-world-tree.t3 {
        opacity: .45;
    }

    #glab .glab-world-library {
        transform: translateX(-50%) scale(.88);
    }
}
