/*
 * tips326/style.css  v1.0.0
 * 텔레그램 스토리 해시태그 검색 가이드 전용 스타일
 * 테마: 로즈·코랄·앰버 (따뜻하고 소셜한 에너지)
 * 그누보드5 완전 격리 | BEM | 모바일 퍼스트
 */

/* ─────────────────────────────────────────
   전체 리셋
───────────────────────────────────────── */
#tg-326-wrapper,
#tg-326-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-326-wrapper h1,
#tg-326-wrapper h2,
#tg-326-wrapper h3,
#tg-326-wrapper h4 { font-size: inherit; font-weight: inherit; color: inherit; line-height: 1.35; }

#tg-326-wrapper strong,
#tg-326-wrapper b { color: inherit; font-weight: 700; }

#tg-326-wrapper p { margin-bottom: 16px !important; line-height: 1.85 !important; }
#tg-326-wrapper p:last-child { margin-bottom: 0 !important; }
#tg-326-wrapper button { cursor: pointer; }
#tg-326-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: var(--rose-700);
}

/* ─────────────────────────────────────────
   디자인 토큰
───────────────────────────────────────── */
#tg-326-wrapper {
    /* 로즈 */
    --rose-300: #fda4af;
    --rose-400: #fb7185;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --rose-700: #be123c;
    /* 코랄·오렌지 */
    --coral-400: #fb923c;
    --coral-500: #f97316;
    --coral-600: #ea580c;
    /* 앰버 */
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    /* 슬레이트 */
    --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-326-wrapper .material-symbols-outlined {
    font-size: inherit;
    vertical-align: middle;
    line-height: 1;
}

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

/* ═════════════════════════════════════════
   HERO
═════════════════════════════════════════ */
#tg-326-wrapper .tg-326-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 56px 32px 64px;
    background: linear-gradient(135deg, #1a0510 0%, #2d0a1a 35%, #4a1028 65%, #6b1a3a 100%);
    text-align: center;
    margin-bottom: 32px;
}

#tg-326-wrapper .tg-326-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 45% at 25% 35%, rgba(244,63,94,.22) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 75% 65%, rgba(249,115,22,.18) 0%, transparent 60%),
        radial-gradient(ellipse 40% 35% at 50% 50%, rgba(251,191,36,.10) 0%, transparent 55%);
    pointer-events: none;
}

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

/* 스토리 링 애니메이션 */
#tg-326-wrapper .tg-326-story-rings {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}

#tg-326-wrapper .tg-326-story-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid transparent;
}

#tg-326-wrapper .tg-326-story-ring--1 {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,.08);
    border-color: rgba(244,63,94,.5);
    font-size: 1.5rem;
    color: var(--rose-400);
    animation: tg326Ring1 3s ease infinite;
}

#tg-326-wrapper .tg-326-story-ring--2 {
    width: 76px;
    height: 76px;
    background: linear-gradient(135deg, var(--rose-600), var(--coral-500));
    border-color: var(--rose-400);
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 0 40px rgba(244,63,94,.5);
    animation: tg326Ring2 3s ease infinite;
}

#tg-326-wrapper .tg-326-story-ring--3 {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,.08);
    border-color: rgba(249,115,22,.5);
    font-size: 1.5rem;
    color: var(--coral-400);
    animation: tg326Ring3 3s ease infinite;
}

@keyframes tg326Ring1 {
    0%, 100% { transform: scale(1);    opacity: .7; }
    50%       { transform: scale(1.08); opacity: 1; }
}
@keyframes tg326Ring2 {
    0%, 100% { transform: scale(1);    box-shadow: 0 0 40px rgba(244,63,94,.5); }
    50%       { transform: scale(1.07); box-shadow: 0 0 60px rgba(244,63,94,.8); }
}
@keyframes tg326Ring3 {
    0%, 100% { transform: scale(1);    opacity: .7; }
    50%       { transform: scale(1.08); opacity: 1; }
}

#tg-326-wrapper .tg-326-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(244,63,94,.2);
    border: 1px solid rgba(244,63,94,.4);
    color: var(--rose-300);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
}

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

#tg-326-wrapper .tg-326-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-326-wrapper .tg-326-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-326-wrapper .tg-326-hero__hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

#tg-326-wrapper .tg-326-hero__tag {
    display: inline-flex;
    align-items: center;
    background: rgba(244,63,94,.18);
    border: 1px solid rgba(244,63,94,.35);
    color: var(--rose-300);
    font-size: .85rem;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 999px;
    transition: background .2s, transform .2s;
}

#tg-326-wrapper .tg-326-hero__tag:hover {
    background: rgba(244,63,94,.3);
    transform: scale(1.05);
}

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

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

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

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

#tg-326-wrapper .tg-326-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-326-wrapper .tg-326-intro p {
    font-size: var(--fs-base);
    color: var(--text-sub);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.85;
}

/* 공통 섹션 */
#tg-326-wrapper .tg-326-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-326-wrapper .tg-326-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-326-wrapper .tg-326-section__label--sim {
    background: rgba(244,63,94,.08);
    border-color: rgba(244,63,94,.25);
    color: var(--rose-600);
}

#tg-326-wrapper .tg-326-section__label--guide {
    background: rgba(249,115,22,.08);
    border-color: rgba(249,115,22,.25);
    color: var(--coral-600);
}

#tg-326-wrapper .tg-326-section__label--tips {
    background: rgba(245,158,11,.1);
    border-color: rgba(245,158,11,.3);
    color: #b45309;
}

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

/* 섹션 제목 */
#tg-326-wrapper .tg-326-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-326-wrapper .tg-326-section__title .material-symbols-outlined {
    font-size: 1.5rem;
    color: var(--rose-500);
}

#tg-326-wrapper .tg-326-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;
}

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

#tg-326-wrapper .tg-326-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-326-wrapper .tg-326-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

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

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

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

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

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

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

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

/* 뷰어 헤더 */
#tg-326-wrapper .tg-326-story-viewer__header {
    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-326-wrapper .tg-326-story-viewer__progress {
    height: 3px;
    background: rgba(255,255,255,.3);
    border-radius: 999px;
    margin-bottom: 10px;
    overflow: hidden;
}

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

#tg-326-wrapper .tg-326-story-viewer__meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

#tg-326-wrapper .tg-326-story-viewer__info { flex: 1; }

#tg-326-wrapper .tg-326-story-viewer__name {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

#tg-326-wrapper .tg-326-story-viewer__time {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,.55);
}

#tg-326-wrapper .tg-326-story-viewer__close {
    font-size: 1.4rem;
    color: rgba(255,255,255,.7);
}

/* 미디어 영역 */
#tg-326-wrapper .tg-326-story-viewer__media {
    flex: 1;
    position: relative;
    overflow: hidden;
}

#tg-326-wrapper .tg-326-story-viewer__media-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

#tg-326-wrapper .tg-326-story-slide.is-active { opacity: 1; }

#tg-326-wrapper .tg-326-story-slide__emoji {
    font-size: 4rem;
    line-height: 1;
}

#tg-326-wrapper .tg-326-story-slide__label {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: rgba(255,255,255,.6);
    letter-spacing: .03em;
}

/* 캡션 영역 */
#tg-326-wrapper .tg-326-story-viewer__caption {
    position: absolute;
    bottom: 48px;
    left: 0;
    right: 0;
    padding: 10px 14px;
    background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
    font-size: var(--fs-sm);
    color: rgba(255,255,255,.9);
    line-height: 1.6;
    text-align: left;
    z-index: 4;
}

/* 해시태그 버튼 */
#tg-326-wrapper .tg-326-caption-hashtag {
    color: var(--rose-300);
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    padding: 1px 3px;
    transition: background .15s, color .15s;
}

#tg-326-wrapper .tg-326-caption-hashtag:hover {
    background: rgba(244,63,94,.25);
    color: #fff;
}

/* 힌트 텍스트 */
#tg-326-wrapper .tg-326-story-hint {
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: var(--fs-xs);
    color: rgba(255,255,255,.38);
    z-index: 4;
    padding: 0 14px;
    animation: tg326Blink 2.5s ease infinite;
}

@keyframes tg326Blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: .4; }
}

/* 내비게이션 */
#tg-326-wrapper .tg-326-story-viewer__nav {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 3;
    pointer-events: none;
}

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

#tg-326-wrapper .tg-326-story-nav-btn:hover { color: #fff; }

/* 해시태그 그리드 결과 */
#tg-326-wrapper .tg-326-hashtag-result {
    background: #111;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    animation: tg326FadeIn .3s ease;
}

#tg-326-wrapper .tg-326-hashtag-result__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(244,63,94,.15);
    border-bottom: 1px solid rgba(244,63,94,.2);
}

#tg-326-wrapper .tg-326-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-326-wrapper .tg-326-back-btn:hover { background: rgba(255,255,255,.2); }

#tg-326-wrapper .tg-326-hashtag-result__tag-name {
    flex: 1;
    font-size: var(--fs-base);
    font-weight: 800;
    color: var(--rose-300);
    letter-spacing: -.01em;
}

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

#tg-326-wrapper .tg-326-hashtag-result__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    flex: 1;
    overflow-y: auto;
    max-height: 340px;
}

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

#tg-326-wrapper .tg-326-grid-thumb:hover {
    filter: brightness(1.15);
    transform: scale(1.04);
    z-index: 1;
    box-shadow: 0 4px 16px rgba(244,63,94,.35);
}

#tg-326-wrapper .tg-326-grid-thumb__label {
    font-size: .6rem;
    color: rgba(255,255,255,.55);
    font-weight: 600;
}

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

/* 안내 패널 */
#tg-326-wrapper .tg-326-guide-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-326-wrapper .tg-326-guide-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-326-wrapper .tg-326-guide-panel__label .material-symbols-outlined { font-size: 1.1rem; }

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

#tg-326-wrapper .tg-326-guide-idle__icon {
    font-size: 2.6rem;
    color: var(--rose-500);
}

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

#tg-326-wrapper .tg-326-guide-idle__title {
    font-size: var(--fs-lg);
    font-weight: 800;
    color: var(--slate-700);
    letter-spacing: -.01em;
}

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

#tg-326-wrapper .tg-326-guide-idle__tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

#tg-326-wrapper .tg-326-guide-sample-tag {
    font-size: var(--fs-xs);
    background: rgba(244,63,94,.08);
    border: 1px solid rgba(244,63,94,.2);
    color: var(--rose-600);
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 700;
}

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

#tg-326-wrapper .tg-326-guide-active__icon {
    font-size: 2.6rem;
    color: var(--rose-500);
}

#tg-326-wrapper .tg-326-guide-active__icon .material-symbols-outlined { font-size: 2.6rem; }

#tg-326-wrapper .tg-326-guide-active__tag {
    font-size: var(--fs-xl);
    font-weight: 900;
    color: var(--rose-600);
    letter-spacing: -.02em;
}

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

#tg-326-wrapper .tg-326-guide-active__stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--rose-600);
    background: rgba(244,63,94,.07);
    border: 1px solid rgba(244,63,94,.18);
    padding: 8px 18px;
    border-radius: 999px;
}

#tg-326-wrapper .tg-326-guide-active__stat .material-symbols-outlined { font-size: 1.1rem; }

#tg-326-wrapper .tg-326-guide-active__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-326-wrapper .tg-326-guide-active__back-btn:hover { background: var(--slate-200); }
#tg-326-wrapper .tg-326-guide-active__back-btn .material-symbols-outlined { font-size: 1rem; }

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

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

#tg-326-wrapper .tg-326-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-326-wrapper .tg-326-tab-btn .material-symbols-outlined { font-size: 1.1rem; }

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

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

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

#tg-326-wrapper .tg-326-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-326-wrapper .tg-326-tab-panel__icon--pc      { background: linear-gradient(135deg, var(--slate-700), var(--slate-900)); }
#tg-326-wrapper .tg-326-tab-panel__icon--android { background: linear-gradient(135deg, #3ddc84, #00ac47); }
#tg-326-wrapper .tg-326-tab-panel__icon--ios     { background: linear-gradient(135deg, #888, #222); }

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

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

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

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

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

/* 팁 박스 */
#tg-326-wrapper .tg-326-tip-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(244,63,94,.05);
    border: 1px solid rgba(244,63,94,.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-326-wrapper .tg-326-tip-box .material-symbols-outlined {
    font-size: 1.4rem;
    color: var(--rose-500);
    flex-shrink: 0;
    margin-top: 2px;
}

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

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

#tg-326-wrapper .tg-326-accordion__item.is-open {
    border-color: var(--rose-400);
    box-shadow: 0 2px 16px rgba(244,63,94,.12);
}

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

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

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

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

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

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

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

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

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

/* ═════════════════════════════════════════
   결론 요약
═════════════════════════════════════════ */
#tg-326-wrapper .tg-326-summary {
    background: linear-gradient(135deg, #1a0510 0%, #2d0a1a 35%, #4a1028 65%, #6b1a3a 100%);
    border-radius: var(--radius-md);
    padding: 48px 36px;
    color: #fff;
}

#tg-326-wrapper .tg-326-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-326-wrapper .tg-326-summary__title .material-symbols-outlined {
    font-size: 1.6rem;
    color: var(--rose-400);
}

#tg-326-wrapper .tg-326-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-326-wrapper .tg-326-summary__checklist {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 36px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

#tg-326-wrapper .tg-326-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-326-wrapper .tg-326-summary__checklist li .material-symbols-outlined {
    font-size: 1.1rem;
    color: var(--rose-400);
    margin-top: 3px;
    flex-shrink: 0;
}

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

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

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

#tg-326-wrapper .tg-326-footer__btn:hover {
    box-shadow: 0 8px 32px rgba(244,63,94,.55);
    transform: translateY(-3px);
}

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

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

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

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

    #tg-326-wrapper .tg-326-story-viewer {
        flex: 0 0 220px;
        max-height: 460px;
    }

    #tg-326-wrapper .tg-326-hashtag-result {
        flex: 0 0 220px;
        max-height: 460px;
    }

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

@media (min-width: 900px) {
    #tg-326-wrapper .tg-326-section { padding: 48px 44px; }
    #tg-326-wrapper .tg-326-story-viewer { flex: 0 0 260px; }
    #tg-326-wrapper .tg-326-hashtag-result { flex: 0 0 260px; }
    #tg-326-wrapper .tg-326-summary { padding: 60px 56px; }
}
