/*
 * tips367/style.css  v1.0.0
 * 텔레그램 이모지 암호화 키(E2EE) 확인 가이드
 * 테마: 에메랄드/그린 + 딥 다크 (보안·검증·신뢰)
 * 그누보드5 격리 | BEM | 모바일 퍼스트
 */

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

/* ─── 디자인 토큰 ─── */
#tg-367-wrapper {
    --grn-200:  #bbf7d0;
    --grn-300:  #86efac;
    --grn-400:  #4ade80;
    --grn-500:  #22c55e;
    --grn-600:  #16a34a;
    --grn-700:  #15803d;
    --sky-400:  #38bdf8;
    --gold-300: #fcd34d;
    --red-400:  #f87171;
    --red-500:  #ef4444;
    --orange-400: #fb923c;
    --dk-base:  #001408;
    --sl-50:    #f8fafc;
    --sl-100:   #f1f5f9;
    --sl-200:   #e2e8f0;
    --sl-400:   #94a3b8;
    --sl-500:   #64748b;
    --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-grn: 0 6px 24px rgba(34,197,94,.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-367-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-367-wrapper .tg-367-motion { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
#tg-367-wrapper .tg-367-motion.is-visible { opacity: 1; transform: translateY(0); }

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

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

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

/* 이모지 키 비교 카드 */
#tg-367-wrapper .tg-367-key-explain {
    display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center;
    max-width: 560px; margin: 24px auto 0;
}
#tg-367-wrapper .tg-367-key-card {
    border-radius: var(--radius-sm); padding: 16px; text-align: center;
}
#tg-367-wrapper .tg-367-key-card--me      { background: rgba(34,197,94,.06);  border: 1px solid rgba(34,197,94,.2); }
#tg-367-wrapper .tg-367-key-card--partner { background: rgba(56,189,248,.06); border: 1px solid rgba(56,189,248,.2); }
#tg-367-wrapper .tg-367-key-card__label { font-size: .72rem; font-weight: 800; color: var(--sl-500); margin-bottom: 8px !important; }
#tg-367-wrapper .tg-367-key-card__emojis { font-size: 1.4rem; letter-spacing: 2px; margin-bottom: 8px !important; line-height: 1; }
#tg-367-wrapper .tg-367-key-card__sub { font-size: .64rem; color: var(--sl-400); margin-bottom: 0 !important; }
#tg-367-wrapper .tg-367-key-equal { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--sl-400); font-size: .7rem; font-weight: 700; }
#tg-367-wrapper .tg-367-key-equal .material-symbols-outlined { font-size: 1.4rem; }
#tg-367-wrapper .tg-367-key-equal p { margin-bottom: 0 !important; }
#tg-367-wrapper .tg-367-key-result {
    grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px; border-radius: var(--radius-sm);
    background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.22);
    font-size: .88rem; font-weight: 800; color: var(--grn-600);
}
#tg-367-wrapper .tg-367-key-result--safe .material-symbols-outlined { color: var(--grn-500); font-size: 1.2rem; }
#tg-367-wrapper .tg-367-key-result p { margin-bottom: 0 !important; }
#tg-367-wrapper .tg-367-notice {
    display: flex; align-items: flex-start; gap: 10px; margin-top: 18px;
    background: rgba(56,189,248,.06); border: 1px solid rgba(56,189,248,.18);
    border-radius: var(--radius-sm); padding: 12px 16px;
    font-size: .84rem; color: var(--text-sub); line-height: 1.65; text-align: left; max-width: 680px; margin-left: auto; margin-right: auto;
}
#tg-367-wrapper .tg-367-notice .material-symbols-outlined { font-size: 1.1rem; color: var(--sky-400); flex-shrink: 0; margin-top: 2px; }

/* 공통 섹션 */
#tg-367-wrapper .tg-367-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-367-wrapper .tg-367-section--dark { background: var(--dk-base); border-color: rgba(34,197,94,.1); }
#tg-367-wrapper .tg-367-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-367-wrapper .tg-367-section__label--dark { background: rgba(255,255,255,.13); color: #fff; border: 1px solid rgba(255,255,255,.24); }
#tg-367-wrapper .tg-367-section__label--grn  { background: rgba(34,197,94,.08); color: var(--grn-700); }
#tg-367-wrapper .tg-367-section__label .material-symbols-outlined { font-size: 1rem; }
/* 다크 섹션 제목 — p 태그 처리 */
#tg-367-wrapper .tg-367-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-367-wrapper .tg-367-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-367-wrapper .tg-367-section > p { color: var(--text-sub); max-width: 680px; margin-left: auto; margin-right: auto; }
#tg-367-wrapper .tg-367-section__desc--light { color: rgba(255,255,255,.8) !important; margin-bottom: 28px !important; }

/* ═════════════════════════════════════════
   이모지 키 시뮬레이터
═════════════════════════════════════════ */
#tg-367-wrapper .tg-367-sim-wrap {
    display: flex; flex-direction: column; gap: 16px; max-width: 540px; margin: 0 auto;
}

/* 통화 mock UI */
#tg-367-wrapper .tg-367-call-mock {
    background: #0d1f0f; border: 1px solid rgba(34,197,94,.15); border-radius: 14px; overflow: hidden;
}
#tg-367-wrapper .tg-367-call-mock__top {
    display: flex; align-items: center; justify-content: space-between;
    background: #091508; padding: 10px 14px; border-bottom: 1px solid rgba(34,197,94,.08);
}
#tg-367-wrapper .tg-367-call-mock__title { font-size: .84rem; font-weight: 800; color: rgba(255,255,255,.75); }

/* 이모지 표시 영역 */
#tg-367-wrapper .tg-367-emoji-display {
    display: flex; align-items: center; gap: 4px;
    background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.25); border-radius: 8px; padding: 5px 9px;
}
#tg-367-wrapper .tg-367-edisplay__ico {
    font-size: 1rem; line-height: 1; transition: transform .25s cubic-bezier(.34,1.56,.64,1), opacity .2s;
}
#tg-367-wrapper .tg-367-edisplay__ico.changing { opacity: 0; transform: scale(.5) rotate(20deg); }
#tg-367-wrapper .tg-367-edisplay__badge { font-size: .52rem; font-weight: 900; color: var(--grn-400); margin-left: 4px; letter-spacing: .06em; }

/* 참여자 */
#tg-367-wrapper .tg-367-mock-participants {
    display: flex; gap: 8px; padding: 12px 14px; flex-wrap: wrap;
}
#tg-367-wrapper .tg-367-mock-tile {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    background: rgba(34,197,94,.06); border: 1px solid rgba(34,197,94,.12); border-radius: 8px; padding: 8px 12px;
    animation: tg367FadeIn .3s ease;
}
#tg-367-wrapper .tg-367-mock-tile__av   { font-size: 1.3rem; line-height: 1; }
#tg-367-wrapper .tg-367-mock-tile__name { font-size: .6rem; font-weight: 700; color: rgba(255,255,255,.5); }
#tg-367-wrapper .tg-367-mock-status { font-size: .7rem; font-weight: 700; color: var(--grn-400); padding: 8px 14px; min-height: 32px; }

/* 시나리오 버튼 */
#tg-367-wrapper .tg-367-scenarios { display: flex; flex-direction: column; gap: 8px; }
#tg-367-wrapper .tg-367-scenarios__label { font-size: .75rem; font-weight: 800; color: rgba(255,255,255,.3); margin-bottom: 4px !important; text-transform: uppercase; letter-spacing: .04em; }
#tg-367-wrapper .tg-367-scenario-btn {
    display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-radius: 10px;
    font-size: .84rem; font-weight: 700; transition: filter .18s, transform .1s;
    text-align: left;
}
#tg-367-wrapper .tg-367-scenario-btn:active { transform: scale(.97); }
#tg-367-wrapper .tg-367-scenario-btn .material-symbols-outlined { font-size: 1.1rem; flex-shrink: 0; }
#tg-367-wrapper .tg-367-scenario-btn--safe    { background: rgba(34,197,94,.12);  border: 1px solid rgba(34,197,94,.3);  color: var(--grn-300); }
#tg-367-wrapper .tg-367-scenario-btn--warn    { background: rgba(239,68,68,.12);  border: 1px solid rgba(239,68,68,.3);  color: var(--red-400); }
#tg-367-wrapper .tg-367-scenario-btn--join    { background: rgba(56,189,248,.1);  border: 1px solid rgba(56,189,248,.25); color: var(--sky-400); }
#tg-367-wrapper .tg-367-scenario-btn--leave   { background: rgba(251,146,60,.1);  border: 1px solid rgba(251,146,60,.25); color: var(--orange-400); }
#tg-367-wrapper .tg-367-scenario-btn--refresh { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.5); }
#tg-367-wrapper .tg-367-scenario-btn:hover { filter: brightness(1.12); }

/* 검증 결과 패널 */
#tg-367-wrapper .tg-367-verify-panel {
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 14px;
    min-height: 52px; display: flex; align-items: center; justify-content: center;
}
#tg-367-wrapper .tg-367-verify-panel__msg { font-size: .82rem; color: rgba(255,255,255,.5); text-align: center; margin-bottom: 0 !important; line-height: 1.6 !important; }
#tg-367-wrapper .tg-367-verify-panel--safe { border-color: rgba(34,197,94,.3);  background: rgba(34,197,94,.08); }
#tg-367-wrapper .tg-367-verify-panel--safe .tg-367-verify-panel__msg { color: var(--grn-300); }
#tg-367-wrapper .tg-367-verify-panel--warn { border-color: rgba(239,68,68,.3);  background: rgba(239,68,68,.08); }
#tg-367-wrapper .tg-367-verify-panel--warn .tg-367-verify-panel__msg { color: var(--red-400); }
#tg-367-wrapper .tg-367-verify-panel--info { border-color: rgba(56,189,248,.3); background: rgba(56,189,248,.08); }
#tg-367-wrapper .tg-367-verify-panel--info .tg-367-verify-panel__msg { color: var(--sky-400); }

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

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

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

/* ─── 반응형 ─── */
@media (min-width: 640px) {
    #tg-367-wrapper .tg-367-summary__grid { grid-template-columns: repeat(4,1fr); }
    #tg-367-wrapper .tg-367-key-explain { grid-template-columns: 1fr auto 1fr; }
}
@media (min-width: 720px) {
    #tg-367-wrapper .tg-367-sim-wrap { flex-direction: row; align-items: flex-start; }
    #tg-367-wrapper .tg-367-call-mock { flex: 1; }
    #tg-367-wrapper .tg-367-scenarios { flex: 0 0 220px; }
}
@media (min-width: 900px) {
    #tg-367-wrapper .tg-367-hero { padding: 80px 56px 90px; }
    #tg-367-wrapper .tg-367-section, #tg-367-wrapper .tg-367-intro { padding: 52px 48px; }
}
