/*
 * tips354/style.css  v1.0.0
 * 텔레그램 수집형 선물 가이드
 * 테마: 골드/앰버 + 바이올렛/딥 다크 (디지털 자산·NFT·한정판)
 * 그누보드5 격리 | BEM | 모바일 퍼스트
 */

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

/* ─── 디자인 토큰 ─── */
#tg-354-wrapper {
    --amb-300: #fcd34d;
    --amb-400: #fbbf24;
    --amb-500: #f59e0b;
    --vio-400: #a78bfa;
    --vio-500: #8b5cf6;
    --vio-600: #7c3aed;
    --ind-500: #6366f1;
    --ind-600: #4f46e5;
    --cry-400: #22d3ee;
    --grn-400: #4ade80;
    --dk-base: #0a0514;
    --dk-card: #150a26;
    --sl-100:  #f1f5f9;
    --sl-200:  #e2e8f0;
    --sl-400:  #94a3b8;
    --sl-500:  #64748b;
    --sl-800:  #1e293b;
    --sl-900:  #0f172a;
    --shadow-gold: 0 4px 20px rgba(245,158,11,.3);
    --shadow-vio:  0 4px 24px rgba(139,92,246,.25);
    --radius-md: 18px;
    --radius-lg: 24px;
    --fs-sm:   .9rem;
    --fs-base: 1rem;
    --fs-lg:   1.2rem;

    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: var(--fs-base); color: #1e293b; line-height: 1.7;
    max-width: 1100px; margin: 0 auto; width: 100%;
}

/* Material Symbols */
#tg-354-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-354-wrapper .tg-354-motion { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
#tg-354-wrapper .tg-354-motion.is-visible { opacity: 1; transform: translateY(0); }

/* ═════════════════════════════════════════
   히어로
═════════════════════════════════════════ */
#tg-354-wrapper .tg-354-hero {
    position: relative; background: var(--dk-base);
    border-radius: var(--radius-lg); padding: 64px 28px 72px;
    text-align: center; overflow: hidden;
}
#tg-354-wrapper .tg-354-hero__bg {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 65% 52% at 28% 35%, rgba(245,158,11,.18) 0%, transparent 56%),
        radial-gradient(ellipse 52% 44% at 80% 68%, rgba(139,92,246,.12) 0%, transparent 52%);
}
#tg-354-wrapper .tg-354-hero__floats { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
#tg-354-wrapper .tg-354-float {
    position: absolute; font-size: 1.7rem; opacity: 0;
    animation: tg354Float ease-in-out infinite;
}
#tg-354-wrapper .tg-354-float--1 { top: 14%; left:4%;    animation-duration: 5.5s; animation-delay: 0s; }
#tg-354-wrapper .tg-354-float--2 { top: 22%; right:5%;   animation-duration: 4.5s; animation-delay: -2s; font-size: 1.3rem; }
#tg-354-wrapper .tg-354-float--3 { bottom:28%; left:6%;  animation-duration: 6s;   animation-delay: -1s; }
#tg-354-wrapper .tg-354-float--4 { bottom:20%; right:7%; animation-duration: 5s;   animation-delay: -1.8s; font-size: 1.3rem; }
@keyframes tg354Float {
    0%,100% { opacity: 0; transform: translateY(0) scale(.9); }
    50%      { opacity: .52; transform: translateY(-14px) scale(1.12); }
}
#tg-354-wrapper .tg-354-hero__inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
#tg-354-wrapper .tg-354-hero__badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.3);
    color: var(--amb-300); font-size: .85rem; font-weight: 700;
    padding: 6px 18px; border-radius: 999px; margin-bottom: 22px !important;
}
#tg-354-wrapper .tg-354-hero__title {
    font-size: clamp(1.6rem, 4.2vw, 2.36rem); font-weight: 900;
    color: #fff; line-height: 1.25; letter-spacing: -.02em; margin-bottom: 16px;
}
#tg-354-wrapper .tg-354-hero__title em {
    font-style: normal; color: var(--amb-300);
    text-shadow: 0 0 24px rgba(245,158,11,.5);
}
#tg-354-wrapper .tg-354-hero__subtitle { color: rgba(255,255,255,.68); line-height: 1.8; max-width: 560px; margin: 0 auto 28px !important; }
#tg-354-wrapper .tg-354-hero__chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
#tg-354-wrapper .tg-354-hero__chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.8); font-size: .82rem; font-weight: 700;
    padding: 8px 16px; border-radius: 999px;
}
#tg-354-wrapper .tg-354-hero__chip--gold { border-color: rgba(245,158,11,.3); color: var(--amb-300); background: rgba(245,158,11,.06); }
#tg-354-wrapper .tg-354-hero__chip--blue { border-color: rgba(34,211,238,.3); color: var(--cry-400); background: rgba(34,211,238,.06); }

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

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

#tg-354-wrapper .tg-354-intro__cards { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
#tg-354-wrapper .tg-354-intro__card {
    background: #f8fafc; border: 1px solid var(--sl-200); border-radius: var(--radius-sm);
    padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
}
#tg-354-wrapper .tg-354-intro__card--gold { border-color: rgba(245,158,11,.2); background: rgba(245,158,11,.04); }
#tg-354-wrapper .tg-354-intro__card--blue { border-color: rgba(99,102,241,.2); background: rgba(99,102,241,.04); }
#tg-354-wrapper .tg-354-intro__card-icon { font-size: 1.8rem; line-height: 1; margin-bottom: 4px; }
#tg-354-wrapper .tg-354-intro__card-title { font-size: var(--fs-base); font-weight: 800; color: var(--sl-900); }
#tg-354-wrapper .tg-354-intro__card-desc { font-size: var(--fs-sm); color: var(--sl-500); line-height: 1.6; word-break: keep-all; margin-bottom: 0 !important; }

/* 공통 섹션 */
#tg-354-wrapper .tg-354-section {
    background: #fff; border: 1px solid var(--sl-200); border-radius: var(--radius-md);
    padding: 44px 32px; box-shadow: 0 4px 14px rgba(0,0,0,.06); text-align: center;
}
#tg-354-wrapper .tg-354-section--dark { background: var(--dk-base); border-color: rgba(255,255,255,.08); }
#tg-354-wrapper .tg-354-section__label {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--sl-100); color: var(--sl-700);
    font-size: .88rem; font-weight: 700; letter-spacing: .03em;
    padding: 7px 20px; border-radius: 999px; margin-bottom: 22px;
}
#tg-354-wrapper .tg-354-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-354-wrapper .tg-354-section__title--light { color: #fff !important; }
#tg-354-wrapper .tg-354-section > p { color: var(--sl-500); max-width: 680px; margin-left: auto; margin-right: auto; }
#tg-354-wrapper .tg-354-section__desc--light { color: rgba(255,255,255,.8) !important; margin-bottom: 32px !important; }

/* ═════════════════════════════════════════
   시뮬레이터 (데모)
═════════════════════════════════════════ */
#tg-354-wrapper .tg-354-demo { display: flex; flex-direction: column; gap: 28px; max-width: 800px; margin: 0 auto; }

#tg-354-wrapper .tg-354-demo__label { font-size: .8rem; font-weight: 800; color: rgba(255,255,255,.3); text-transform: uppercase; margin-bottom: 10px !important; text-align: left; }

/* 선물 선택 */
#tg-354-wrapper .tg-354-gift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
#tg-354-wrapper .tg-354-gift-item {
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px; padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px;
    transition: all .2s;
}
#tg-354-wrapper .tg-354-gift-item:hover { border-color: rgba(245,158,11,.4); background: rgba(245,158,11,.06); }
#tg-354-wrapper .tg-354-gift-item--active { border-color: var(--amb-400); background: rgba(245,158,11,.12); box-shadow: var(--shadow-gold); }
#tg-354-wrapper .tg-354-gift-item__icon { font-size: 1.6rem; line-height: 1; }
#tg-354-wrapper .tg-354-gift-item__name { font-size: .68rem; font-weight: 700; color: rgba(255,255,255,.5); }
#tg-354-wrapper .tg-354-gift-item--active .tg-354-gift-item__name { color: var(--amb-300); }

/* 메인 전시박스 */
#tg-354-wrapper .tg-354-display {
    position: relative; background: #000; border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px; padding: 32px 20px; overflow: hidden;
}
#tg-354-wrapper .tg-354-display__inner { min-height: 220px; display: flex; align-items: center; justify-content: center; position: relative; }

/* 일반 미리보기 */
#tg-354-wrapper .tg-354-gift-preview { text-align: center; animation: tg354FadeIn .4s ease; }
#tg-354-wrapper .tg-354-gift-box {
    width: 100px; height: 100px; background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.12); border-radius: 20px;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
    box-shadow: inset 0 0 20px rgba(255,255,255,.05);
}
#tg-354-wrapper .tg-354-gift-box__emoji { font-size: 3rem; line-height: 1; }
#tg-354-wrapper .tg-354-gift-desc { font-size: .8rem; color: rgba(255,255,255,.3); font-weight: 700; }

/* 결과 카드 (Collectible) */
#tg-354-wrapper .tg-354-gift-result { animation: tg354CardRise .6s cubic-bezier(.17,.67,.26,.98); }
#tg-354-wrapper .tg-354-collectible-card {
    width: 220px; background: linear-gradient(135deg, #1e0b3d, #09041a);
    border: 1px solid rgba(255,255,255,.15); border-radius: 18px; padding: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,.6), 0 0 20px rgba(139,92,246,.2);
    position: relative; overflow: hidden;
}
#tg-354-wrapper .tg-354-collectible-card::after {
    content: ''; position: absolute; inset: 0; background: linear-gradient(-45deg, transparent 40%, rgba(255,255,255,.1) 50%, transparent 60%);
    pointer-events: none; animation: tg354Shine 4s linear infinite;
}
#tg-354-wrapper .tg-354-collectible-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
#tg-354-wrapper .tg-353-tag { font-size: .6rem; font-weight: 900; letter-spacing: .08em; color: var(--amb-300); background: rgba(245,158,11,.14); padding: 2px 6px; border-radius: 4px; }
#tg-354-wrapper .tg-354-serial { font-family: 'Consolas', monospace; font-size: .75rem; color: rgba(255,255,255,.4); }
#tg-354-wrapper .tg-354-collectible-body { height: 100px; display: flex; align-items: center; justify-content: center; }
#tg-354-wrapper .tg-354-collectible-emoji { font-size: 4rem; filter: drop-shadow(0 0 14px rgba(255,255,255,.4)); }
#tg-354-wrapper .tg-354-collectible-footer { margin-top: 14px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.06); }
#tg-354-wrapper .tg-354-attr { display: flex; gap: 6px; }
#tg-354-wrapper .tg-354-attr span { font-size: .6rem; color: var(--grn-400); background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.2); padding: 1px 6px; border-radius: 999px; }

/* 애니메이션 효과 */
#tg-354-wrapper .tg-354-upgrade-fx { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
#tg-354-wrapper .tg-354-scan-line {
    position: absolute; left: 0; top: -50%; width: 100%; height: 50%;
    background: linear-gradient(to bottom, transparent, rgba(139,92,246,.4), transparent);
    animation: tg354Scan 1.2s ease-in-out forwards;
}
@keyframes tg354Scan {
    0% { top: -50%; } 100% { top: 150%; }
}
@keyframes tg354Shine {
    0% { transform: translateX(-100%); } 20%, 100% { transform: translateX(150%); }
}
@keyframes tg354CardRise {
    from { opacity: 0; transform: translateY(40px) scale(.8); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 버튼 영역 */
#tg-354-wrapper .tg-354-actions { display: flex; gap: 10px; margin-top: 24px; }
#tg-354-wrapper .tg-354-btn-upgrade {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(135deg, var(--vio-500), var(--vio-600));
    color: #fff; font-size: .95rem; font-weight: 800; padding: 14px; border-radius: 12px;
    box-shadow: var(--shadow-vio); transition: filter .2s, transform .1s;
}
#tg-354-wrapper .tg-354-btn-upgrade:hover { filter: brightness(1.15); }
#tg-354-wrapper .tg-354-btn-upgrade:active { transform: scale(.97); }

#tg-354-wrapper .tg-354-btn-reset {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.15);
    padding: 0 20px; border-radius: 12px; font-size: .88rem; font-weight: 700;
}

#tg-354-wrapper .tg-354-cost-txt { font-size: .74rem; color: rgba(255,255,255,.3); margin-top: 12px !important; }

/* ═════════════════════════════════════════
   기기별 탭 가이드
═════════════════════════════════════════ */
#tg-354-wrapper .tg-354-tabs {
    display: flex; gap: 6px; background: #f1f5f9; border-radius: 12px; padding: 5px; margin-bottom: 24px;
}
#tg-354-wrapper .tg-354-tab-btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px; border-radius: 8px; font-size: .9rem; font-weight: 600; color: #64748b;
    transition: all .2s;
}
#tg-354-wrapper .tg-354-tab-btn--active { background: #fff; color: var(--ind-600); box-shadow: 0 4px 10px rgba(0,0,0,.08); font-weight: 800; }
#tg-354-wrapper .tg-354-tab-btn .material-symbols-outlined { font-size: 1.1rem; }

#tg-354-wrapper .tg-354-tab-panel { display: none; animation: tg354FadeIn .4s ease; text-align: left; }
#tg-354-wrapper .tg-354-tab-panel--active { display: block; }

#tg-354-wrapper .tg-354-tab-panel__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; border-bottom: 1px solid #f1f5f9; padding-bottom: 14px; }
#tg-354-wrapper .tg-354-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-354-wrapper .tg-354-tab-panel__icon--pc  { background: linear-gradient(135deg, #1e293b, #0f172a); }
#tg-354-wrapper .tg-354-tab-panel__icon--and { background: linear-gradient(135deg, #3ddc84, #00ac47); }
#tg-354-wrapper .tg-354-tab-panel__icon--ios { background: linear-gradient(135deg, #555, #111); }
#tg-354-wrapper .tg-354-tab-panel__name { font-size: 1.1rem; font-weight: 800; color: #0f172a; margin-bottom: 3px; }
#tg-354-wrapper .tg-354-tab-panel__sub  { font-size: .85rem; color: #64748b; margin-bottom: 0 !important; }

#tg-354-wrapper .tg-354-steps { display: flex; flex-direction: column; gap: 12px; counter-reset: steps; }
#tg-354-wrapper .tg-354-steps li {
    counter-increment: steps; display: flex; align-items: flex-start; gap: 12px;
    font-size: var(--fs-base); color: var(--sl-500); line-height: 1.7;
}
#tg-354-wrapper .tg-354-steps li::before {
    content: counter(steps); width: 26px; height: 26px; flex-shrink: 0;
    background: #eef2ff; color: #6366f1; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 800; margin-top: 3px;
}
#tg-354-wrapper .tg-354-steps li strong { color: #1e293b; }

/* ─── 요약 섹션 ─── */
#tg-354-wrapper .tg-354-summary {
    background: linear-gradient(145deg, #09041a, #160a2d); border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg); padding: 52px 32px; color: #fff; text-align: center;
}
#tg-354-wrapper .tg-354-summary h2 {
    font-size: 1.3rem; font-weight: 900; display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px;
}
#tg-354-wrapper .tg-354-summary h2 .material-symbols-outlined { color: var(--amb-300); }
#tg-354-wrapper .tg-354-summary > p { color: rgba(255,255,255,.6); margin-bottom: 36px !important; }

#tg-354-wrapper .tg-354-summary__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 600px; margin: 0 auto; }
#tg-354-wrapper .tg-354-summary__item {
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 20px 10px;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
#tg-354-wrapper .tg-354-summary__item .material-symbols-outlined { font-size: 1.8rem; color: var(--amb-300); }
#tg-354-wrapper .tg-354-summary__item p { font-size: .85rem; font-weight: 700; color: rgba(255,255,255,.8); margin-bottom: 0 !important; }

/* CTA */
#tg-354-wrapper .tg-354-footer-cta { margin-top: 48px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 32px; }
#tg-354-wrapper .tg-354-footer-cta p { font-size: var(--fs-sm); color: rgba(255,255,255,.4); margin-bottom: 20px !important; }
#tg-354-wrapper .tg-354-cta-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, var(--amb-400), var(--amb-500));
    color: #111; font-size: 1rem; font-weight: 800; padding: 16px 36px; border-radius: 999px;
    box-shadow: 0 10px 30px rgba(245,158,11,.2); transition: transform .2s;
}
#tg-354-wrapper .tg-354-cta-btn:hover { transform: translateY(-3px); }

@keyframes tg354FadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ─── 반응형 ─── */
@media (min-width: 640px) {
    #tg-354-wrapper .tg-354-intro__cards { grid-template-columns: repeat(3, 1fr); }
    #tg-354-wrapper .tg-354-summary__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) {
    #tg-354-wrapper .tg-354-hero { padding: 90px 48px 100px; }
    #tg-354-wrapper .tg-354-demo { flex-direction: row; align-items: flex-start; }
    #tg-354-wrapper .tg-354-gift-selector { flex: 1 0 240px; }
    #tg-354-wrapper .tg-354-display { flex: 1 1 500px; min-height: 480px; display: flex; flex-direction: column; justify-content: center; }
}
