/*
 * tips332/style.css  v1.0.0
 * 텔레그램 Stars 선물 가이드 전용 스타일
 * 테마: 골드·로즈·인디고 (선물·별·특별함)
 * 그누보드5 완전 격리 | BEM | 모바일 퍼스트
 */

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

#tg-332-wrapper strong { color: inherit; font-weight: 700; }
#tg-332-wrapper p { margin-bottom: 16px !important; line-height: 1.85 !important; }
#tg-332-wrapper p:last-child { margin-bottom: 0 !important; }
#tg-332-wrapper button { cursor: pointer; }
#tg-332-wrapper a { color: inherit; }

/* ─── 디자인 토큰 ─── */
#tg-332-wrapper {
    /* 골드 */
    --go-300: #fcd34d;
    --go-400: #fbbf24;
    --go-500: #f59e0b;
    --go-600: #d97706;
    --go-700: #b45309;
    /* 로즈 */
    --ro-300: #fda4af;
    --ro-400: #fb7185;
    --ro-500: #f43f5e;
    --ro-600: #e11d48;
    /* 인디고 */
    --in-400: #818cf8;
    --in-500: #6366f1;
    --in-600: #4f46e5;
    /* 슬레이트 */
    --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%;
}

/* Material Symbols 공통 */
#tg-332-wrapper .material-symbols-outlined {
    font-family: 'Material Symbols Outlined', sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: inherit;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
}

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

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

/* ═════════════════════════════════════════
   히어로
═════════════════════════════════════════ */
#tg-332-wrapper .tg-332-hero {
    position: relative;
    background: linear-gradient(135deg, #0a0510 0%, #130820 40%, #1a0c30 70%, #0d0618 100%);
    border-radius: var(--radius-lg);
    padding: 56px 32px 64px;
    text-align: center;
    overflow: hidden;
    margin-bottom: 0;
}

#tg-332-wrapper .tg-332-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 40% at 20% 30%, rgba(245,158,11,.22) 0%, transparent 60%),
        radial-gradient(ellipse 45% 35% at 80% 60%, rgba(139,92,246,.18) 0%, transparent 55%),
        radial-gradient(ellipse 35% 28% at 55% 15%, rgba(251,191,36,.1) 0%, transparent 50%);
    pointer-events: none;
}

/* 별 파티클 */
#tg-332-wrapper .tg-332-hero__star {
    position: absolute;
    font-size: 1.4rem;
    opacity: .6;
    animation: tg332StarFloat 5s ease infinite;
    pointer-events: none;
}

#tg-332-wrapper .tg-332-hero__star--1 { top: 12%; left: 8%;  animation-delay: 0s;    animation-duration: 4s; }
#tg-332-wrapper .tg-332-hero__star--2 { top: 25%; right: 10%; animation-delay: .8s;  animation-duration: 5.5s; }
#tg-332-wrapper .tg-332-hero__star--3 { top: 65%; left: 14%; animation-delay: 1.5s; animation-duration: 4.5s; }
#tg-332-wrapper .tg-332-hero__star--4 { top: 80%; right: 18%; animation-delay: 2s;  animation-duration: 6s; }
#tg-332-wrapper .tg-332-hero__star--5 { top: 45%; left: 80%; animation-delay: .4s;  animation-duration: 5s; }

@keyframes tg332StarFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: .6; }
    50%       { transform: translateY(-12px) rotate(15deg); opacity: 1; }
}

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

#tg-332-wrapper .tg-332-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245,158,11,.15);
    border: 1px solid rgba(245,158,11,.35);
    color: var(--go-300);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 20px !important;
}

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

#tg-332-wrapper .tg-332-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-332-wrapper .tg-332-hero__title em {
    font-style: normal;
    background: linear-gradient(90deg, var(--go-300), var(--go-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#tg-332-wrapper .tg-332-hero__subtitle {
    color: rgba(255,255,255,.65);
    line-height: 1.8;
    margin-bottom: 28px !important;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* 히어로 스텝 */
#tg-332-wrapper .tg-332-hero__steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

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

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

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

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

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

/* 도입부 */
#tg-332-wrapper .tg-332-intro {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid rgba(245,158,11,.25);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    text-align: center;
}

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

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

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

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

#tg-332-wrapper .tg-332-section--dark {
    background: #06030e;
    border-color: rgba(245,158,11,.18);
}

/* 레이블 */
#tg-332-wrapper .tg-332-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-332-wrapper .tg-332-section__label--sim {
    background: rgba(245,158,11,.1);
    border-color: rgba(245,158,11,.3);
    color: var(--go-700);
}

#tg-332-wrapper .tg-332-section__label--guide {
    background: rgba(99,102,241,.08);
    border-color: rgba(99,102,241,.22);
    color: var(--in-600);
}

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

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

/* 섹션 제목 */
#tg-332-wrapper .tg-332-section__title {
    font-size: clamp(1.2rem, 3vw, 1.55rem);
    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-332-wrapper .tg-332-section__title--light { color: #fff; }

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

#tg-332-wrapper .tg-332-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-332-wrapper .tg-332-section__desc--light {
    color: rgba(255,255,255,.6);
    text-align: center;
    line-height: 1.85;
    margin-bottom: 28px !important;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

#tg-332-wrapper .tg-332-card__icon--rose   { background: linear-gradient(135deg, var(--ro-400), var(--ro-600)); }
#tg-332-wrapper .tg-332-card__icon--indigo { background: linear-gradient(135deg, var(--in-400), var(--in-600)); }

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

#tg-332-wrapper .tg-332-card__desc {
    font-size: var(--fs-base);
    color: var(--text-sub);
    line-height: 1.8;
    word-break: keep-all;
}

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

/* 폰 패널 */
#tg-332-wrapper .tg-332-phone {
    background: #100718;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    min-height: 440px;
}

#tg-332-wrapper .tg-332-phone__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(245,158,11,.1);
    border-bottom: 1px solid rgba(245,158,11,.2);
    flex-shrink: 0;
}

#tg-332-wrapper .tg-332-phone__back {
    font-size: 1.3rem;
    color: rgba(255,255,255,.4);
}

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

#tg-332-wrapper .tg-332-phone__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* 화면 공통 */
#tg-332-wrapper .tg-332-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    animation: tg332FadeIn .3s ease;
}

#tg-332-wrapper .tg-332-screen--center {
    align-items: center;
    justify-content: center;
}

/* 화면 1: 설정 */
#tg-332-wrapper .tg-332-settings-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    cursor: pointer;
    transition: background .2s;
    margin-bottom: 12px;
}

#tg-332-wrapper .tg-332-settings-row:hover,
#tg-332-wrapper .tg-332-settings-row:focus {
    background: rgba(245,158,11,.12);
    border-color: rgba(245,158,11,.3);
}

#tg-332-wrapper .tg-332-settings-row__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

#tg-332-wrapper .tg-332-settings-row__icon--gold {
    background: linear-gradient(135deg, var(--go-400), var(--go-600));
    color: #fff;
}

#tg-332-wrapper .tg-332-settings-row__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

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

#tg-332-wrapper .tg-332-settings-row__sub {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,.4);
}

#tg-332-wrapper .tg-332-settings-row__arrow {
    font-size: 1.2rem;
    color: rgba(255,255,255,.25);
}

#tg-332-wrapper .tg-332-settings-hint {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,.25);
    text-align: center;
    animation: tg332Blink 2s ease infinite;
}

/* 화면 2: 내 별 잔액 */
#tg-332-wrapper .tg-332-stars-balance {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px 0;
}

#tg-332-wrapper .tg-332-stars-balance__icon {
    font-size: 3.5rem;
    margin-bottom: 8px;
    animation: tg332StarFloat 3s ease infinite;
}

#tg-332-wrapper .tg-332-stars-balance__count {
    font-size: 3rem;
    font-weight: 900;
    color: var(--go-400);
    line-height: 1;
    margin-bottom: 6px;
}

#tg-332-wrapper .tg-332-stars-balance__label {
    font-size: var(--fs-sm);
    color: rgba(255,255,255,.4);
}

#tg-332-wrapper .tg-332-gift-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--go-500), var(--go-700));
    color: #fff;
    font-size: var(--fs-sm);
    font-weight: 800;
    box-shadow: 0 4px 20px rgba(245,158,11,.4);
    transition: box-shadow .2s, transform .15s;
    animation: tg332GiftPulse 2.5s ease infinite;
}

#tg-332-wrapper .tg-332-gift-btn:hover {
    box-shadow: 0 6px 28px rgba(245,158,11,.6);
    transform: translateY(-2px);
}

@keyframes tg332GiftPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(245,158,11,.4); }
    50%       { box-shadow: 0 4px 32px rgba(245,158,11,.65); }
}

/* 화면 3: 연락처 */
#tg-332-wrapper .tg-332-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 10px;
}

#tg-332-wrapper .tg-332-search__icon { font-size: 1.1rem; color: rgba(255,255,255,.3); }
#tg-332-wrapper .tg-332-search__placeholder { font-size: var(--fs-sm); color: rgba(255,255,255,.25); }

#tg-332-wrapper .tg-332-contacts { display: flex; flex-direction: column; gap: 4px; }

#tg-332-wrapper .tg-332-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s;
}

#tg-332-wrapper .tg-332-contact:hover,
#tg-332-wrapper .tg-332-contact:focus {
    background: rgba(255,255,255,.07);
}

#tg-332-wrapper .tg-332-contact--birthday {
    background: rgba(245,158,11,.1);
    border: 1px solid rgba(245,158,11,.25);
}

#tg-332-wrapper .tg-332-contact--birthday:hover,
#tg-332-wrapper .tg-332-contact--birthday:focus {
    background: rgba(245,158,11,.18);
}

#tg-332-wrapper .tg-332-contact__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-sm);
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

#tg-332-wrapper .tg-332-contact__avatar--blue   { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
#tg-332-wrapper .tg-332-contact__avatar--rose   { background: linear-gradient(135deg, var(--ro-400), var(--ro-600)); }
#tg-332-wrapper .tg-332-contact__avatar--green  { background: linear-gradient(135deg, #22c55e, #16a34a); }

#tg-332-wrapper .tg-332-contact__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

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

#tg-332-wrapper .tg-332-contact__meta {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,.38);
}

#tg-332-wrapper .tg-332-contact__badge { font-size: 1.2rem; }
#tg-332-wrapper .tg-332-contact__arrow { font-size: 1.1rem; color: rgba(255,255,255,.2); }

/* 화면 4: 수량 선택 */
#tg-332-wrapper .tg-332-recipient {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--go-400);
    margin-bottom: 12px;
}

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

#tg-332-wrapper .tg-332-amount-label {
    font-size: var(--fs-xs);
    font-weight: 700;
    color: rgba(255,255,255,.3);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 10px !important;
}

#tg-332-wrapper .tg-332-amounts {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#tg-332-wrapper .tg-332-amount-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    position: relative;
}

#tg-332-wrapper .tg-332-amount-item:hover,
#tg-332-wrapper .tg-332-amount-item:focus {
    background: rgba(245,158,11,.14);
    border-color: rgba(245,158,11,.4);
}

#tg-332-wrapper .tg-332-amount-item--popular {
    background: rgba(245,158,11,.12);
    border-color: rgba(245,158,11,.35);
}

#tg-332-wrapper .tg-332-amount-item__popular {
    position: absolute;
    top: -7px;
    right: 10px;
    background: var(--go-500);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
}

#tg-332-wrapper .tg-332-amount-item__stars {
    flex: 1;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: rgba(255,255,255,.85);
}

#tg-332-wrapper .tg-332-amount-item__price {
    font-size: var(--fs-xs);
    color: var(--go-400);
    font-weight: 700;
}

/* 화면 5: 결제 처리 */
#tg-332-wrapper .tg-332-paying {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

#tg-332-wrapper .tg-332-paying__dots {
    display: flex;
    gap: 8px;
}

#tg-332-wrapper .tg-332-paying__dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--go-400);
    animation: tg332DotBounce .8s ease infinite;
}

#tg-332-wrapper .tg-332-paying__dots span:nth-child(2) { animation-delay: .15s; background: var(--ro-400); }
#tg-332-wrapper .tg-332-paying__dots span:nth-child(3) { animation-delay: .3s;  background: var(--in-400); }

@keyframes tg332DotBounce {
    0%, 100% { transform: translateY(0); opacity: .6; }
    50%       { transform: translateY(-8px); opacity: 1; }
}

#tg-332-wrapper .tg-332-paying__text {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: rgba(255,255,255,.45);
    margin-bottom: 0 !important;
}

/* 화면 6: 성공 */
#tg-332-wrapper .tg-332-success {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#tg-332-wrapper .tg-332-success__burst {
    font-size: 1.8rem;
    letter-spacing: .12em;
    animation: tg332Burst .6s ease;
}

@keyframes tg332Burst {
    0%   { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

#tg-332-wrapper .tg-332-success__icon {
    font-size: 3.2rem;
    color: #4ade80;
}

#tg-332-wrapper .tg-332-success__title {
    font-size: var(--fs-lg);
    font-weight: 900;
    color: #fff;
    margin-bottom: 0 !important;
}

#tg-332-wrapper .tg-332-success__sub {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,.4);
    margin-bottom: 0 !important;
}

#tg-332-wrapper .tg-332-retry-btn {
    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-332-wrapper .tg-332-retry-btn:hover { background: rgba(255,255,255,.15); }
#tg-332-wrapper .tg-332-retry-btn .material-symbols-outlined { font-size: 1rem; }

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

#tg-332-wrapper .tg-332-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-332-wrapper .tg-332-guide-panel__label .material-symbols-outlined { font-size: 1.1rem; }

#tg-332-wrapper .tg-332-guide {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    animation: tg332FadeIn .3s ease;
}

#tg-332-wrapper .tg-332-guide__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--go-500), var(--go-700));
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

#tg-332-wrapper .tg-332-guide__icon--success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

#tg-332-wrapper .tg-332-guide__title {
    font-size: var(--fs-lg);
    font-weight: 800;
    color: var(--sl-700);
    margin-bottom: 0 !important;
}

#tg-332-wrapper .tg-332-guide__desc {
    font-size: var(--fs-sm);
    color: var(--sl-500);
    line-height: 1.7;
    max-width: 220px;
    margin-bottom: 0 !important;
}

#tg-332-wrapper .tg-332-guide__hint {
    font-size: var(--fs-xs);
    color: var(--sl-400);
    line-height: 1.6;
    max-width: 200px;
    margin-bottom: 0 !important;
}

#tg-332-wrapper .tg-332-guide__steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    width: 100%;
    max-width: 200px;
}

#tg-332-wrapper .tg-332-guide__steps li {
    font-size: var(--fs-xs);
    color: var(--sl-500);
    display: flex;
    align-items: center;
    gap: 8px;
}

#tg-332-wrapper .tg-332-guide__steps li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--go-500);
    flex-shrink: 0;
}

#tg-332-wrapper .tg-332-guide__bar-wrap {
    width: 100%;
    max-width: 180px;
    height: 6px;
    background: var(--sl-200);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 6px;
}

#tg-332-wrapper .tg-332-guide__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--go-500), var(--ro-400));
    border-radius: 999px;
    transition: width .5s ease;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#tg-332-wrapper .tg-332-accordion__item.is-open {
    border-color: var(--go-400);
    box-shadow: 0 2px 16px rgba(245,158,11,.14);
}

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

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

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

#tg-332-wrapper .tg-332-accordion__icon--rose {
    background: linear-gradient(135deg, var(--ro-400), var(--ro-600));
}

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

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

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

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

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

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

/* ═════════════════════════════════════════
   결론 섹션
═════════════════════════════════════════ */
#tg-332-wrapper .tg-332-summary {
    background: linear-gradient(135deg, #0d080018 0%, #1a0f0030 40%, #291200 100%),
                linear-gradient(135deg, #0f0a00 0%, #1c1000 40%, #2a1800 100%);
    background: linear-gradient(135deg, #0f0a00, #1c1200, #2a1a00);
    border-radius: var(--radius-md);
    padding: 48px 36px;
    color: #fff;
}

#tg-332-wrapper .tg-332-summary__title {
    font-size: clamp(1.2rem, 3vw, 1.55rem);
    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-332-wrapper .tg-332-summary__title .material-symbols-outlined {
    font-size: 1.6rem;
    color: var(--go-400);
}

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

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

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

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

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

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

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

#tg-332-wrapper .tg-332-footer__btn:hover {
    box-shadow: 0 8px 32px rgba(245,158,11,.65);
    transform: translateY(-3px);
}

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

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

@keyframes tg332Blink {
    0%, 100% { opacity: .7; } 50% { opacity: .25; }
}

/* ═════════════════════════════════════════
   반응형
═════════════════════════════════════════ */
@media (min-width: 640px) {
    #tg-332-wrapper .tg-332-hero { padding: 72px 56px 80px; }
    #tg-332-wrapper .tg-332-cards { grid-template-columns: repeat(3, 1fr); }
    #tg-332-wrapper .tg-332-sim { flex-direction: row; align-items: flex-start; }
    #tg-332-wrapper .tg-332-phone { flex: 0 0 260px; min-height: 480px; }
    #tg-332-wrapper .tg-332-guide-panel { flex: 1; min-height: 480px; }
}

@media (min-width: 900px) {
    #tg-332-wrapper .tg-332-section { padding: 48px 44px; }
    #tg-332-wrapper .tg-332-phone { flex: 0 0 300px; }
    #tg-332-wrapper .tg-332-summary { padding: 60px 56px; }
}
