@charset "utf-8";

/* ============================================================
   [그누보드5 완전 리셋 패턴] 
   rules.md 가이드 준수 (ID 특이성 보호)
   ============================================================ */
#tg-magic-wrapper,
#tg-magic-wrapper *,
#tg-magic-wrapper *::before,
#tg-magic-wrapper *::after {
    box-sizing: border-box !important;
    margin: 0; padding: 0; border: none;
    outline: none; text-decoration: none;
    list-style: none; background: none;
    font-style: normal;
    -webkit-font-smoothing: antialiased !important;
    word-break: keep-all;
}

#tg-magic-wrapper h1, 
#tg-magic-wrapper h2, 
#tg-magic-wrapper h3, 
#tg-magic-wrapper h4, 
#tg-magic-wrapper h5, 
#tg-magic-wrapper h6 { font-size: inherit; font-weight: inherit; color: inherit; }

#tg-magic-wrapper p {
    margin-bottom: 14px !important;
    line-height: 1.8 !important;
}
#tg-magic-wrapper p:last-child { margin-bottom: 0 !important; }

/* ============================================================
   [디자인 시스템] Magic & Celebration (Indigo/Gold)
   ============================================================ */
:root {
    --magic-primary: #6366f1; /* Indigo 500 */
    --magic-primary-dark: #4338ca;
    --magic-secondary: #f59e0b; /* Amber 500 */
    --magic-gold-light: #fef3c7;
    --magic-slate-900: #0f172a;
    --magic-slate-800: #1e293b;
    --magic-slate-100: #f1f5f9;
    --magic-white: #ffffff;
    --magic-radius: 32px;
}

#tg-magic-wrapper {
    max-width: 1100px !important;
    margin: 30px auto !important;
    width: 100% !important;
    font-family: 'Pretendard', sans-serif !important;
    background-color: #f8fafc !important;
    color: var(--magic-slate-800) !important;
    overflow: hidden !important;
}

#tg-magic-wrapper strong { font-weight: 800 !important; color: var(--magic-primary-dark) !important; }
#tg-magic-wrapper mark {
    background: linear-gradient(120deg, #e0e7ff 0%, #c7d2fe 100%) !important;
    color: var(--magic-primary-dark) !important;
    font-weight: 800 !important;
    padding: 2px 8px !important;
    border-radius: 6px !important;
}

/* ============================================================
   [Hero Section]
   ============================================================ */
#tg-magic-wrapper .tg-magic-hero {
    background: linear-gradient(135deg, #312e81 0%, #4338ca 100%) !important;
    padding: 120px 24px !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
}

#tg-magic-wrapper .tg-magic-hero::before {
    content: "" !important; position: absolute !important; top: -50px !important; right: -50px !important;
    width: 300px !important; height: 300px !important;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%) !important;
}

#tg-magic-hero__inner {
    max-width: 900px !important;
    margin: 0 auto !important;
    position: relative !important;
    z-index: 2 !important;
}

#tg-magic-wrapper .tg-magic-hero__icon-group {
    display: flex !important; align-items: center !important; justify-content: center !important;
    gap: 15px !important; margin-bottom: 40px !important;
}

#tg-magic-wrapper .tg-magic-hero__icon-box {
    width: 70px !important; height: 70px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 22px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    backdrop-filter: blur(8px) !important;
}

#tg-magic-wrapper .tg-magic-hero__badge {
    display: inline-flex !important; align-items: center !important; gap: 8px !important;
    background: rgba(245, 158, 11, 0.1) !important;
    color: var(--magic-secondary) !important;
    border: 1px solid rgba(245, 158, 11, 0.2) !important;
    padding: 10px 24px !important; border-radius: 100px !important;
    font-size: 14px !important; font-weight: 900 !important;
    margin-bottom: 25px !important;
}

#tg-magic-wrapper .tg-magic-hero__title {
    font-size: 48px !important; font-weight: 950 !important; line-height: 1.2 !important;
    color: var(--magic-white) !important; margin-bottom: 25px !important;
}

#tg-magic-wrapper .tg-magic-hero__title span { color: var(--magic-secondary) !important; }

#tg-magic-wrapper .tg-magic-hero__desc {
    font-size: 20px !important; color: rgba(255, 255, 255, 0.8) !important;
    max-width: 700px !important; margin: 0 auto !important;
}

/* ============================================================
   [Main Content Sections]
   ============================================================ */
#tg-magic-wrapper .tg-magic-main {
    padding: 40px 20px !important;
    display: flex !important; flex-direction: column !important; gap: 50px !important;
}

#tg-magic-wrapper .tg-magic-section {
    background: var(--magic-white) !important;
    padding: 60px 45px !important;
    border-radius: var(--magic-radius) !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.02) !important;
}

#tg-magic-wrapper .tg-magic-section--dark {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%) !important;
    border: none !important;
}

#tg-magic-wrapper .tg-magic-section__head {
    display: flex !important; align-items: center !important; gap: 16px !important;
    margin-bottom: 35px !important;
}

#tg-magic-wrapper .tg-magic-section__icon {
    width: 60px !important; height: 60px !important;
    background: #eef2ff !important; color: var(--magic-primary) !important;
    border-radius: 18px !important; display: flex !important; align-items: center !important; justify-content: center !important;
}

#tg-magic-wrapper .tg-magic-section--dark .tg-magic-section__icon {
    background: rgba(255, 255, 255, 0.1) !important; color: var(--magic-secondary) !important;
}

#tg-magic-wrapper .tg-magic-section__title {
    font-size: 28px !important; font-weight: 900 !important; color: var(--magic-slate-900) !important;
}

#tg-magic-wrapper .tg-magic-section--dark .tg-magic-section__title {
    color: var(--magic-white) !important;
}

/* ─── 그리드 레이아웃 ─── */
#tg-magic-wrapper .tg-magic-grid {
    display: grid !important; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 25px !important;
}

#tg-magic-wrapper .tg-magic-card {
    background: #fdfdfd !important; padding: 40px 30px !important; border-radius: 28px !important;
    border: 1px solid #f1f5f9 !important; text-align: center !important;
}

#tg-magic-wrapper .tg-magic-card h4 {
    font-size: 22px !important; font-weight: 900 !important; color: var(--magic-slate-900) !important;
    margin-bottom: 15px !important;
}

/* ─── 프로세스 (다크) ─── */
#tg-magic-wrapper .tg-magic-process {
    display: flex !important; flex-direction: column !important; gap: 20px !important;
}

#tg-magic-wrapper .tg-magic-step {
    display: flex !important; align-items: center !important; gap: 25px !important;
    padding: 30px !important; background: rgba(255, 255, 255, 0.03) !important;
    border-radius: 24px !important; border: 1px solid rgba(255, 255, 255, 0.07) !important;
}

#tg-magic-wrapper .tg-magic-step__num {
    width: 44px !important; height: 44px !important; background: var(--magic-secondary) !important;
    color: var(--magic-slate-900) !important; border-radius: 14px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    font-weight: 950 !important; font-size: 22px !important; flex-shrink: 0 !important;
}

#tg-magic-wrapper .tg-magic-step__content h4 {
    font-size: 21px !important; font-weight: 850 !important; color: #fff !important; margin-bottom: 5px !important;
}

#tg-magic-wrapper .tg-magic-step__content p { font-size: 16px !important; color: #cbd5e1 !important; margin: 0 !important; }

/* ─── 이모지 선택 리스트 ─── */
#tg-magic-wrapper .tg-magic-emoji-list {
    display: flex !important; flex-wrap: wrap !important; gap: 20px !important; justify-content: center !important;
    margin-top: 30px !important;
}

#tg-magic-wrapper .tg-magic-emoji-item {
    background: #f8fafc !important; padding: 20px 30px !important; border-radius: 20px !important;
    border: 1px solid #e2e8f0 !important; text-align: center !important; flex: 1 !important;
    min-width: 140px !important;
}

#tg-magic-wrapper .tg-magic-emoji-item .emoji { 
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "Pretendard", sans-serif !important;
    font-size: 40px !important; 
    display: block !important; 
    margin-bottom: 10px !important; 
}
#tg-magic-wrapper .tg-magic-emoji-item .label { font-size: 15px !important; font-weight: 800 !important; color: var(--magic-slate-600) !important; }
/* ============================================================
   [Summary Section]
   ============================================================ */
#tg-magic-wrapper .tg-magic-summary {
    background: linear-gradient(135deg, #312e81 0%, #4338ca 100%) !important;
    padding: 80px 40px !important; border-radius: 40px !important;
    text-align: center !important; color: #fff !important;
}

#tg-magic-wrapper .tg-magic-summary__title {
    font-size: 36px !important; font-weight: 900 !important; margin-bottom: 60px !important;
}

#tg-magic-wrapper .tg-magic-formula {
    display: flex !important; align-items: center !important; justify-content: center !important;
    gap: 25px !important; margin-bottom: 60px !important; flex-wrap: wrap !important;
}

#tg-magic-wrapper .tg-magic-formula__item {
    display: flex !important; flex-direction: column !important; align-items: center !important; gap: 12px !important;
}

#tg-magic-wrapper .tg-magic-formula__icon {
    width: 80px !important; height: 80px !important; background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px !important; border: 1px solid rgba(255, 255, 255, 0.2) !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
}

#tg-magic-wrapper .tg-magic-formula__icon--active {
    background: var(--magic-secondary) !important; color: var(--magic-slate-900) !important; 
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.4) !important;
}

#tg-magic-wrapper .tg-magic-formula__text { font-size: 15px !important; font-weight: 850 !important; }

/* 체크리스트 */
#tg-magic-wrapper .tg-magic-checklist {
    text-align: left !important; display: inline-block !important;
    background: #fff !important; padding: 50px !important; border-radius: 32px !important;
    width: 100% !important; max-width: 850px !important;
}

#tg-magic-wrapper .tg-magic-checklist li {
    position: relative !important; padding-left: 45px !important; margin-bottom: 25px !important;
    color: var(--magic-slate-800) !important; font-size: 18px !important;
}

#tg-magic-wrapper .tg-magic-checklist li:last-child { margin-bottom: 0 !important; }

#tg-magic-wrapper .tg-magic-footer {
    margin-top: 60px !important; font-size: 16px !important; opacity: 0.8 !important;
}
#tg-magic-wrapper .tg-magic-footer a { color: #fff !important; font-weight: 800 !important; text-decoration: underline !important; }

/* 애니메이션 */
.tg-magic-motion { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.tg-magic-motion.is-visible { opacity: 1 !important; transform: translateY(0) !important; }

@media (max-width: 768px) {
    #tg-magic-wrapper .tg-magic-hero__title { font-size: 32px !important; }
    #tg-magic-wrapper .tg-magic-section { padding: 40px 25px !important; }
    #tg-magic-wrapper .tg-magic-checklist { padding: 30px !important; }
}
