/*
 * tips357/style.css  v1.0.0
 * 텔레그램 수집품 선물 착용 가이드
 * 테마: 오렌지/앰버 레디언트 + 딥 다크 (광채·프로필·개성)
 * 그누보드5 격리 | BEM | 모바일 퍼스트
 */

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

/* ─── 디자인 토큰 ─── */
#tg-357-wrapper {
    --ora-200: #fed7aa;
    --ora-300: #fdba74;
    --ora-400: #fb923c;
    --ora-500: #f97316;
    --ora-600: #ea580c;
    --ora-700: #c2410c;
    --amb-300: #fcd34d;
    --amb-400: #fbbf24;
    --sky-300: #7dd3fc;
    --grn-400: #4ade80;
    --grn-500: #22c55e;
    --dk-base: #0c0500;
    --sl-50:   #f8fafc;
    --sl-100:  #f1f5f9;
    --sl-200:  #e2e8f0;
    --sl-400:  #94a3b8;
    --sl-500:  #64748b;
    --sl-700:  #334155;
    --sl-800:  #1e293b;
    --sl-900:  #0f172a;
    --text-sub: #475569;
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --shadow-sm:  0 4px 14px rgba(0,0,0,.06);
    --shadow-ora: 0 6px 24px rgba(249,115,22,.28);
    --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 */
#tg-357-wrapper .material-symbols-outlined {
    font-family: 'Material Symbols Outlined', sans-serif;
    font-weight: normal; font-style: normal; font-size: inherit; line-height: 1;
    display: inline-block; white-space: nowrap; direction: ltr;
    -webkit-font-smoothing: antialiased; vertical-align: middle;
}

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

/* ═════════════════════════════════════════
   히어로
═════════════════════════════════════════ */
#tg-357-wrapper .tg-357-hero {
    position: relative; background: var(--dk-base);
    border-radius: var(--radius-lg); padding: 64px 28px 72px;
    text-align: center; overflow: hidden;
}
#tg-357-wrapper .tg-357-hero__bg {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 65% 52% at 28% 35%, rgba(249,115,22,.2) 0%, transparent 56%),
        radial-gradient(ellipse 50% 44% at 80% 68%, rgba(251,191,36,.12) 0%, transparent 52%);
}
#tg-357-wrapper .tg-357-hero__floats { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
#tg-357-wrapper .tg-357-float {
    position: absolute; font-size: 1.8rem; opacity: 0;
    animation: tg357Float ease-in-out infinite;
}
#tg-357-wrapper .tg-357-float--1 { top: 14%; left:4%;    animation-duration: 5.5s; }
#tg-357-wrapper .tg-357-float--2 { top: 22%; right:5%;   animation-duration: 4.5s; animation-delay: -2s; font-size: 1.3rem; }
#tg-357-wrapper .tg-357-float--3 { bottom:28%; left:6%;  animation-duration: 6s;   animation-delay: -1s; }
#tg-357-wrapper .tg-357-float--4 { bottom:20%; right:7%; animation-duration: 5s;   animation-delay: -1.8s; font-size: 1.3rem; }
@keyframes tg357Float {
    0%,100% { opacity: 0; transform: translateY(0) scale(.9); }
    50%      { opacity: .52; transform: translateY(-14px) scale(1.12); }
}
#tg-357-wrapper .tg-357-hero__inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
#tg-357-wrapper .tg-357-hero__badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(249,115,22,.15); border: 1px solid rgba(249,115,22,.35);
    color: var(--ora-300); font-size: .85rem; font-weight: 700;
    padding: 6px 18px; border-radius: 999px; margin-bottom: 22px !important;
}
#tg-357-wrapper .tg-357-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-357-wrapper .tg-357-hero__title em { font-style: normal; color: var(--ora-300); text-shadow: 0 0 24px rgba(249,115,22,.55); }
#tg-357-wrapper .tg-357-hero__subtitle { color: rgba(255,255,255,.65); line-height: 1.8; max-width: 540px; margin: 0 auto 28px !important; }
#tg-357-wrapper .tg-357-hero__chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
#tg-357-wrapper .tg-357-hero__chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(249,115,22,.1); border: 1px solid rgba(249,115,22,.22);
    color: var(--ora-300); font-size: .82rem; font-weight: 800;
    padding: 8px 16px; border-radius: 999px;
}
#tg-357-wrapper .tg-357-hero__chip--sky { background: rgba(125,211,252,.08); border-color: rgba(125,211,252,.22); color: var(--sky-300); }
#tg-357-wrapper .tg-357-hero__chip--grn { background: rgba(74,222,128,.08); border-color: rgba(74,222,128,.22); color: var(--grn-400); }

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

/* 도입부 */
#tg-357-wrapper .tg-357-intro {
    background: #fff; border: 1px solid var(--sl-200); border-top: 4px solid var(--ora-500);
    border-radius: var(--radius-md); padding: 36px 28px; text-align: center; box-shadow: var(--shadow-sm);
}
#tg-357-wrapper .tg-357-intro__icon { font-size: 2.4rem; color: var(--ora-500); margin-bottom: 14px; }
#tg-357-wrapper .tg-357-intro__title { font-size: clamp(1.05rem, 2.8vw, 1.3rem); font-weight: 800; color: var(--sl-900); margin-bottom: 14px; }
#tg-357-wrapper .tg-357-intro p { color: var(--text-sub); max-width: 700px; margin-left: auto; margin-right: auto; }

/* 혜택 카드 */
#tg-357-wrapper .tg-357-benefit-cards { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
#tg-357-wrapper .tg-357-benefit-card {
    background: var(--sl-50); border: 1px solid var(--sl-200); border-radius: var(--radius-sm);
    padding: 22px 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; position: relative;
}
#tg-357-wrapper .tg-357-benefit-card--sky { border-color: rgba(125,211,252,.2); background: rgba(125,211,252,.03); }
#tg-357-wrapper .tg-357-benefit-card--grn { border-color: rgba(74,222,128,.2); background: rgba(74,222,128,.03); }
#tg-357-wrapper .tg-357-benefit-card__num {
    position: absolute; top: 10px; right: 12px;
    font-size: .65rem; font-weight: 900; color: var(--ora-400); opacity: .5; letter-spacing: .04em;
}
#tg-357-wrapper .tg-357-benefit-card__icon { font-size: 1.8rem; line-height: 1; margin-bottom: 4px; }
#tg-357-wrapper .tg-357-benefit-card__title { font-size: var(--fs-base); font-weight: 800; color: var(--sl-900); }
#tg-357-wrapper .tg-357-benefit-card__desc { font-size: var(--fs-sm); color: var(--text-sub); line-height: 1.65; word-break: keep-all; margin-bottom: 0 !important; }

/* 공통 섹션 */
#tg-357-wrapper .tg-357-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-357-wrapper .tg-357-section--dark { background: var(--dk-base); border-color: rgba(249,115,22,.1); }
#tg-357-wrapper .tg-357-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-357-wrapper .tg-357-section__label--dark { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.25); }
#tg-357-wrapper .tg-357-section__label--orange { background: rgba(249,115,22,.08); color: var(--ora-700); }
#tg-357-wrapper .tg-357-section__label .material-symbols-outlined { font-size: 1rem; }
#tg-357-wrapper .tg-357-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-357-wrapper .tg-357-section__title--light { color: #fff !important; }
#tg-357-wrapper .tg-357-section > p { color: var(--text-sub); max-width: 680px; margin-left: auto; margin-right: auto; }
#tg-357-wrapper .tg-357-section__desc--light { color: rgba(255,255,255,.8) !important; margin-bottom: 28px !important; }

/* ═════════════════════════════════════════
   프로필 착용 시뮬레이터
═════════════════════════════════════════ */
#tg-357-wrapper .tg-357-demo { display: flex; flex-direction: column; gap: 20px; }

/* 수집품 목록 */
#tg-357-wrapper .tg-357-panel-label { font-size: .78rem; font-weight: 800; color: rgba(255,255,255,.35); text-align: left; margin-bottom: 10px !important; }
#tg-357-wrapper .tg-357-gift-list { display: flex; flex-direction: column; gap: 8px; }
#tg-357-wrapper .tg-357-gift-btn {
    width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px;
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px; text-align: left; transition: all .2s;
}
#tg-357-wrapper .tg-357-gift-btn:hover { background: rgba(249,115,22,.08); border-color: rgba(249,115,22,.25); }
#tg-357-wrapper .tg-357-gift-btn--active { background: rgba(249,115,22,.12); border-color: rgba(249,115,22,.4); }
#tg-357-wrapper .tg-357-gift-btn__emoji { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
#tg-357-wrapper .tg-357-gift-btn__info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
#tg-357-wrapper .tg-357-gift-btn__name { font-size: .85rem; font-weight: 800; color: rgba(255,255,255,.85); }
#tg-357-wrapper .tg-357-gift-btn__serial { font-size: .65rem; color: rgba(255,255,255,.35); }
#tg-357-wrapper .tg-357-gift-btn__tag {
    font-size: .58rem; font-weight: 900; letter-spacing: .06em; padding: 3px 7px; border-radius: 5px; flex-shrink: 0;
    background: rgba(249,115,22,.15); color: var(--ora-400);
}
#tg-357-wrapper .tg-357-gift-btn__tag--epic   { background: rgba(168,85,247,.15); color: #c084fc; }
#tg-357-wrapper .tg-357-gift-btn__tag--common { background: rgba(148,163,184,.15); color: #94a3b8; }
#tg-357-wrapper .tg-357-gift-btn__tag--legend { background: rgba(251,191,36,.15); color: var(--amb-300); }

/* 프로필 미리보기 패널 */
#tg-357-wrapper .tg-357-profile-panel {
    background: #000; border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px; overflow: hidden; min-height: 300px; display: flex; flex-direction: column;
}

/* 프로필 상단 배경 영역 */
#tg-357-wrapper .tg-357-prof-bg {
    height: 100px; position: relative; overflow: hidden;
    transition: background .5s ease;
    display: flex; align-items: flex-end; padding: 0 20px 14px;
}
#tg-357-wrapper .tg-357-prof-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.6) 100%);
    pointer-events: none;
}
#tg-357-wrapper .tg-357-prof-symbol {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 4.5rem; opacity: .12; pointer-events: none;
    animation: tg357SymbolFloat 4s ease-in-out infinite;
}
@keyframes tg357SymbolFloat {
    0%,100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}

/* 프로필 콘텐츠 영역 */
#tg-357-wrapper .tg-357-prof-body {
    padding: 0 18px 20px; flex: 1;
}
#tg-357-wrapper .tg-357-prof-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, #374151, #111827);
    border: 3px solid #000; font-size: 1.6rem; display: flex; align-items: center; justify-content: center;
    margin-top: -28px; margin-bottom: 10px; position: relative; z-index: 1;
}
#tg-357-wrapper .tg-357-prof-name-row {
    display: flex; align-items: center; gap: 6px; margin-bottom: 4px;
    font-size: .92rem; font-weight: 900; color: #fff;
}
#tg-357-wrapper .tg-357-prof-badge {
    font-size: 1rem; line-height: 1; animation: tg357Sparkle 1.5s ease-in-out infinite alternate;
}
@keyframes tg357Sparkle {
    from { filter: drop-shadow(0 0 4px rgba(255,255,255,.4)); transform: scale(1); }
    to   { filter: drop-shadow(0 0 10px rgba(255,220,100,.9)); transform: scale(1.2); }
}
#tg-357-wrapper .tg-357-prof-handle { font-size: .72rem; color: rgba(255,255,255,.35); margin-bottom: 14px !important; }
#tg-357-wrapper .tg-357-prof-collectible {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px; padding: 10px 13px;
    font-size: .75rem; color: rgba(255,255,255,.6);
}
#tg-357-wrapper .tg-357-prof-collectible__emoji { font-size: 1.2rem; line-height: 1; }
#tg-357-wrapper .tg-357-prof-collectible__info { flex: 1; }
#tg-357-wrapper .tg-357-prof-collectible__name { font-weight: 800; color: rgba(255,255,255,.85); display: block; margin-bottom: 1px; }
#tg-357-wrapper .tg-357-prof-collectible__serial { font-size: .62rem; color: rgba(255,255,255,.3); display: block; }
#tg-357-wrapper .tg-357-prof-collectible__verify {
    font-size: .62rem; font-weight: 800; color: var(--grn-400);
    background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.2);
    padding: 2px 7px; border-radius: 999px;
}

/* 착용 버튼 */
#tg-357-wrapper .tg-357-wear-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; margin-top: 14px; padding: 13px; border-radius: 12px;
    background: linear-gradient(135deg, var(--ora-500), var(--ora-700));
    color: #fff; font-size: .9rem; font-weight: 800; box-shadow: var(--shadow-ora);
    transition: filter .2s, transform .1s;
}
#tg-357-wrapper .tg-357-wear-btn:hover { filter: brightness(1.12); }
#tg-357-wrapper .tg-357-wear-btn:active { transform: scale(.97); }
#tg-357-wrapper .tg-357-wear-btn .material-symbols-outlined { font-size: 1.1rem; }
#tg-357-wrapper .tg-357-wear-btn--done {
    background: linear-gradient(135deg, var(--grn-500), #15803d) !important;
    box-shadow: 0 6px 20px rgba(34,197,94,.25) !important;
}

/* 착용 완료 알림 */
#tg-357-wrapper .tg-357-worn-notice {
    font-size: .72rem; color: var(--grn-400); font-weight: 800; text-align: center;
    margin-top: 8px !important; animation: tg357FadeIn .4s ease;
}

/* ═════════════════════════════════════════
   기기별 탭 가이드
═════════════════════════════════════════ */
#tg-357-wrapper .tg-357-tabs {
    display: flex; gap: 6px; background: var(--sl-100); border-radius: var(--radius-sm);
    padding: 5px; margin-bottom: 22px;
}
#tg-357-wrapper .tg-357-tab-btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 11px 12px; border-radius: 7px; font-size: var(--fs-sm); font-weight: 600;
    color: var(--sl-500); transition: background .2s, color .2s;
}
#tg-357-wrapper .tg-357-tab-btn .material-symbols-outlined { font-size: 1.1rem; }
#tg-357-wrapper .tg-357-tab-btn--active { background: #fff; color: var(--ora-700); box-shadow: 0 2px 8px rgba(0,0,0,.08); font-weight: 800; }
#tg-357-wrapper .tg-357-tab-panel { display: none; text-align: left; animation: tg357FadeIn .3s ease; }
#tg-357-wrapper .tg-357-tab-panel--active { display: block; }
#tg-357-wrapper .tg-357-tab-panel__head {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--sl-100);
}
#tg-357-wrapper .tg-357-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-357-wrapper .tg-357-tab-panel__icon--mobile { background: linear-gradient(135deg, var(--ora-500), var(--ora-700)); }
#tg-357-wrapper .tg-357-tab-panel__icon--pc { background: linear-gradient(135deg, #1e293b, #0f172a); }
#tg-357-wrapper .tg-357-tab-panel__name { font-size: var(--fs-lg); font-weight: 800; color: var(--sl-900); margin-bottom: 4px; }
#tg-357-wrapper .tg-357-tab-panel__sub { font-size: var(--fs-sm); color: var(--sl-500); margin-bottom: 0 !important; }

#tg-357-wrapper .tg-357-steps { display: flex; flex-direction: column; gap: 12px; counter-reset: steps; }
#tg-357-wrapper .tg-357-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-357-wrapper .tg-357-steps li::before {
    content: counter(steps); min-width: 28px; height: 28px; flex-shrink: 0; margin-top: 2px;
    background: linear-gradient(135deg, var(--ora-500), var(--ora-700));
    color: #fff; font-size: .8rem; font-weight: 900; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
#tg-357-wrapper .tg-357-steps li strong { color: var(--sl-800); }
#tg-357-wrapper .tg-357-note-box {
    display: flex; align-items: center; gap: 12px;
    background: rgba(249,115,22,.06); border: 1px solid rgba(249,115,22,.18);
    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-357-wrapper .tg-357-note-box .material-symbols-outlined { font-size: 1.2rem; color: var(--ora-500); flex-shrink: 0; }

/* ─── 결론 요약 ─── */
#tg-357-wrapper .tg-357-summary {
    background: linear-gradient(145deg, var(--dk-base), #1a0c00 55%, var(--dk-base));
    border: 1px solid rgba(249,115,22,.1); border-radius: var(--radius-lg);
    padding: 52px 32px; color: #fff; text-align: center;
}
#tg-357-wrapper .tg-357-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-357-wrapper .tg-357-summary h2 .material-symbols-outlined { color: var(--ora-300); font-size: 1.5rem; }
#tg-357-wrapper .tg-357-summary > p { color: rgba(255,255,255,.55); margin-bottom: 36px !important; }
#tg-357-wrapper .tg-357-summary__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 560px; margin: 0 auto; }
#tg-357-wrapper .tg-357-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-357-wrapper .tg-357-summary__item .material-symbols-outlined { font-size: 1.8rem; color: var(--ora-300); }
#tg-357-wrapper .tg-357-summary__item p { font-size: .84rem; font-weight: 700; color: rgba(255,255,255,.75); margin-bottom: 0 !important; }
#tg-357-wrapper .tg-357-footer-cta { margin-top: 44px; border-top: 1px solid rgba(255,255,255,.07); padding-top: 28px; }
#tg-357-wrapper .tg-357-footer-cta p { font-size: var(--fs-sm); color: rgba(255,255,255,.4); margin-bottom: 20px !important; }
#tg-357-wrapper .tg-357-cta-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--ora-500), var(--ora-700));
    color: #fff; font-size: 1rem; font-weight: 800; padding: 15px 32px; border-radius: 999px;
    box-shadow: var(--shadow-ora); transition: transform .2s;
}
#tg-357-wrapper .tg-357-cta-btn:hover { transform: translateY(-3px); }
#tg-357-wrapper .tg-357-cta-btn .material-symbols-outlined { font-size: 1.1rem; }

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

/* ─── 반응형 ─── */
@media (min-width: 600px) { #tg-357-wrapper .tg-357-benefit-cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) {
    #tg-357-wrapper .tg-357-demo { flex-direction: row; align-items: flex-start; }
    #tg-357-wrapper .tg-357-gift-panel { flex: 1 0 240px; }
    #tg-357-wrapper .tg-357-profile-panel { flex: 1 1 320px; min-height: 360px; }
}
@media (min-width: 640px) { #tg-357-wrapper .tg-357-summary__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) {
    #tg-357-wrapper .tg-357-hero { padding: 80px 56px 90px; }
    #tg-357-wrapper .tg-357-section, #tg-357-wrapper .tg-357-intro { padding: 52px 48px; }
}
