/*
 * tips392/style.css  v1.0.0
 * 텔레그램 수집형 선물 프로필 색상 변경 가이드
 * 테마: 비비드 스칼렛 레드/크림슨 + 딥 다크 (프로필 커스터마이징·개성·색상·돋보이기)
 * 그누보드5 격리 | BEM | 모바일 퍼스트
 */

/* ─── 전체 리셋 ─── */
#tg-392-wrapper,
#tg-392-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-392-wrapper h1, #tg-392-wrapper h2 { font-size: inherit; font-weight: inherit; color: inherit; line-height: 1.35; }
#tg-392-wrapper strong { font-weight: 700; color: inherit; }
#tg-392-wrapper p { margin-bottom: 14px !important; line-height: 1.85 !important; }
#tg-392-wrapper p:last-child { margin-bottom: 0 !important; }
#tg-392-wrapper button { cursor: pointer; }
#tg-392-wrapper a { color: inherit; }
#tg-392-wrapper ol { list-style: none; }
#tg-392-wrapper em { font-style: italic; color: inherit; }

/* ─── 디자인 토큰 ─── */
#tg-392-wrapper {
    --red-100: #fee2e2;
    --red-300: #fca5a5;
    --red-400: #f87171;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --sky-400:  #38bdf8;
    --grn-400:  #4ade80;
    --dk-base:  #0d0000;
    --sl-50:    #f8fafc;
    --sl-100:   #f1f5f9;
    --sl-200:   #e2e8f0;
    --sl-400:   #94a3b8;
    --sl-500:   #64748b;
    --sl-800:   #1e293b;
    --sl-900:   #0f172a;
    --text-sub: #475569;
    /* 4가지 선물 테마 색상 */
    --theme-0-a: #047857; --theme-0-b: #10b981; /* 페페 에메랄드 */
    --theme-1-a: #9f1239; --theme-1-b: #f43f5e; /* 하트 로즈 */
    --theme-2-a: #92400e; --theme-2-b: #f59e0b; /* 모자 앰버 */
    --theme-3-a: #0369a1; --theme-3-b: #38bdf8; /* 다이아 스카이 */
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --shadow-sm:  0 4px 14px rgba(0,0,0,.06);
    --shadow-red: 0 6px 28px rgba(220,38,38,.32);
    --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(--sl-800); line-height: 1.7;
    max-width: 1100px; margin: 0 auto; width: 100%;
}

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

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

/* ═══════ 히어로 */
#tg-392-wrapper .tg-392-hero {
    position: relative; background: var(--dk-base);
    border-radius: var(--radius-lg); padding: 64px 28px 72px; text-align: center; overflow: hidden;
}
#tg-392-wrapper .tg-392-hero__bg {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 65% 52% at 28% 35%, rgba(220,38,38,.22) 0%, transparent 56%),
        radial-gradient(ellipse 50% 44% at 80% 68%, rgba(239,68,68,.12) 0%, transparent 52%);
}
#tg-392-wrapper .tg-392-hero__floats { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
#tg-392-wrapper .tg-392-float { position: absolute; font-size: 1.8rem; opacity: 0; animation: tg392Float ease-in-out infinite; }
#tg-392-wrapper .tg-392-float--1 { top:14%; left:4%;    animation-duration:5.5s; }
#tg-392-wrapper .tg-392-float--2 { top:22%; right:5%;   animation-duration:4.5s; animation-delay:-2s; font-size:1.3rem; }
#tg-392-wrapper .tg-392-float--3 { bottom:28%; left:6%; animation-duration:6s;   animation-delay:-1s; }
#tg-392-wrapper .tg-392-float--4 { bottom:20%; right:7%;animation-duration:5s;   animation-delay:-1.8s; font-size:1.3rem; }
@keyframes tg392Float { 0%,100%{opacity:0;transform:translateY(0) scale(.9);}50%{opacity:.52;transform:translateY(-14px) scale(1.12);} }
#tg-392-wrapper .tg-392-hero__inner { position:relative; z-index:1; max-width:700px; margin:0 auto; }
#tg-392-wrapper .tg-392-hero__badge { display:inline-flex; align-items:center; gap:6px; background:rgba(220,38,38,.18); border:1px solid rgba(248,113,113,.38); color:var(--red-300); font-size:.85rem; font-weight:700; padding:6px 18px; border-radius:999px; margin-bottom:22px !important; }
#tg-392-wrapper .tg-392-hero__title { font-size:clamp(1.65rem,4.2vw,2.3rem); font-weight:900; color:#fff; line-height:1.28; letter-spacing:-.02em; margin-bottom:16px; }
#tg-392-wrapper .tg-392-hero__title em { font-style:normal; color:var(--red-300); text-shadow:0 0 24px rgba(220,38,38,.6); }
#tg-392-wrapper .tg-392-hero__subtitle { color:rgba(255,255,255,.65); line-height:1.8; max-width:540px; margin:0 auto 28px !important; }
#tg-392-wrapper .tg-392-hero__chips { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; }
#tg-392-wrapper .tg-392-hero__chip { display:inline-flex; align-items:center; gap:6px; background:rgba(220,38,38,.12); border:1px solid rgba(248,113,113,.24); color:var(--red-300); font-size:.82rem; font-weight:800; padding:8px 16px; border-radius:999px; }
#tg-392-wrapper .tg-392-hero__chip--sky { background:rgba(56,189,248,.08); border-color:rgba(56,189,248,.22); color:var(--sky-400); }
#tg-392-wrapper .tg-392-hero__chip--grn { background:rgba(74,222,128,.08); border-color:rgba(74,222,128,.22); color:var(--grn-400); }

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

/* 도입부 */
#tg-392-wrapper .tg-392-intro { background:#fff; border:1px solid var(--sl-200); border-top:4px solid var(--red-600); border-radius:var(--radius-md); padding:36px 28px; text-align:center; box-shadow:var(--shadow-sm); }
#tg-392-wrapper .tg-392-intro__icon { font-size:2.4rem; color:var(--red-600); margin-bottom:14px; }
#tg-392-wrapper .tg-392-intro__title { font-size:clamp(1.05rem,2.8vw,1.3rem); font-weight:800; color:var(--sl-900); margin-bottom:14px; }
#tg-392-wrapper .tg-392-intro p { color:var(--text-sub); max-width:680px; margin-left:auto; margin-right:auto; }
/* 탭 소개 2개 */
#tg-392-wrapper .tg-392-tab-intro { display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap; margin-top:22px; }
#tg-392-wrapper .tg-392-intro-sep { font-size:1.1rem; font-weight:900; color:var(--sl-400); }
#tg-392-wrapper .tg-392-intro-tab { text-align:center; }
#tg-392-wrapper .tg-392-intro-tab__ico { width:52px; height:52px; border-radius:14px; background:rgba(220,38,38,.08); border:2px solid rgba(220,38,38,.18); display:flex; align-items:center; justify-content:center; font-size:1.4rem; color:var(--red-600); margin:0 auto 8px; }
#tg-392-wrapper .tg-392-intro-tab__ico--name { background:rgba(56,189,248,.08); border-color:rgba(56,189,248,.2); color:#0284c7; }
#tg-392-wrapper .tg-392-intro-tab__name { font-size:.82rem; font-weight:800; color:var(--sl-900); margin-bottom:3px !important; }
#tg-392-wrapper .tg-392-intro-tab__desc { font-size:.7rem; color:var(--sl-500); line-height:1.5; margin-bottom:0 !important; max-width:130px; }

/* 공통 섹션 */
#tg-392-wrapper .tg-392-section { background:#fff; border:1px solid var(--sl-200); border-radius:var(--radius-md); padding:44px 32px; box-shadow:var(--shadow-sm); text-align:center; }
#tg-392-wrapper .tg-392-section--dark { background:var(--dk-base); border-color:rgba(220,38,38,.1); }
#tg-392-wrapper .tg-392-section__label { display:inline-flex; align-items:center; gap:7px; font-size:.88rem; font-weight:700; padding:7px 20px; border-radius:999px; margin-bottom:22px; }
#tg-392-wrapper .tg-392-section__label--dark { background:rgba(255,255,255,.13); color:#fff; border:1px solid rgba(255,255,255,.24); }
#tg-392-wrapper .tg-392-section__label--red  { background:rgba(220,38,38,.08); color:var(--red-700); }
#tg-392-wrapper .tg-392-section__label .material-symbols-outlined { font-size:1rem; }
#tg-392-wrapper .tg-392-section__title--light { color:#fff; font-size:clamp(1.2rem,3vw,1.5rem); font-weight:900; letter-spacing:-.02em; margin-bottom:16px !important; text-align:center; line-height:1.35; padding:0 8px; }
#tg-392-wrapper .tg-392-section__title { font-size:clamp(1.2rem,3vw,1.5rem); font-weight:900; color:var(--sl-900); letter-spacing:-.02em; margin-bottom:16px; display:flex; align-items:center; justify-content:center; gap:10px; }
#tg-392-wrapper .tg-392-section > p { color:var(--text-sub); max-width:680px; margin-left:auto; margin-right:auto; }
#tg-392-wrapper .tg-392-section__desc--light { color:rgba(255,255,255,.8) !important; margin-bottom:28px !important; }

/* ═══════ 시뮬레이터 */
#tg-392-wrapper .tg-392-sim-wrap { max-width:380px; margin:0 auto; text-align:left; }

/* 적용 탭 선택 */
#tg-392-wrapper .tg-392-apply-tabs { display:flex; gap:4px; background:rgba(255,255,255,.06); border-radius:10px; padding:4px; margin-bottom:12px; }
#tg-392-wrapper .tg-392-apply-tab { flex:1; display:flex; align-items:center; justify-content:center; gap:6px; padding:9px; border-radius:7px; font-size:.78rem; font-weight:700; color:rgba(255,255,255,.4); transition:background .18s, color .18s; }
#tg-392-wrapper .tg-392-apply-tab .material-symbols-outlined { font-size:.9rem; }
#tg-392-wrapper .tg-392-apply-tab--active { background:rgba(220,38,38,.2); color:var(--red-300); }

/* 프로필 미리보기 */
#tg-392-wrapper .tg-392-preview { border-radius:14px; overflow:hidden; border:1px solid rgba(255,255,255,.08); margin-bottom:8px; background:#1a1a2e; }
#tg-392-wrapper .tg-392-preview__cover { position:relative; height:100px; display:flex; align-items:center; justify-content:center; transition:background .55s ease; background:linear-gradient(135deg, #1e293b, #334155); overflow:hidden; }
#tg-392-wrapper .tg-392-preview__pattern { position:absolute; inset:0; opacity:.2; }
#tg-392-wrapper .tg-392-preview__avatar { font-size:3.2rem; line-height:1; position:relative; z-index:1; filter:drop-shadow(0 4px 12px rgba(0,0,0,.4)); }
#tg-392-wrapper .tg-392-preview__info { padding:10px 14px; border-top:1px solid rgba(255,255,255,.05); }
#tg-392-wrapper .tg-392-preview__name { font-size:.9rem; font-weight:800; color:#fff; margin-bottom:2px !important; line-height:1.3 !important; transition:color .4s; }
#tg-392-wrapper .tg-392-preview__user { font-size:.64rem; color:rgba(255,255,255,.28); margin-bottom:0 !important; }

/* 채팅 미리보기 */
#tg-392-wrapper .tg-392-chat-preview { background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.06); border-radius:12px; padding:10px 12px; margin-bottom:10px; }
#tg-392-wrapper .tg-392-chat-preview__lbl { font-size:.58rem; font-weight:800; color:rgba(255,255,255,.2); margin-bottom:8px !important; }
#tg-392-wrapper .tg-392-chat-bubble { display:flex; flex-direction:column; gap:2px; margin-bottom:6px; }
#tg-392-wrapper .tg-392-chat-bubble:last-child { margin-bottom:0; }
#tg-392-wrapper .tg-392-chat-bubble__nm { font-size:.62rem; font-weight:800; color:rgba(255,255,255,.35); transition:color .4s; }
#tg-392-wrapper .tg-392-chat-bubble--me .tg-392-chat-bubble__nm { color:#94a3b8; }
#tg-392-wrapper .tg-392-chat-bubble__txt { font-size:.72rem; color:rgba(255,255,255,.65); line-height:1.5; }
#tg-392-wrapper .tg-392-chat-badge { font-size:.9rem; color:rgba(255,255,255,.12); transition:color .4s; }
#tg-392-wrapper .tg-392-chat-bubble--me { padding-left:8px; border-left:2px solid rgba(255,255,255,.1); transition:border-color .4s; }

/* 테마 선택 */
#tg-392-wrapper .tg-392-theme-selector { margin-bottom:10px; }
#tg-392-wrapper .tg-392-theme-selector__lbl { font-size:.64rem; font-weight:800; color:rgba(255,255,255,.22); margin-bottom:8px !important; }
#tg-392-wrapper .tg-392-theme-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; }
#tg-392-wrapper .tg-392-theme-card { position:relative; display:flex; flex-direction:column; align-items:center; gap:4px; padding:10px 4px 8px; border-radius:10px; border:2px solid rgba(255,255,255,.07); background:rgba(255,255,255,.04); transition:border-color .2s, background .2s; }
#tg-392-wrapper .tg-392-theme-card:hover { background:rgba(255,255,255,.07); }
#tg-392-wrapper .tg-392-theme-card--active { border-color:var(--red-500); }
#tg-392-wrapper .tg-392-theme-card__swatch { width:28px; height:28px; border-radius:50%; margin-bottom:2px; }
#tg-392-wrapper .tg-392-theme-card__swatch--0 { background:linear-gradient(135deg, var(--theme-0-a), var(--theme-0-b)); }
#tg-392-wrapper .tg-392-theme-card__swatch--1 { background:linear-gradient(135deg, var(--theme-1-a), var(--theme-1-b)); }
#tg-392-wrapper .tg-392-theme-card__swatch--2 { background:linear-gradient(135deg, var(--theme-2-a), var(--theme-2-b)); }
#tg-392-wrapper .tg-392-theme-card__swatch--3 { background:linear-gradient(135deg, var(--theme-3-a), var(--theme-3-b)); }
#tg-392-wrapper .tg-392-theme-card__ico { font-size:1rem; line-height:1; }
#tg-392-wrapper .tg-392-theme-card__nm { font-size:.58rem; font-weight:700; color:rgba(255,255,255,.3); }
#tg-392-wrapper .tg-392-theme-card--active .tg-392-theme-card__nm { color:var(--red-300); }
#tg-392-wrapper .tg-392-theme-card__chk { font-size:.75rem; position:absolute; top:3px; right:3px; color:var(--red-400); opacity:0; transition:opacity .18s; }
#tg-392-wrapper .tg-392-theme-card--active .tg-392-theme-card__chk { opacity:1; }

/* 적용 버튼 */
#tg-392-wrapper .tg-392-apply-btn { width:100%; display:flex; align-items:center; justify-content:center; gap:8px; padding:12px; border-radius:10px; font-size:.88rem; font-weight:800; color:rgba(255,255,255,.25); background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); transition:all .25s; margin-bottom:8px; }
#tg-392-wrapper .tg-392-apply-btn:not(:disabled) { background:linear-gradient(135deg, var(--red-500), var(--red-600)); color:#fff; border-color:transparent; box-shadow:var(--shadow-red); }
#tg-392-wrapper .tg-392-apply-btn:not(:disabled):hover { opacity:.9; transform:translateY(-1px); }
#tg-392-wrapper .tg-392-apply-btn .material-symbols-outlined { font-size:1rem; }
#tg-392-wrapper .tg-392-apply-btn--applied { background:linear-gradient(135deg, #059669, #047857) !important; box-shadow:0 6px 20px rgba(5,150,105,.32) !important; }
#tg-392-wrapper .tg-392-sim-hint { font-size:.7rem; color:rgba(255,255,255,.22); text-align:center; margin-top:4px !important; }

/* 기기별 탭 */
#tg-392-wrapper .tg-392-tabs { display:flex; gap:6px; background:var(--sl-100); border-radius:var(--radius-sm); padding:5px; margin-bottom:22px; flex-wrap:wrap; }
#tg-392-wrapper .tg-392-tab-btn { flex:1; min-width:72px; 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; }
#tg-392-wrapper .tg-392-tab-btn .material-symbols-outlined { font-size:1.1rem; }
#tg-392-wrapper .tg-392-tab-btn--active { background:#fff; color:var(--red-700); box-shadow:0 2px 8px rgba(0,0,0,.08); font-weight:800; }
#tg-392-wrapper .tg-392-tab-panel { display:none; text-align:left; animation:tg392FadeIn .3s ease; }
#tg-392-wrapper .tg-392-tab-panel--active { display:block; }
#tg-392-wrapper .tg-392-tab-panel__head { display:flex; align-items:center; gap:14px; margin-bottom:20px; padding-bottom:14px; border-bottom:1px solid var(--sl-100); }
#tg-392-wrapper .tg-392-tab-panel__icon { width:50px; height:50px; border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:1.6rem; color:#fff; flex-shrink:0; }
#tg-392-wrapper .tg-392-tab-panel__icon--pc  { background:linear-gradient(135deg, var(--red-500), var(--red-600)); }
#tg-392-wrapper .tg-392-tab-panel__icon--ios { background:linear-gradient(135deg, #555, #111); }
#tg-392-wrapper .tg-392-tab-panel__icon--and { background:linear-gradient(135deg, #3ddc84, #00ac47); }
#tg-392-wrapper .tg-392-tab-panel__name { font-size:var(--fs-lg); font-weight:800; color:var(--sl-900); margin-bottom:4px; }
#tg-392-wrapper .tg-392-tab-panel__sub  { font-size:var(--fs-sm); color:var(--sl-500); margin-bottom:0 !important; }
#tg-392-wrapper .tg-392-steps { display:flex; flex-direction:column; gap:12px; counter-reset:steps; }
#tg-392-wrapper .tg-392-steps li { counter-increment:steps; display:flex; align-items:flex-start; gap:12px; font-size:var(--fs-base); color:var(--text-sub); line-height:1.75; }
#tg-392-wrapper .tg-392-steps li::before { content:counter(steps); min-width:28px; height:28px; flex-shrink:0; margin-top:2px; background:linear-gradient(135deg, var(--red-500), var(--red-600)); color:#fff; font-size:.8rem; font-weight:900; border-radius:50%; display:flex; align-items:center; justify-content:center; }
#tg-392-wrapper .tg-392-steps li strong { color:var(--sl-800); }
#tg-392-wrapper .tg-392-tip-box { display:flex; align-items:flex-start; gap:12px; background:rgba(220,38,38,.06); border:1px solid rgba(220,38,38,.2); border-radius:var(--radius-sm); padding:14px 18px; margin-top:18px; font-size:var(--fs-sm); color:var(--text-sub); line-height:1.7; }
#tg-392-wrapper .tg-392-tip-box .material-symbols-outlined { font-size:1.2rem; color:var(--red-600); flex-shrink:0; margin-top:2px; }

/* 결론 */
#tg-392-wrapper .tg-392-summary { background:linear-gradient(145deg, var(--dk-base), #1a0000 55%, var(--dk-base)); border:1px solid rgba(220,38,38,.14); border-radius:var(--radius-lg); padding:52px 32px; color:#fff; text-align:center; }
#tg-392-wrapper .tg-392-summary h2 { font-size:1.3rem; font-weight:900; display:flex; align-items:center; justify-content:center; gap:10px; margin-bottom:12px; color:#fff; }
#tg-392-wrapper .tg-392-summary h2 .material-symbols-outlined { color:var(--red-300); font-size:1.5rem; }
#tg-392-wrapper .tg-392-summary > p { color:rgba(255,255,255,.55); margin-bottom:36px !important; }
#tg-392-wrapper .tg-392-summary__grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; max-width:560px; margin:0 auto; }
#tg-392-wrapper .tg-392-summary__item { background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1); border-radius:12px; padding:20px; display:flex; flex-direction:column; align-items:center; gap:10px; }
#tg-392-wrapper .tg-392-summary__item .material-symbols-outlined { font-size:1.8rem; color:var(--red-300); }
#tg-392-wrapper .tg-392-summary__item p { font-size:.84rem; font-weight:700; color:rgba(255,255,255,.75); line-height:1.5; margin-bottom:0 !important; }
#tg-392-wrapper .tg-392-footer-cta { margin-top:44px; border-top:1px solid rgba(255,255,255,.07); padding-top:28px; }
#tg-392-wrapper .tg-392-footer-cta p { font-size:var(--fs-sm); color:rgba(255,255,255,.4); margin-bottom:20px !important; }
#tg-392-wrapper .tg-392-cta-btn { display:inline-flex; align-items:center; gap:8px; background:linear-gradient(135deg, var(--red-500), var(--red-600)); color:#fff; font-size:1rem; font-weight:800; padding:15px 32px; border-radius:999px; box-shadow:var(--shadow-red); transition:transform .2s; }
#tg-392-wrapper .tg-392-cta-btn:hover { transform:translateY(-3px); }
#tg-392-wrapper .tg-392-cta-btn .material-symbols-outlined { font-size:1.1rem; }

@keyframes tg392Float  { 0%,100%{opacity:0;transform:translateY(0) scale(.9);}50%{opacity:.52;transform:translateY(-14px) scale(1.12);} }
@keyframes tg392FadeIn { from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:translateY(0);} }

/* 반응형 */
@media (min-width:640px)  { #tg-392-wrapper .tg-392-summary__grid { grid-template-columns:repeat(4,1fr); } }
@media (min-width:900px)  { #tg-392-wrapper .tg-392-hero { padding:80px 56px 90px; } #tg-392-wrapper .tg-392-section, #tg-392-wrapper .tg-392-intro { padding:52px 48px; } }
