/*
 * tips331/style.css  v1.0.0
 * 텔레그램 미니 앱→스토리 공유 가이드 전용 스타일
 * 테마: 스카이 블루·코랄 핑크 (창작·공유·소셜 에너지)
 * 그누보드5 완전 격리 | BEM | 모바일 퍼스트
 */

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

#tg-331-wrapper strong {
    color: inherit;
    font-weight: 700;
}

#tg-331-wrapper p {
    margin-bottom: 16px !important;
    line-height: 1.85 !important;
}

#tg-331-wrapper p:last-child {
    margin-bottom: 0 !important;
}

#tg-331-wrapper button {
    cursor: pointer;
}

/* ─────────────────────────────────────────
   디자인 토큰
───────────────────────────────────────── */
#tg-331-wrapper {
    /* 스카이 블루 */
    --sk-300: #7dd3fc;
    --sk-400: #38bdf8;
    --sk-500: #0ea5e9;
    --sk-600: #0284c7;
    --sk-700: #0369a1;
    /* 코랄/로즈 */
    --co-300: #fda4af;
    --co-400: #fb7185;
    --co-500: #f43f5e;
    --co-600: #e11d48;
    /* 라임 강조 */
    --li-400: #a3e635;
    --li-500: #84cc16;
    /* 슬레이트 */
    --sl-50: #f8fafc;
    --sl-100: #f1f5f9;
    --sl-200: #e2e8f0;
    --sl-300: #cbd5e1;
    --sl-400: #94a3b8;
    --sl-500: #64748b;
    --sl-600: #475569;
    --sl-700: #334155;
    --sl-800: #1e293b;
    --sl-900: #0f172a;
    --text-main: #1e293b;
    --text-sub: #475569;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, .08);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, .13);
    /* 폰트 크기 */
    --fs-xs: .8rem;
    --fs-sm: .9rem;
    --fs-base: 1rem;
    --fs-lg: 1.2rem;

    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-331-wrapper .material-symbols-outlined {
    font-size: inherit;
    vertical-align: middle;
    line-height: 1;
}

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

#tg-331-wrapper .tg-331-motion.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═════════════════════════════════════════
   HERO
═════════════════════════════════════════ */
#tg-331-wrapper .tg-331-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 56px 32px 64px;
    background: linear-gradient(135deg, #000d1a 0%, #001a2e 30%, #003056 60%, #005080 100%);
    text-align: center;
    margin-bottom: 32px;
}

#tg-331-wrapper .tg-331-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 45% at 25% 35%, rgba(14, 165, 233, .28) 0%, transparent 60%),
        radial-gradient(ellipse 45% 40% at 75% 65%, rgba(244, 63, 94, .2) 0%, transparent 55%),
        radial-gradient(ellipse 35% 30% at 55% 15%, rgba(163, 230, 53, .12) 0%, transparent 50%);
    pointer-events: none;
}

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

/* 앱 → 스토리 플로우 */
#tg-331-wrapper .tg-331-hero__flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}

#tg-331-wrapper .tg-331-flow-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, .7);
    min-width: 80px;
    animation: tg331Float 3s ease infinite;
}

#tg-331-wrapper .tg-331-flow-card--app {
    border-color: rgba(14, 165, 233, .4);
    background: rgba(14, 165, 233, .12);
    color: var(--sk-300);
}

#tg-331-wrapper .tg-331-flow-card--story {
    border-color: rgba(244, 63, 94, .4);
    background: rgba(244, 63, 94, .12);
    color: var(--co-300);
    animation-delay: .3s;
}

#tg-331-wrapper .tg-331-flow-card__label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .05em;
}

@keyframes tg331Float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

/* 플로우 화살표 */
#tg-331-wrapper .tg-331-flow-arrow {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, .3);
    position: relative;
}

#tg-331-wrapper .tg-331-flow-arrow__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sk-400);
    animation: tg331DotFlow 1.2s ease infinite;
    opacity: 0;
}

#tg-331-wrapper .tg-331-flow-arrow__dot--2 {
    animation-delay: .3s;
}

#tg-331-wrapper .tg-331-flow-arrow__dot--3 {
    animation-delay: .6s;
}

@keyframes tg331DotFlow {
    0% {
        opacity: 0;
        transform: translateX(-4px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(4px);
    }
}

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

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

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

/* 3단계 스텝 */
#tg-331-wrapper .tg-331-hero__steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

#tg-331-wrapper .tg-331-hero__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

#tg-331-wrapper .tg-331-hero__step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sk-500), var(--sk-700));
    color: #fff;
    font-size: .9rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 14px rgba(14, 165, 233, .35);
}

#tg-331-wrapper .tg-331-hero__step-label {
    font-size: .78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .6);
}

#tg-331-wrapper .tg-331-hero__step-line {
    width: 36px;
    height: 2px;
    background: linear-gradient(90deg, var(--sk-500), var(--co-400));
    margin-bottom: 20px;
    opacity: .45;
}

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

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

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

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

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

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

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

/* 레이블 */
#tg-331-wrapper .tg-331-section__label {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--sl-100);
    border: 1px solid var(--sl-200);
    color: var(--sl-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-331-wrapper .tg-331-section__label--sim {
    background: rgba(14, 165, 233, .08);
    border-color: rgba(14, 165, 233, .25);
    color: var(--sk-700);
}

#tg-331-wrapper .tg-331-section__label--guide {
    background: rgba(244, 63, 94, .07);
    border-color: rgba(244, 63, 94, .2);
    color: var(--co-600);
}

#tg-331-wrapper .tg-331-section__label--tips {
    background: rgba(132, 204, 22, .1);
    border-color: rgba(132, 204, 22, .3);
    color: #3f6212;
}

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

/* 섹션 제목 */
#tg-331-wrapper .tg-331-section__title {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 900;
    color: var(--sl-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-331-wrapper .tg-331-section__title .material-symbols-outlined {
    font-size: 1.5rem;
    color: var(--sk-500);
}

#tg-331-wrapper .tg-331-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-331-wrapper .tg-331-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 10px;
}

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

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

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

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

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

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

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

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

/* 미니 앱 패널 */
#tg-331-wrapper .tg-331-miniapp {
    background: #0a0a1a;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 420px;
}

#tg-331-wrapper .tg-331-miniapp__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(14, 165, 233, .1);
    border-bottom: 1px solid rgba(14, 165, 233, .2);
    flex-shrink: 0;
}

#tg-331-wrapper .tg-331-miniapp__icon {
    font-size: 1.4rem;
    color: var(--sk-400);
}

#tg-331-wrapper .tg-331-miniapp__name {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: rgba(255, 255, 255, .85);
}

#tg-331-wrapper .tg-331-miniapp__sub {
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, .35);
}

#tg-331-wrapper .tg-331-miniapp__close {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, .3);
    margin-left: auto;
}

#tg-331-wrapper .tg-331-miniapp__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 프롬프트 선택 */
#tg-331-wrapper .tg-331-prompt-section {
    padding: 14px;
    flex: 1;
}

#tg-331-wrapper .tg-331-prompt-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-xs);
    font-weight: 700;
    color: rgba(255, 255, 255, .35);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 10px;
}

#tg-331-wrapper .tg-331-prompt-label .material-symbols-outlined {
    font-size: 1rem;
    color: var(--sk-400);
}

#tg-331-wrapper .tg-331-prompts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

#tg-331-wrapper .tg-331-prompt-btn {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    padding: 10px 10px;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: rgba(255, 255, 255, .65);
    text-align: left;
    line-height: 1.4;
    transition: background .15s, border-color .15s, transform .1s;
}

#tg-331-wrapper .tg-331-prompt-btn:hover {
    background: rgba(14, 165, 233, .14);
    border-color: rgba(14, 165, 233, .35);
    color: var(--sk-300);
    transform: scale(1.02);
}

/* 생성 중 */
#tg-331-wrapper .tg-331-generating {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px;
    animation: tg331FadeIn .3s ease;
}

#tg-331-wrapper .tg-331-generating__dots {
    display: flex;
    gap: 8px;
}

#tg-331-wrapper .tg-331-generating__dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sk-400);
    animation: tg331DotBounce .8s ease infinite;
}

#tg-331-wrapper .tg-331-generating__dots span:nth-child(2) {
    animation-delay: .15s;
    background: var(--co-400);
}

#tg-331-wrapper .tg-331-generating__dots span:nth-child(3) {
    animation-delay: .3s;
    background: var(--li-400);
}

@keyframes tg331DotBounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: .6;
    }

    50% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

#tg-331-wrapper .tg-331-generating__text {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: rgba(255, 255, 255, .5);
}

#tg-331-wrapper .tg-331-generating__prompt {
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, .28);
    text-align: center;
}

/* 결과 */
#tg-331-wrapper .tg-331-result {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px;
    animation: tg331FadeIn .35s ease;
}

#tg-331-wrapper .tg-331-result__canvas {
    width: 100%;
    flex: 1;
    min-height: 140px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .08);
    position: relative;
    overflow: hidden;
}

#tg-331-wrapper .tg-331-result__emoji {
    font-size: 4.5rem;
}

#tg-331-wrapper .tg-331-result__label {
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, .2);
    font-weight: 600;
    letter-spacing: .06em;
}

#tg-331-wrapper .tg-331-result__prompt {
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, .35);
    text-align: center;
    line-height: 1.6;
}

#tg-331-wrapper .tg-331-result__actions {
    display: flex;
    gap: 8px;
    width: 100%;
}

#tg-331-wrapper .tg-331-regen-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    font-size: var(--fs-sm);
    font-weight: 700;
    color: rgba(255, 255, 255, .5);
    transition: background .15s;
}

#tg-331-wrapper .tg-331-regen-btn:hover {
    background: rgba(255, 255, 255, .14);
}

#tg-331-wrapper .tg-331-regen-btn .material-symbols-outlined {
    font-size: 1rem;
}

#tg-331-wrapper .tg-331-share-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--co-400), var(--co-600));
    font-size: var(--fs-sm);
    font-weight: 800;
    color: #fff;
    box-shadow: 0 3px 16px rgba(244, 63, 94, .35);
    transition: box-shadow .2s, transform .15s;
    animation: tg331SharePulse 2.5s ease infinite;
}

#tg-331-wrapper .tg-331-share-btn:hover {
    box-shadow: 0 5px 24px rgba(244, 63, 94, .55);
    transform: translateY(-2px);
}

#tg-331-wrapper .tg-331-share-btn .material-symbols-outlined {
    font-size: 1rem;
}

@keyframes tg331SharePulse {

    0%,
    100% {
        box-shadow: 0 3px 16px rgba(244, 63, 94, .35);
    }

    50% {
        box-shadow: 0 3px 28px rgba(244, 63, 94, .6);
    }
}

/* 스토리 에디터 */
#tg-331-wrapper .tg-331-story-editor {
    background: #0a0a1a;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 420px;
    animation: tg331FadeIn .3s ease;
}

#tg-331-wrapper .tg-331-editor__topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(244, 63, 94, .1);
    border-bottom: 1px solid rgba(244, 63, 94, .2);
    flex-shrink: 0;
}

#tg-331-wrapper .tg-331-editor__back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .08);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .5);
    transition: background .15s;
}

#tg-331-wrapper .tg-331-editor__back:hover {
    background: rgba(255, 255, 255, .15);
}

#tg-331-wrapper .tg-331-editor__title {
    flex: 1;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: rgba(255, 255, 255, .8);
}

#tg-331-wrapper .tg-331-post-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, var(--co-400), var(--co-600));
    color: #fff;
    font-size: var(--fs-sm);
    font-weight: 800;
    padding: 8px 14px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(244, 63, 94, .35);
    transition: box-shadow .2s, transform .15s;
}

#tg-331-wrapper .tg-331-post-btn:hover {
    box-shadow: 0 4px 20px rgba(244, 63, 94, .55);
    transform: translateY(-2px);
}

#tg-331-wrapper .tg-331-post-btn .material-symbols-outlined {
    font-size: 1rem;
}

/* 에디터 캔버스 */
#tg-331-wrapper .tg-331-editor__canvas {
    flex: 1;
    position: relative;
    overflow: hidden;
}

#tg-331-wrapper .tg-331-editor__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 5rem;
}

#tg-331-wrapper .tg-331-sticker-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

#tg-331-wrapper .tg-331-story-sticker {
    position: absolute;
    font-size: 2.2rem;
    animation: tg331StickerIn .25s ease;
    pointer-events: none;
}

@keyframes tg331StickerIn {
    from {
        transform: scale(0) rotate(-20deg);
        opacity: 0;
    }

    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* 스티커 툴바 */
#tg-331-wrapper .tg-331-editor__tools {
    padding: 10px 12px;
    background: rgba(0, 0, 0, .4);
    border-top: 1px solid rgba(255, 255, 255, .07);
    flex-shrink: 0;
}

#tg-331-wrapper .tg-331-tools-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: var(--fs-xs);
    font-weight: 700;
    color: rgba(255, 255, 255, .3);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 6px;
}

#tg-331-wrapper .tg-331-tools-label .material-symbols-outlined {
    font-size: .95rem;
    color: var(--co-400);
}

#tg-331-wrapper .tg-331-sticker-btns {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
}

#tg-331-wrapper .tg-331-sticker-pick {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .08);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, transform .1s;
}

#tg-331-wrapper .tg-331-sticker-pick:hover {
    background: rgba(255, 255, 255, .18);
    transform: scale(1.15);
}

#tg-331-wrapper .tg-331-tools-hint {
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, .2);
    animation: tg331Blink 2.5s ease infinite;
}

/* 게시 완료 */
#tg-331-wrapper .tg-331-posted {
    background: #0a0a1a;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex: 1;
    min-height: 420px;
    padding: 24px;
    animation: tg331FadeIn .4s ease;
    text-align: center;
}

#tg-331-wrapper .tg-331-posted__icon {
    font-size: 3.5rem;
    color: #4ade80;
}

#tg-331-wrapper .tg-331-posted__icon .material-symbols-outlined {
    font-size: 3.5rem;
}

#tg-331-wrapper .tg-331-posted__title {
    font-size: var(--fs-xl);
    font-weight: 900;
    color: #fff;
    letter-spacing: -.02em;
}

#tg-331-wrapper .tg-331-posted__preview {
    font-size: 4rem;
    border-radius: 14px;
    border: 2px solid rgba(74, 222, 128, .3);
    padding: 18px 28px;
    background: rgba(74, 222, 128, .05);
}

#tg-331-wrapper .tg-331-posted__retry {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .6);
    font-size: var(--fs-sm);
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    margin-top: 6px;
    transition: background .15s;
}

#tg-331-wrapper .tg-331-posted__retry:hover {
    background: rgba(255, 255, 255, .14);
}

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

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

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

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

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

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

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

#tg-331-wrapper .tg-331-guide-idle__title {
    font-size: var(--fs-lg);
    font-weight: 800;
    color: var(--sl-700);
}

#tg-331-wrapper .tg-331-guide-idle__desc {
    font-size: var(--fs-sm);
    color: var(--sl-400);
    line-height: 1.75;
}

#tg-331-wrapper .tg-331-guide-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    width: 100%;
    max-width: 220px;
}

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

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

/* 생성 중 */
#tg-331-wrapper .tg-331-guide-generating {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
    animation: tg331FadeIn .35s ease;
}

#tg-331-wrapper .tg-331-guide-generating__icon {
    font-size: 2.4rem;
    color: var(--sk-500);
}

#tg-331-wrapper .tg-331-guide-generating__icon .material-symbols-outlined {
    font-size: 2.4rem;
}

#tg-331-wrapper .tg-331-guide-generating__title {
    font-size: var(--fs-lg);
    font-weight: 800;
    color: var(--sl-700);
}

#tg-331-wrapper .tg-331-guide-generating__hint {
    font-size: var(--fs-sm);
    color: var(--sl-400);
}

#tg-331-wrapper .tg-331-guide-bar {
    width: 100%;
    max-width: 180px;
    height: 6px;
    background: var(--sl-200);
    border-radius: 999px;
    overflow: hidden;
}

#tg-331-wrapper .tg-331-guide-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--sk-500), var(--co-400));
    border-radius: 999px;
    width: 0%;
    transition: width .1s linear;
}

/* 이미지 완성 */
#tg-331-wrapper .tg-331-guide-ready {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    animation: tg331FadeIn .35s ease;
}

#tg-331-wrapper .tg-331-guide-ready__icon {
    font-size: 3rem;
}

#tg-331-wrapper .tg-331-guide-ready__title {
    font-size: var(--fs-lg);
    font-weight: 800;
    color: var(--sl-700);
}

#tg-331-wrapper .tg-331-guide-tips {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 220px;
}

#tg-331-wrapper .tg-331-guide-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-sm);
    color: var(--sl-600);
    background: var(--sl-100);
    border: 1px solid var(--sl-200);
    border-radius: 8px;
    padding: 8px 12px;
}

#tg-331-wrapper .tg-331-guide-tip .material-symbols-outlined {
    font-size: 1rem;
    color: var(--co-500);
    flex-shrink: 0;
}

/* 에디터 안내 */
#tg-331-wrapper .tg-331-guide-editor {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    animation: tg331FadeIn .35s ease;
}

#tg-331-wrapper .tg-331-guide-editor__icon {
    font-size: 2.4rem;
    color: var(--co-500);
}

#tg-331-wrapper .tg-331-guide-editor__icon .material-symbols-outlined {
    font-size: 2.4rem;
}

#tg-331-wrapper .tg-331-guide-editor__title {
    font-size: var(--fs-lg);
    font-weight: 800;
    color: var(--sl-700);
}

#tg-331-wrapper .tg-331-guide-sticker-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-sm);
    color: var(--sl-500);
    background: rgba(244, 63, 94, .07);
    border: 1px solid rgba(244, 63, 94, .18);
    padding: 8px 16px;
    border-radius: 999px;
}

#tg-331-wrapper .tg-331-guide-sticker-count .material-symbols-outlined {
    font-size: 1rem;
    color: var(--co-500);
}

#tg-331-wrapper #tg331-sticker-count {
    color: var(--co-600);
}

#tg-331-wrapper .tg-331-guide-editor__hint {
    font-size: var(--fs-sm);
    color: var(--sl-400);
    line-height: 1.7;
}

/* 완료 */
#tg-331-wrapper .tg-331-guide-done {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    animation: tg331FadeIn .35s ease;
}

#tg-331-wrapper .tg-331-guide-done__icon {
    font-size: 2.6rem;
    color: #16a34a;
}

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

#tg-331-wrapper .tg-331-guide-done__title {
    font-size: var(--fs-lg);
    font-weight: 800;
    color: var(--sl-700);
}

#tg-331-wrapper .tg-331-guide-done__hint {
    font-size: var(--fs-sm);
    color: var(--sl-400);
    line-height: 1.7;
}

/* 공통 애니메이션 */
@keyframes tg331FadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tg331Blink {

    0%,
    100% {
        opacity: .7;
    }

    50% {
        opacity: .25;
    }
}

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

#tg-331-wrapper .tg-331-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(--sl-500);
    transition: background .2s, color .2s, box-shadow .2s;
}

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

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

#tg-331-wrapper .tg-331-tab-panel {
    display: none;
    animation: tg331FadeIn .3s ease;
}

#tg-331-wrapper .tg-331-tab-panel--active {
    display: block;
}

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

#tg-331-wrapper .tg-331-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-331-wrapper .tg-331-tab-panel__icon--pc {
    background: linear-gradient(135deg, var(--sl-700), var(--sl-900));
}

#tg-331-wrapper .tg-331-tab-panel__icon--android {
    background: linear-gradient(135deg, #3ddc84, #00ac47);
}

#tg-331-wrapper .tg-331-tab-panel__icon--ios {
    background: linear-gradient(135deg, #888, #222);
}

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

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

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

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

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

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

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

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

#tg-331-wrapper .tg-331-accordion__item.is-open {
    border-color: var(--sk-400);
    box-shadow: 0 2px 16px rgba(14, 165, 233, .12);
}

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

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

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

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

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

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

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

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

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

/* ═════════════════════════════════════════
   결론 요약
═════════════════════════════════════════ */
#tg-331-wrapper .tg-331-summary {
    background: linear-gradient(135deg, #000d1a 0%, #001a2e 30%, #003056 60%, #005080 100%);
    border-radius: var(--radius-md);
    padding: 48px 36px;
    color: #fff;
}

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

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

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

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

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

#tg-331-wrapper .tg-331-footer__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--sk-500), var(--sk-700));
    color: #fff;
    font-size: var(--fs-base);
    font-weight: 800;
    padding: 15px 32px;
    border-radius: 999px;
    box-shadow: 0 4px 24px rgba(14, 165, 233, .4);
    transition: box-shadow .28s, transform .22s;
}

#tg-331-wrapper .tg-331-footer__btn:hover {
    box-shadow: 0 8px 32px rgba(14, 165, 233, .6);
    transform: translateY(-3px);
}

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

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

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

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

    #tg-331-wrapper .tg-331-miniapp {
        flex: 0 0 240px;
        min-height: 470px;
    }

    #tg-331-wrapper .tg-331-story-editor {
        flex: 0 0 240px;
        min-height: 470px;
    }

    #tg-331-wrapper .tg-331-posted {
        flex: 0 0 240px;
        min-height: 470px;
    }

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

@media (min-width: 900px) {
    #tg-331-wrapper .tg-331-section {
        padding: 48px 44px;
    }

    #tg-331-wrapper .tg-331-miniapp {
        flex: 0 0 280px;
    }

    #tg-331-wrapper .tg-331-story-editor {
        flex: 0 0 280px;
    }

    #tg-331-wrapper .tg-331-posted {
        flex: 0 0 280px;
    }

    #tg-331-wrapper .tg-331-summary {
        padding: 60px 56px;
    }
}