/*
 * tips327/style.css  v1.0.0
 * 텔레그램 스토리 위치 태그 검색 가이드 전용 스타일
 * 테마: 에메랄드·딥그린·앰버 (지도·탐색·자연)
 * 그누보드5 완전 격리 | BEM | 모바일 퍼스트
 */

/* ─────────────────────────────────────────
   전체 리셋
───────────────────────────────────────── */
#tg-327-wrapper,
#tg-327-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    text-decoration: none;
    list-style: none;
    background: none;
    font-style: normal;
}

#tg-327-wrapper h1,
#tg-327-wrapper h2,
#tg-327-wrapper h3 { font-size: inherit; font-weight: inherit; color: inherit; line-height: 1.35; }
#tg-327-wrapper strong { color: inherit; font-weight: 700; }
#tg-327-wrapper p { margin-bottom: 16px !important; line-height: 1.85 !important; }
#tg-327-wrapper p:last-child { margin-bottom: 0 !important; }
#tg-327-wrapper button { cursor: pointer; }
#tg-327-wrapper code {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: .88em;
    background: rgba(0,0,0,.07);
    padding: 2px 7px;
    border-radius: 5px;
    color: #065f46;
}

/* ─────────────────────────────────────────
   디자인 토큰
───────────────────────────────────────── */
#tg-327-wrapper {
    /* 에메랄드 */
    --em-300: #6ee7b7;
    --em-400: #34d399;
    --em-500: #10b981;
    --em-600: #059669;
    --em-700: #047857;
    --em-800: #065f46;
    /* 틸 */
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    /* 앰버 (위치 핀 강조) */
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    /* 슬레이트 */
    --slate-50:  #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    /* 의미론적 */
    --text-main: #1e293b;
    --text-sub:  #475569;
    /* 반경 */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    /* 그림자 */
    --shadow-xs: 0 1px 4px rgba(0,0,0,.06);
    --shadow-sm: 0 2px 10px rgba(0,0,0,.08);
    --shadow-md: 0 8px 28px rgba(0,0,0,.13);
    /* 폰트 (rules.md 표준) */
    --fs-xs:   .8rem;
    --fs-sm:   .9rem;
    --fs-base: 1rem;
    --fs-md:   1.05rem;
    --fs-lg:   1.2rem;
    --fs-xl:   1.45rem;

    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: var(--fs-base);
    color: var(--text-main);
    line-height: 1.7;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

#tg-327-wrapper .material-symbols-outlined {
    font-size: inherit;
    vertical-align: middle;
    line-height: 1;
}

/* ─────────────────────────────────────────
   스크롤 등장
───────────────────────────────────────── */
#tg-327-wrapper .tg-327-motion {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .65s ease, transform .65s ease;
}
#tg-327-wrapper .tg-327-motion.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═════════════════════════════════════════
   HERO
═════════════════════════════════════════ */
#tg-327-wrapper .tg-327-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 56px 32px 64px;
    background: linear-gradient(135deg, #011a0e 0%, #022d18 35%, #04512a 65%, #065f46 100%);
    text-align: center;
    margin-bottom: 32px;
}

#tg-327-wrapper .tg-327-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 50% at 30% 40%, rgba(16,185,129,.25) 0%, transparent 60%),
        radial-gradient(ellipse 45% 40% at 70% 60%, rgba(251,191,36,.15) 0%, transparent 55%),
        radial-gradient(ellipse 35% 30% at 55% 25%, rgba(45,212,191,.12) 0%, transparent 50%);
    pointer-events: none;
}

#tg-327-wrapper .tg-327-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

/* 핀 씬 */
#tg-327-wrapper .tg-327-pin-scene {
    position: relative;
    width: 100px;
    height: 80px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#tg-327-wrapper .tg-327-pin-scene__map {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(16,185,129,.25);
    overflow: hidden;
}

#tg-327-wrapper .tg-327-pin-scene__dot {
    position: absolute;
    border-radius: 50%;
    background: rgba(16,185,129,.35);
}

#tg-327-wrapper .tg-327-pin-scene__dot--1 { width: 8px; height: 8px; top: 20%; left: 22%; }
#tg-327-wrapper .tg-327-pin-scene__dot--2 { width: 6px; height: 6px; top: 55%; left: 68%; }
#tg-327-wrapper .tg-327-pin-scene__dot--3 { width: 5px; height: 5px; top: 72%; left: 35%; }

#tg-327-wrapper .tg-327-pin-scene__pin {
    position: relative;
    z-index: 2;
    font-size: 2.6rem;
    color: var(--amber-400);
    filter: drop-shadow(0 4px 12px rgba(251,191,36,.55));
    animation: tg327PinBounce 2s ease infinite;
}

#tg-327-wrapper .tg-327-pin-scene__ripple {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 8px;
    background: rgba(16,185,129,.3);
    border-radius: 50%;
    animation: tg327Ripple 2s ease infinite;
}

@keyframes tg327PinBounce {
    0%, 100% { transform: translateY(0);   }
    40%       { transform: translateY(-9px); }
    60%       { transform: translateY(-6px); }
}

@keyframes tg327Ripple {
    0%, 100% { transform: translateX(-50%) scale(1);    opacity: .5; }
    40%       { transform: translateX(-50%) scale(1.55); opacity: .2; }
}

/* 배지 */
#tg-327-wrapper .tg-327-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16,185,129,.18);
    border: 1px solid rgba(16,185,129,.38);
    color: var(--em-300);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
}

#tg-327-wrapper .tg-327-hero__badge .material-symbols-outlined { font-size: 1rem; }

#tg-327-wrapper .tg-327-hero__title {
    font-size: clamp(1.6rem, 4.5vw, 2.25rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.3;
    letter-spacing: -.02em;
    margin-bottom: 18px;
}

#tg-327-wrapper .tg-327-hero__subtitle {
    font-size: clamp(.93rem, 2.2vw, 1.05rem);
    color: rgba(255,255,255,.68);
    line-height: 1.8;
    margin-bottom: 28px !important;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* 기능 뱃지들 */
#tg-327-wrapper .tg-327-hero__features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

#tg-327-wrapper .tg-327-hero__feature {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16,185,129,.14);
    border: 1px solid rgba(16,185,129,.3);
    color: var(--em-300);
    font-size: .85rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 999px;
    transition: background .2s, transform .2s;
}

#tg-327-wrapper .tg-327-hero__feature:hover {
    background: rgba(16,185,129,.26);
    transform: scale(1.05);
}

#tg-327-wrapper .tg-327-hero__feature .material-symbols-outlined { font-size: 1rem; }

/* ═════════════════════════════════════════
   레이아웃
═════════════════════════════════════════ */
#tg-327-wrapper .tg-327-main {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* 도입부 */
#tg-327-wrapper .tg-327-intro {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    text-align: center;
}

#tg-327-wrapper .tg-327-intro__icon {
    font-size: 2.2rem;
    color: var(--em-500);
    margin-bottom: 14px;
}

#tg-327-wrapper .tg-327-intro__icon .material-symbols-outlined { font-size: 2.2rem; }

#tg-327-wrapper .tg-327-intro__heading {
    font-size: clamp(1.1rem, 2.6vw, 1.3rem);
    font-weight: 800;
    color: var(--slate-800);
    letter-spacing: -.01em;
    margin-bottom: 14px;
    line-height: 1.45;
}

#tg-327-wrapper .tg-327-intro p {
    font-size: var(--fs-base);
    color: var(--text-sub);
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.85;
}

#tg-327-wrapper .tg-327-intro__privacy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16,185,129,.07);
    border: 1px solid rgba(16,185,129,.2);
    color: var(--em-700);
    font-size: var(--fs-sm);
    font-weight: 600;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    margin-top: 16px;
    line-height: 1.55;
    max-width: 560px;
    text-align: left;
}

#tg-327-wrapper .tg-327-intro__privacy .material-symbols-outlined {
    font-size: 1.3rem;
    color: var(--em-500);
    flex-shrink: 0;
}

/* 공통 섹션 */
#tg-327-wrapper .tg-327-section {
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    box-shadow: var(--shadow-sm);
    text-align: left;
}

/* 레이블 */
#tg-327-wrapper .tg-327-section__label {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    color: var(--slate-700);
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 8px 20px;
    border-radius: 999px;
    margin-bottom: 20px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

#tg-327-wrapper .tg-327-section__label--sim {
    background: rgba(16,185,129,.08);
    border-color: rgba(16,185,129,.25);
    color: var(--em-700);
}

#tg-327-wrapper .tg-327-section__label--guide {
    background: rgba(45,212,191,.08);
    border-color: rgba(45,212,191,.25);
    color: #0f766e;
}

#tg-327-wrapper .tg-327-section__label--privacy {
    background: rgba(251,191,36,.1);
    border-color: rgba(251,191,36,.3);
    color: var(--amber-600);
}

#tg-327-wrapper .tg-327-section__label .material-symbols-outlined { font-size: 1.15rem; }

/* 섹션 제목 */
#tg-327-wrapper .tg-327-section__title {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 900;
    color: var(--slate-800);
    letter-spacing: -.02em;
    line-height: 1.35;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
}

#tg-327-wrapper .tg-327-section__title .material-symbols-outlined {
    font-size: 1.5rem;
    color: var(--em-500);
}

#tg-327-wrapper .tg-327-section > p {
    font-size: var(--fs-base);
    color: var(--text-sub);
    text-align: center;
    line-height: 1.85;
    margin-bottom: 28px !important;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* ═════════════════════════════════════════
   카드
═════════════════════════════════════════ */
#tg-327-wrapper .tg-327-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 10px;
}

#tg-327-wrapper .tg-327-card {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow .3s, transform .3s;
}

#tg-327-wrapper .tg-327-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

#tg-327-wrapper .tg-327-card__icon {
    width: 54px; height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--em-500), var(--em-700));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.6rem;
}

#tg-327-wrapper .tg-327-card__icon--teal {
    background: linear-gradient(135deg, var(--teal-400), var(--teal-500));
}

#tg-327-wrapper .tg-327-card__icon--amber {
    background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
}

#tg-327-wrapper .tg-327-card__title {
    font-size: var(--fs-lg);
    font-weight: 800;
    color: var(--slate-800);
    letter-spacing: -.015em;
}

#tg-327-wrapper .tg-327-card__desc {
    font-size: var(--fs-base);
    color: var(--text-sub);
    line-height: 1.8;
}

/* ═════════════════════════════════════════
   시뮬레이터
═════════════════════════════════════════ */
#tg-327-wrapper .tg-327-sim {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

/* 스토리 뷰어 */
#tg-327-wrapper .tg-327-story-view {
    position: relative;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 9/16;
    max-height: 460px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 탑바 */
#tg-327-wrapper .tg-327-sv__topbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 5;
    padding: 12px 14px 8px;
    background: linear-gradient(to bottom, rgba(0,0,0,.65), transparent);
}

#tg-327-wrapper .tg-327-sv__progress {
    height: 3px;
    background: rgba(255,255,255,.3);
    border-radius: 999px;
    margin-bottom: 10px;
    overflow: hidden;
}

#tg-327-wrapper .tg-327-sv__bar {
    height: 100%;
    background: #fff;
    border-radius: 999px;
    width: 0%;
    transition: width .1s linear;
}

#tg-327-wrapper .tg-327-sv__meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

#tg-327-wrapper .tg-327-sv__avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--em-500), var(--teal-500));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: .7rem; font-weight: 800;
    border: 2px solid var(--em-400);
    flex-shrink: 0;
}

#tg-327-wrapper .tg-327-sv__info { flex: 1; }
#tg-327-wrapper .tg-327-sv__name { font-size: var(--fs-sm); font-weight: 700; color: #fff; }
#tg-327-wrapper .tg-327-sv__time { font-size: var(--fs-xs); color: rgba(255,255,255,.5); }

/* 미디어 */
#tg-327-wrapper .tg-327-sv__media {
    flex: 1;
    position: relative;
}

#tg-327-wrapper .tg-327-sv__media-slides {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
}

/* 개별 슬라이드 */
#tg-327-wrapper .tg-327-sv-slide {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 10px; opacity: 0;
    transition: opacity .3s ease;
}

#tg-327-wrapper .tg-327-sv-slide.is-active { opacity: 1; }
#tg-327-wrapper .tg-327-sv-slide__emoji { font-size: 4rem; line-height: 1; }
#tg-327-wrapper .tg-327-sv-slide__label {
    font-size: var(--fs-sm); font-weight: 600;
    color: rgba(255,255,255,.55); letter-spacing: .03em;
}

/* 위치 태그 스티커 */
#tg-327-wrapper .tg-327-loc-sticker {
    position: absolute;
    bottom: 58px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(251,191,36,.22);
    border: 1.5px solid rgba(251,191,36,.5);
    color: var(--amber-300);
    font-size: var(--fs-sm);
    font-weight: 800;
    padding: 9px 18px;
    border-radius: 999px;
    white-space: nowrap;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
    transition: background .2s, transform .2s, box-shadow .2s;
    animation: tg327TagPulse 2.5s ease infinite;
}

#tg-327-wrapper .tg-327-loc-sticker:hover {
    background: rgba(251,191,36,.4);
    transform: translateX(-50%) scale(1.06);
    box-shadow: 0 6px 24px rgba(251,191,36,.35);
}

#tg-327-wrapper .tg-327-loc-sticker .material-symbols-outlined { font-size: 1.1rem; color: var(--amber-400); }
#tg-327-wrapper .tg-327-loc-sticker__name { font-size: .85rem; }
#tg-327-wrapper .tg-327-loc-sticker__arrow { font-size: .95rem; opacity: .7; }

@keyframes tg327TagPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(0,0,0,.3); }
    50%       { box-shadow: 0 4px 24px rgba(251,191,36,.4); }
}

/* 위치 팝업 */
#tg-327-wrapper .tg-327-loc-popup {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: flex;
    align-items: flex-end;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px);
    animation: tg327FadeIn .25s ease;
}

#tg-327-wrapper .tg-327-loc-popup__inner {
    width: 100%;
    background: linear-gradient(to bottom, #0d2b1a, #041409);
    border-top: 1px solid rgba(16,185,129,.3);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    padding: 22px 20px 20px;
    text-align: center;
    animation: tg327SlideUp .25s ease;
}

@keyframes tg327SlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

#tg-327-wrapper .tg-327-loc-popup__icon {
    font-size: 2.6rem;
    color: var(--amber-400);
    margin-bottom: 6px;
}

#tg-327-wrapper .tg-327-loc-popup__icon .material-symbols-outlined { font-size: 2.6rem; }

#tg-327-wrapper .tg-327-loc-popup__place {
    font-size: var(--fs-lg);
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

#tg-327-wrapper .tg-327-loc-popup__count {
    font-size: var(--fs-sm);
    color: rgba(255,255,255,.42);
    margin-bottom: 16px;
}

#tg-327-wrapper .tg-327-loc-popup__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, var(--em-500), var(--em-700));
    color: #fff;
    font-size: var(--fs-base);
    font-weight: 800;
    padding: 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    box-shadow: 0 4px 16px rgba(16,185,129,.35);
    transition: box-shadow .2s, transform .15s;
}

#tg-327-wrapper .tg-327-loc-popup__btn:hover {
    box-shadow: 0 6px 24px rgba(16,185,129,.55);
    transform: translateY(-2px);
}

#tg-327-wrapper .tg-327-loc-popup__btn .material-symbols-outlined { font-size: 1.1rem; }

#tg-327-wrapper .tg-327-loc-popup__cancel {
    display: block;
    width: 100%;
    color: rgba(255,255,255,.4);
    font-size: var(--fs-base);
    font-weight: 600;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: background .2s;
}

#tg-327-wrapper .tg-327-loc-popup__cancel:hover { background: rgba(255,255,255,.06); }

/* 힌트 */
#tg-327-wrapper .tg-327-sv__hint {
    position: absolute;
    bottom: 12px;
    left: 0; right: 0;
    text-align: center;
    font-size: var(--fs-xs);
    color: rgba(255,255,255,.35);
    z-index: 4;
    padding: 0 14px;
    animation: tg327Blink 2.5s ease infinite;
}

@keyframes tg327Blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: .3; }
}

/* 내비 버튼 */
#tg-327-wrapper .tg-327-sv__nav {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 3;
    pointer-events: none;
}

#tg-327-wrapper .tg-327-sv__nav-btn {
    width: 40px; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    color: rgba(255,255,255,.45);
    pointer-events: auto;
    transition: color .2s;
}

#tg-327-wrapper .tg-327-sv__nav-btn:hover { color: #fff; }

/* 위치 결과 그리드 */
#tg-327-wrapper .tg-327-loc-result {
    background: #0a1f14;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: none;
    flex-direction: column;
    flex: 1;
    animation: tg327FadeIn .3s ease;
}

#tg-327-wrapper .tg-327-loc-result__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(16,185,129,.12);
    border-bottom: 1px solid rgba(16,185,129,.2);
}

#tg-327-wrapper .tg-327-back-btn {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: #fff; font-size: 1.2rem;
    transition: background .2s; flex-shrink: 0;
}

#tg-327-wrapper .tg-327-back-btn:hover { background: rgba(255,255,255,.2); }

#tg-327-wrapper .tg-327-loc-result__info { flex: 1; }

#tg-327-wrapper .tg-327-loc-result__name {
    font-size: var(--fs-base);
    font-weight: 800;
    color: var(--em-300);
}

#tg-327-wrapper .tg-327-loc-result__count {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,.4);
}

/* 프라이버시 필터 */
#tg-327-wrapper .tg-327-loc-result__filter {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(0,0,0,.3);
    border-bottom: 1px solid rgba(255,255,255,.06);
    flex-wrap: wrap;
}

#tg-327-wrapper .tg-327-filter-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: var(--fs-xs);
    color: rgba(255,255,255,.45);
    font-weight: 600;
    white-space: nowrap;
}

#tg-327-wrapper .tg-327-filter-label .material-symbols-outlined { font-size: .95rem; }

#tg-327-wrapper .tg-327-filter-btns { display: flex; gap: 6px; flex-wrap: wrap; }

#tg-327-wrapper .tg-327-filter-btn {
    font-size: var(--fs-xs);
    font-weight: 700;
    color: rgba(255,255,255,.5);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    padding: 5px 12px;
    border-radius: 999px;
    transition: background .2s, color .2s, border-color .2s;
}

#tg-327-wrapper .tg-327-filter-btn--active {
    background: rgba(16,185,129,.25);
    border-color: rgba(16,185,129,.45);
    color: var(--em-300);
}

/* 그리드 영역 */
#tg-327-wrapper .tg-327-loc-result__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    overflow-y: auto;
    max-height: 320px;
}

/* 그리드 썸네일 */
#tg-327-wrapper .tg-327-grid-thumb {
    aspect-ratio: 9/16;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    font-size: 1.7rem;
    border: 1px solid rgba(255,255,255,.04);
    transition: filter .2s, transform .15s;
    animation: tg327ThumbIn .25s ease both;
}

#tg-327-wrapper .tg-327-grid-thumb:hover {
    filter: brightness(1.18);
    transform: scale(1.05);
    z-index: 1;
    box-shadow: 0 4px 16px rgba(16,185,129,.35);
}

#tg-327-wrapper .tg-327-grid-thumb__pin {
    font-size: .55rem;
    color: rgba(255,255,255,.45);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 2px;
}

@keyframes tg327ThumbIn {
    from { opacity: 0; transform: scale(.85); }
    to   { opacity: 1; transform: scale(1); }
}

/* 빈 상태 (비공개) */
#tg-327-wrapper .tg-327-loc-result__empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 40px 24px;
    text-align: center;
    font-size: var(--fs-sm);
    color: rgba(255,255,255,.45);
    animation: tg327FadeIn .3s ease;
}

#tg-327-wrapper .tg-327-loc-result__empty .material-symbols-outlined {
    font-size: 2.8rem;
    color: var(--em-500);
}

@keyframes tg327FadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 안내 패널 */
#tg-327-wrapper .tg-327-info-panel {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
}

#tg-327-wrapper .tg-327-info-panel__label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--slate-200);
}

#tg-327-wrapper .tg-327-info-panel__label .material-symbols-outlined { font-size: 1.1rem; }

/* 초기 */
#tg-327-wrapper .tg-327-info-idle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    gap: 12px;
}

#tg-327-wrapper .tg-327-info-idle__icon {
    font-size: 2.6rem;
    color: var(--amber-500);
}

#tg-327-wrapper .tg-327-info-idle__icon .material-symbols-outlined { font-size: 2.6rem; }

#tg-327-wrapper .tg-327-info-idle__title {
    font-size: var(--fs-lg);
    font-weight: 800;
    color: var(--slate-700);
}

#tg-327-wrapper .tg-327-info-idle__desc {
    font-size: var(--fs-sm);
    color: var(--slate-400);
    text-align: center;
    line-height: 1.75;
}

/* 단계 표시 */
#tg-327-wrapper .tg-327-info-idle__steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    width: 100%;
    max-width: 200px;
}

#tg-327-wrapper .tg-327-info-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-sm);
    color: var(--slate-600);
}

#tg-327-wrapper .tg-327-info-step__num {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--em-500), var(--em-700));
    color: #fff;
    font-size: .75rem;
    font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* 활성 */
#tg-327-wrapper .tg-327-info-active {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    gap: 12px;
    animation: tg327FadeIn .35s ease;
}

#tg-327-wrapper .tg-327-info-active__icon {
    font-size: 2.4rem;
    color: var(--em-500);
}

#tg-327-wrapper .tg-327-info-active__icon .material-symbols-outlined { font-size: 2.4rem; }

#tg-327-wrapper .tg-327-info-active__place {
    font-size: var(--fs-xl);
    font-weight: 900;
    color: var(--slate-800);
    letter-spacing: -.02em;
}

#tg-327-wrapper .tg-327-info-active__desc {
    font-size: var(--fs-sm);
    color: var(--slate-400);
    line-height: 1.75;
}

#tg-327-wrapper .tg-327-info-privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(16,185,129,.07);
    border: 1px solid rgba(16,185,129,.18);
    border-radius: 10px;
    padding: 12px 14px;
    text-align: left;
    font-size: var(--fs-sm);
    color: var(--slate-600);
    width: 100%;
    line-height: 1.6;
}

#tg-327-wrapper .tg-327-info-privacy .material-symbols-outlined {
    font-size: 1.2rem;
    color: var(--em-500);
    flex-shrink: 0;
    margin-top: 2px;
}

#tg-327-wrapper .tg-327-info-privacy__title {
    font-weight: 700;
    color: var(--slate-700);
    margin-bottom: 2px;
}

#tg-327-wrapper .tg-327-info-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    color: var(--slate-600);
    font-size: var(--fs-sm);
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 999px;
    transition: background .2s;
}

#tg-327-wrapper .tg-327-info-back-btn:hover { background: var(--slate-200); }
#tg-327-wrapper .tg-327-info-back-btn .material-symbols-outlined { font-size: 1rem; }

/* ═════════════════════════════════════════
   기기별 가이드 (이중 카드)
═════════════════════════════════════════ */
#tg-327-wrapper .tg-327-dual-guide {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

#tg-327-wrapper .tg-327-guide-card {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    padding: 20px;
}

#tg-327-wrapper .tg-327-guide-card__label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: var(--fs-sm);
    font-weight: 800;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--slate-200);
}

#tg-327-wrapper .tg-327-guide-card__label--search {
    color: var(--em-700);
}

#tg-327-wrapper .tg-327-guide-card__label--add {
    color: #b45309;
}

#tg-327-wrapper .tg-327-guide-card__label .material-symbols-outlined { font-size: 1.15rem; }

/* ═════════════════════════════════════════
   탭 그룹
═════════════════════════════════════════ */
#tg-327-wrapper .tg-327-tab-group {
    display: flex;
    gap: 6px;
    background: var(--slate-100);
    border-radius: var(--radius-sm);
    padding: 5px;
    margin-bottom: 22px;
}

#tg-327-wrapper .tg-327-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 10px;
    border-radius: 7px;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--slate-500);
    transition: background .2s, color .2s, box-shadow .2s;
}

#tg-327-wrapper .tg-327-tab-btn .material-symbols-outlined { font-size: 1.1rem; }

#tg-327-wrapper .tg-327-tab-btn--active {
    background: #fff;
    color: var(--em-700);
    box-shadow: 0 2px 10px rgba(0,0,0,.09);
    font-weight: 700;
}

#tg-327-wrapper .tg-327-tab-panel { display: none; animation: tg327FadeIn .3s ease; }
#tg-327-wrapper .tg-327-tab-panel--active { display: block; }

#tg-327-wrapper .tg-327-tab-panel__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--slate-100);
}

#tg-327-wrapper .tg-327-tab-panel__icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    color: #fff; flex-shrink: 0;
}

#tg-327-wrapper .tg-327-tab-panel__icon--ios     { background: linear-gradient(135deg, #888, #222); }
#tg-327-wrapper .tg-327-tab-panel__icon--android { background: linear-gradient(135deg, #3ddc84, #00ac47); }
#tg-327-wrapper .tg-327-tab-panel__icon--pc      { background: linear-gradient(135deg, var(--slate-700), var(--slate-900)); }

#tg-327-wrapper .tg-327-tab-panel__title {
    font-size: var(--fs-lg);
    font-weight: 800;
    color: var(--slate-800);
    letter-spacing: -.015em;
    margin-bottom: 4px;
}

#tg-327-wrapper .tg-327-tab-panel__sub {
    font-size: var(--fs-sm);
    color: var(--slate-400);
    margin-bottom: 0 !important;
}

/* 단계 리스트 */
#tg-327-wrapper .tg-327-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    counter-reset: tg327step;
}

#tg-327-wrapper .tg-327-steps li {
    counter-increment: tg327step;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: var(--fs-base);
    color: var(--text-sub);
    line-height: 1.75;
}

#tg-327-wrapper .tg-327-steps li::before {
    content: counter(tg327step);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--em-500), var(--em-700));
    color: #fff;
    font-size: .82rem;
    font-weight: 900;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
}

/* 팁 박스 */
#tg-327-wrapper .tg-327-tip-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(16,185,129,.05);
    border: 1px solid rgba(16,185,129,.18);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    margin-top: 20px;
    font-size: var(--fs-base);
    color: var(--text-sub);
    line-height: 1.75;
}

#tg-327-wrapper .tg-327-tip-box .material-symbols-outlined {
    font-size: 1.4rem;
    color: var(--em-500);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ═════════════════════════════════════════
   아코디언
═════════════════════════════════════════ */
#tg-327-wrapper .tg-327-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

#tg-327-wrapper .tg-327-accordion__item {
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}

#tg-327-wrapper .tg-327-accordion__item.is-open {
    border-color: var(--em-400);
    box-shadow: 0 2px 16px rgba(16,185,129,.12);
}

#tg-327-wrapper .tg-327-accordion__header {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 20px;
    text-align: left;
    background: var(--slate-50);
    transition: background .2s;
}

#tg-327-wrapper .tg-327-accordion__header:hover { background: var(--slate-100); }

#tg-327-wrapper .tg-327-accordion__icon {
    width: 42px; height: 42px; min-width: 42px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--em-500), var(--em-700));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: #fff;
}

#tg-327-wrapper .tg-327-accordion__title {
    flex: 1;
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--slate-800);
    line-height: 1.45;
}

#tg-327-wrapper .tg-327-accordion__arrow {
    font-size: 1.5rem;
    color: var(--slate-400);
    transition: transform .3s;
    flex-shrink: 0;
}

#tg-327-wrapper .tg-327-accordion__item.is-open .tg-327-accordion__arrow { transform: rotate(180deg); }

#tg-327-wrapper .tg-327-accordion__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .38s ease, padding .38s ease;
    padding: 0 20px;
    background: #fff;
}

#tg-327-wrapper .tg-327-accordion__item.is-open .tg-327-accordion__body {
    max-height: 320px;
    padding: 18px 20px;
}

#tg-327-wrapper .tg-327-accordion__body p {
    font-size: var(--fs-base);
    color: var(--text-sub);
    line-height: 1.85;
    margin-bottom: 0 !important;
}

/* ═════════════════════════════════════════
   결론 요약
═════════════════════════════════════════ */
#tg-327-wrapper .tg-327-summary {
    background: linear-gradient(135deg, #011a0e 0%, #022d18 35%, #04512a 65%, #065f46 100%);
    border-radius: var(--radius-md);
    padding: 48px 36px;
    color: #fff;
}

#tg-327-wrapper .tg-327-summary__title {
    font-size: clamp(1.25rem, 3.5vw, 1.6rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    margin-bottom: 16px;
}

#tg-327-wrapper .tg-327-summary__title .material-symbols-outlined {
    font-size: 1.6rem;
    color: var(--em-400);
}

#tg-327-wrapper .tg-327-summary__desc {
    font-size: var(--fs-base);
    color: rgba(255,255,255,.7);
    text-align: center;
    line-height: 1.85;
    margin-bottom: 28px !important;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

#tg-327-wrapper .tg-327-summary__checklist {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 36px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

#tg-327-wrapper .tg-327-summary__checklist li {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    font-size: var(--fs-base);
    color: rgba(255,255,255,.82);
    line-height: 1.7;
}

#tg-327-wrapper .tg-327-summary__checklist li .material-symbols-outlined {
    font-size: 1.1rem;
    color: var(--em-400);
    margin-top: 3px;
    flex-shrink: 0;
}

#tg-327-wrapper .tg-327-summary__checklist li strong { color: #fff; }

#tg-327-wrapper .tg-327-footer {
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 28px;
    text-align: center;
}

#tg-327-wrapper .tg-327-footer__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--em-500), var(--em-700));
    color: #fff;
    font-size: var(--fs-base);
    font-weight: 800;
    padding: 15px 32px;
    border-radius: 999px;
    box-shadow: 0 4px 24px rgba(16,185,129,.38);
    transition: box-shadow .28s, transform .22s;
    letter-spacing: -.01em;
}

#tg-327-wrapper .tg-327-footer__btn:hover {
    box-shadow: 0 8px 32px rgba(16,185,129,.55);
    transform: translateY(-3px);
}

#tg-327-wrapper .tg-327-footer__btn .material-symbols-outlined { font-size: 1.1rem; }

/* ═════════════════════════════════════════
   반응형
═════════════════════════════════════════ */
@media (min-width: 640px) {
    #tg-327-wrapper .tg-327-hero { padding: 72px 56px 80px; }

    #tg-327-wrapper .tg-327-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    #tg-327-wrapper .tg-327-sim {
        flex-direction: row;
        align-items: flex-start;
    }

    #tg-327-wrapper .tg-327-story-view {
        flex: 0 0 200px;
        max-height: 460px;
    }

    #tg-327-wrapper .tg-327-loc-result {
        flex: 0 0 200px;
        max-height: 460px;
    }

    #tg-327-wrapper .tg-327-info-panel {
        flex: 1;
        min-height: 460px;
    }

    #tg-327-wrapper .tg-327-dual-guide {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    #tg-327-wrapper .tg-327-section { padding: 48px 44px; }
    #tg-327-wrapper .tg-327-story-view { flex: 0 0 240px; }
    #tg-327-wrapper .tg-327-loc-result { flex: 0 0 240px; }
    #tg-327-wrapper .tg-327-summary { padding: 60px 56px; }
}
