/* =========================================================================
   tangle-effects.css — 움직임 · 효과 (애니메이션) 한 곳에 — 새 효과도 여기에 · 움직임 줄이기 설정이면 멈춤
   index.html 이 <link> 로 불러요 (주소는 src/ 기준). 디자인 값(색 · 글꼴 · 크기)은 CSS 변수 --tg-… (core/tangle-theme.js)
   ========================================================================= */
@keyframes tg-trial-in{0%{opacity:0;transform:translateY(-6px) scale(.98)}100%{opacity:1;transform:none}}
.tg-trial-banner{animation:tg-trial-in .45s ease-out}
/* '나' 창 요금제 줄: Tangle 초록 바탕 + 초록 · 민트 · 흰 빛이 테두리를 따라 흐르고, 빛이 가끔 지나가고, › 가 살짝 손짓, 둘레에 별이 반짝 (눈에 띄게) */
@keyframes tg-plan-flow{0%{background-position:0 0,0% 50%}100%{background-position:0 0,300% 50%}}
@keyframes tg-plan-shine{0%,62%{transform:translateX(-140%) skewX(-20deg)}100%{transform:translateX(360%) skewX(-20deg)}}
@keyframes tg-plan-nudge{0%,70%,100%{transform:translateX(0)}80%{transform:translateX(4px)}90%{transform:translateX(-1px)}}
@keyframes tg-plan-glow{0%,100%{box-shadow:0 2px 10px rgba(15,111,99,.18)}50%{box-shadow:0 4px 22px rgba(47,191,159,.45)}}
@keyframes tg-plan-twinkle{0%,100%{opacity:0;transform:scale(.4) rotate(0)}45%{opacity:1;transform:scale(1.1) rotate(25deg)}60%{opacity:.9;transform:scale(.9) rotate(35deg)}}
.tg-plan-row{position:relative;overflow:hidden;border:2px solid transparent !important;background:linear-gradient(120deg,var(--tg-accent, #0f6f63),#1c9a85 55%,#2fbf9f) padding-box,linear-gradient(90deg,#0f6f63,#2fbf9f,#b8f0df,#ffffff,#2fbf9f,#0f6f63) border-box !important;background-size:100% 100%,300% 100% !important;animation:tg-plan-flow 6s linear infinite,tg-plan-glow 3s ease-in-out infinite}
.tg-plan-row::after{content:'';position:absolute;top:0;left:0;width:35%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,246,200,.22),rgba(255,255,255,.4),rgba(255,212,59,.25),transparent);animation:tg-plan-shine 4.5s ease-in-out infinite;pointer-events:none}
.tg-plan-row:hover{transform:translateY(-1px);background:linear-gradient(120deg,#0a5d53,#178b77 55%,#27ad90) padding-box,linear-gradient(90deg,#0f6f63,#2fbf9f,#b8f0df,#ffffff,#2fbf9f,#0f6f63) border-box !important;background-size:100% 100%,300% 100% !important}
/* 요금제 시작 버튼: 누르면 반짝(빛이 지나가고 별이 튐) 한 번 → 결제 창 */
@keyframes tg-spark-sweep{0%{transform:translateX(-120%) skewX(-20deg)}100%{transform:translateX(320%) skewX(-20deg)}}
@keyframes tg-spark-pop{0%{transform:scale(1)}35%{transform:scale(1.06)}100%{transform:scale(1)}}
@keyframes tg-spark-star{0%{opacity:0;transform:translate(0,0) scale(.3) rotate(0)}30%{opacity:1}100%{opacity:0;transform:translate(var(--sx),var(--sy)) scale(1.1) rotate(160deg)}}
.tg-plan-btn{position:relative;overflow:hidden}   /* 별은 버튼 안에서만 (창에 스크롤 막대가 생기지 않게) */
.tg-plan-btn[data-sparkle="on"]{animation:tg-spark-pop .55s ease-out;box-shadow:0 0 0 3px rgba(47,191,159,.35),0 0 18px rgba(255,212,59,.55)}
.tg-plan-btn[data-sparkle="on"]::before{content:'';position:absolute;inset:0;border-radius:inherit;background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.75) 50%,transparent 70%);background-size:100% 100%;animation:tg-spark-sweep .55s ease-out both;pointer-events:none;clip-path:inset(0 round 10px)}
.tg-spark{position:absolute;left:50%;top:50%;pointer-events:none}
.tg-spark i{position:absolute;left:-6px;top:-6px;width:12px;height:12px;background:#ffd43b;clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);animation:tg-spark-star .6s ease-out both}
.tg-spark i:nth-child(1){--sx:-70px;--sy:-12px}.tg-spark i:nth-child(2){--sx:68px;--sy:-11px;background:#2fbf9f}.tg-spark i:nth-child(3){--sx:-46px;--sy:12px;background:#f783ac}.tg-spark i:nth-child(4){--sx:50px;--sy:12px}.tg-spark i:nth-child(5){--sx:0;--sy:-14px;background:#fff}.tg-spark i:nth-child(6){--sx:-105px;--sy:3px;background:#2fbf9f}.tg-spark i:nth-child(7){--sx:108px;--sy:2px;background:#f783ac}
@keyframes tg-plan-choice{0%,100%{transform:none}38%{transform:translateY(-4px);box-shadow:0 0 0 3px var(--tg-celebration),0 10px 32px var(--tg-celebration)}}
.tg-plan[data-sparkle="on"]{--tg-celebration:#2fbf9f;animation:tg-plan-choice .6s ease-out;border-color:var(--tg-celebration)}
.tg-plan[data-profile-card="pro"][data-sparkle="on"]{--tg-celebration:#be8cf7}
.tg-welcome-pop[data-welcome-tier="standard"] .tg-trial-shine{background:linear-gradient(115deg,#064e45,#087f70 62%,#16678b)!important}
.tg-welcome-pop[data-welcome-tier="pro"] .tg-trial-shine{background:linear-gradient(115deg,#262053,#563483 62%,#7e4c78)!important}
@keyframes tg-checkout-aura{0%{opacity:0;transform:scale(.65)}35%{opacity:1}100%{opacity:0;transform:scale(1.4)}}
.tg-checkout-popup[data-checkout-tier]{--tg-celebration:#38d9a9}
.tg-checkout-popup[data-checkout-tier="pro"]{--tg-celebration:#bb94ff}
.tg-checkout-popup:is([data-checkout-tier="standard"],[data-checkout-tier="pro"]) [data-pro-wrap]>.popup-card{position:relative;z-index:1;text-align:center;animation:tg-trial-pop .65s cubic-bezier(.2,.9,.3,1.2) both}
.tg-checkout-aura{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at center,var(--tg-celebration) 0%,transparent 62%);animation:tg-checkout-aura 1.7s ease-out both}
/* 결제 완료 창: 화면 전체로 터지는 종이 폭죽 */
@keyframes tg-party-pop{0%{transform:scale(.2) rotate(-30deg);opacity:0}55%{transform:scale(1.25) rotate(10deg);opacity:1}75%{transform:scale(.92) rotate(-4deg)}100%{transform:none}}
@keyframes tg-confetti{0%{opacity:1;transform:translate(0,0) rotate(0) scale(.6)}40%{opacity:1;transform:translate(clamp(-44vw,calc(var(--cx) * 2.6),44vw),clamp(-30vh,calc(var(--cy) * 1.2 - 145px),32vh)) rotate(calc(var(--cr) / 2)) scale(1)}75%{opacity:1}100%{opacity:0;transform:translate(clamp(-49vw,calc(var(--cx) * 3),49vw),clamp(-20vh,calc(var(--cy) * 1.5 + 15px),46vh)) rotate(var(--cr)) scale(.9)}}
.tg-party{display:block;font-size:40px;line-height:1;text-align:center;margin:-4px 0 8px;animation:tg-party-pop .7s cubic-bezier(.2,.9,.3,1.3) both}
.tg-confetti-box{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:2}
.tg-confetti{position:absolute;left:50%;top:44%;width:0;height:0;pointer-events:none}
.tg-confetti i{position:absolute;width:8px;height:12px;border-radius:2px;background:#2fbf9f;animation:tg-confetti 2.25s cubic-bezier(.15,.7,.4,1) .15s both}
.tg-confetti i:nth-child(3n){background:#ffd43b;border-radius:50%;width:9px;height:9px}.tg-confetti i:nth-child(3n+1){background:#f783ac}.tg-confetti i:nth-child(4n){background:#7048e8}.tg-confetti i:nth-child(5n){background:var(--tg-accent, #0f6f63)}
.tg-confetti i:nth-child(1){--cx:-150px;--cy:40px;--cr:260deg;animation-delay:0.12s}
.tg-confetti i:nth-child(2){--cx:150px;--cy:30px;--cr:-240deg;animation-delay:0.15s}
.tg-confetti i:nth-child(3){--cx:-110px;--cy:120px;--cr:300deg;animation-delay:0.18s}
.tg-confetti i:nth-child(4){--cx:120px;--cy:130px;--cr:-320deg;animation-delay:0.21s}
.tg-confetti i:nth-child(5){--cx:-60px;--cy:-60px;--cr:200deg;animation-delay:0.24s}
.tg-confetti i:nth-child(6){--cx:70px;--cy:-70px;--cr:-220deg;animation-delay:0.27s}
.tg-confetti i:nth-child(7){--cx:-170px;--cy:150px;--cr:360deg;animation-delay:0.12s}
.tg-confetti i:nth-child(8){--cx:175px;--cy:160px;--cr:-360deg;animation-delay:0.15s}
.tg-confetti i:nth-child(9){--cx:-30px;--cy:170px;--cr:280deg;animation-delay:0.18s}
.tg-confetti i:nth-child(10){--cx:35px;--cy:165px;--cr:-300deg;animation-delay:0.21s}
.tg-confetti i:nth-child(11){--cx:-135px;--cy:-20px;--cr:240deg;animation-delay:0.24s}
.tg-confetti i:nth-child(12){--cx:140px;--cy:-30px;--cr:-260deg;animation-delay:0.27s}
.tg-confetti i:nth-child(13){--cx:-85px;--cy:60px;--cr:340deg;animation-delay:0.12s}
.tg-confetti i:nth-child(14){--cx:90px;--cy:70px;--cr:-340deg;animation-delay:0.15s}
.tg-confetti i:nth-child(15){--cx:-15px;--cy:-80px;--cr:180deg;animation-delay:0.18s}
.tg-confetti i:nth-child(16){--cx:20px;--cy:100px;--cr:-200deg;animation-delay:0.21s}
.tg-confetti i:nth-child(17){--cx:-190px;--cy:90px;--cr:300deg;animation-delay:0.24s}
.tg-confetti i:nth-child(18){--cx:195px;--cy:80px;--cr:-280deg;animation-delay:0.27s}
@media (prefers-reduced-motion:reduce){.tg-plan-btn[data-sparkle="on"],.tg-plan-btn[data-sparkle="on"]::before,.tg-spark i,.tg-party,.tg-confetti i{animation:none} .tg-plan[data-sparkle="on"],.tg-checkout-popup:is([data-checkout-tier="standard"],[data-checkout-tier="pro"])>.popup-card{animation:none}.tg-spark,.tg-confetti,.tg-checkout-aura{display:none}}
.tg-plan-arrow{display:inline-block;animation:tg-plan-nudge 2.2s ease-in-out infinite}
.tg-plan-row{z-index:1}
/* 특별 대우 반짝임 (.tg-glint — 요금제 줄 · 무료 체험 알림 창 · 요금제 화면 체험 띠): 뒤에서 금빛 · 민트 빛무리가 돌고, 별 8개가 번갈아 반짝이고, 빛 알갱이가 떠오름
   안쪽 칸이 overflow:hidden 이라 감싸는 칸에 그림 — 별 · 알갱이는 <i> 8 + <b> 4 (index.html) · 빛무리 모서리는 --tg-glint-r */
@property --tg-halo{syntax:'<angle>';inherits:false;initial-value:0deg}
@keyframes tg-halo-spin{to{--tg-halo:360deg}}
/* 요금제 화면: 지금 내 요금제 카드가 빛남 — Standard 는 민트 빛 줄기, Pro 는 금빛 줄기 + 금빛 숨결 (카드 안은 그대로, 둘레만) */
@keyframes tg-aura-std{0%,100%{box-shadow:0 2px 10px rgba(47,191,159,.18)}50%{box-shadow:0 0 22px 2px rgba(47,191,159,.55)}}
@keyframes tg-aura-pro{0%,100%{box-shadow:0 2px 12px rgba(245,159,0,.22)}50%{box-shadow:0 0 26px 3px rgba(255,212,59,.65)}}
.tg-plan[data-current="1"][data-profile-card="standard"],.tg-plan[data-current="1"][data-profile-card="pro"]{border:2px solid transparent !important;box-shadow:none}
.tg-plan[data-current="1"][data-profile-card="standard"]{background:linear-gradient(#fff,#fff) padding-box,conic-gradient(from var(--tg-halo),#2fbf9f,#b8f0df 16%,#e3e0d9 30%,#e3e0d9 55%,#0f6f63 70%,#2fbf9f) border-box;animation:tg-halo-spin 5s linear infinite,tg-aura-std 3s ease-in-out infinite}
.tg-plan[data-current="1"][data-profile-card="pro"]{background:linear-gradient(#fff,#fff) padding-box,conic-gradient(from var(--tg-halo),#ffd43b,#fff6c8 16%,#e3e0d9 30%,#e3e0d9 55%,#f59f00 70%,#ffd43b) border-box;animation:tg-halo-spin 3.5s linear infinite,tg-aura-pro 2.6s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){.tg-plan[data-current="1"][data-profile-card="standard"],.tg-plan[data-current="1"][data-profile-card="pro"]{animation:none}}
@keyframes tg-halo-breathe{0%,100%{opacity:.55;transform:scale(1)}50%{opacity:.9;transform:scale(1.03)}}
@keyframes tg-float-up{0%{opacity:0;transform:translateY(0) scale(.4)}20%{opacity:1}100%{opacity:0;transform:translateY(-34px) scale(1)}}
.tg-glint{position:relative;isolation:isolate}
.tg-glint>:not(i):not(b){position:relative;z-index:1}
.tg-glint::before{content:'';position:absolute;inset:-5px;border-radius:var(--tg-glint-r, 16px);z-index:0;pointer-events:none;background:conic-gradient(from var(--tg-halo),#2fbf9f,#ffd43b,#fff6c8,#2fbf9f,#b8f0df,#ffd43b,#2fbf9f);filter:blur(9px);animation:tg-halo-spin 5s linear infinite,tg-halo-breathe 2.6s ease-in-out infinite}
.tg-glint>i,.tg-glint>b{position:absolute;z-index:3;pointer-events:none;font-style:normal;font-weight:400;line-height:1}
.tg-glint>i::before{content:'✦'}
.tg-glint>i{color:#ffd43b;text-shadow:0 0 8px rgba(255,212,59,.95),0 0 2px #fff;animation:tg-plan-twinkle 2.2s ease-in-out infinite}
.tg-glint>i:nth-of-type(1){top:-15px;right:10%;font-size:22px}
.tg-glint>i:nth-of-type(2){bottom:-13px;left:5%;font-size:18px;animation-delay:.4s}
.tg-glint>i:nth-of-type(3){top:-12px;left:34%;font-size:13px;color:#b8f0df;text-shadow:0 0 8px #fff;animation-delay:.9s}
.tg-glint>i:nth-of-type(4){bottom:-11px;right:30%;font-size:15px;color:#fff6c8;animation-delay:1.3s}
.tg-glint>i:nth-of-type(5){top:30%;right:-9px;font-size:16px;color:#2fbf9f;text-shadow:0 0 8px rgba(47,191,159,.95);animation-delay:1.7s}
.tg-glint>i:nth-of-type(6){top:22%;left:-8px;font-size:14px;animation-delay:.2s}
.tg-glint>i:nth-of-type(7){top:-9px;left:3%;font-size:11px;color:#fff;animation-delay:1.1s}
.tg-glint>i:nth-of-type(8){bottom:-9px;right:4%;font-size:12px;color:#ffd43b;animation-delay:2s}
.tg-glint>b{bottom:6px;width:5px;height:5px;border-radius:50%;background:radial-gradient(circle,#fff,#ffd43b 60%,transparent 70%);box-shadow:0 0 6px #ffd43b;animation:tg-float-up 2.8s ease-out infinite}
.tg-glint>b:nth-of-type(1){left:18%}
.tg-glint>b:nth-of-type(2){left:46%;animation-delay:.7s;background:radial-gradient(circle,#fff,#b8f0df 60%,transparent 70%);box-shadow:0 0 6px #b8f0df}
.tg-glint>b:nth-of-type(3){left:68%;animation-delay:1.4s}
.tg-glint>b:nth-of-type(4){left:86%;animation-delay:2.1s;background:radial-gradient(circle,#fff,#2fbf9f 60%,transparent 70%);box-shadow:0 0 6px #2fbf9f}
@media (prefers-reduced-motion:reduce){.tg-plan-row,.tg-plan-row::after,.tg-plan-arrow{animation:none}.tg-glint::before,.tg-glint>i{animation:none;opacity:.8}.tg-glint>b{display:none}}
/* 무료 체험 알림 창: 톡 튀어나오고 · 선물 두 번 흔들림 → 초록 위로 빛 한 번 → 되풀이 ([확인]으로 닫을 때까지) */
@keyframes tg-trial-pop{0%{opacity:0;transform:translateY(24px) scale(.86)}60%{opacity:1;transform:translateY(-4px) scale(1.03)}100%{transform:none}}
/* 한 바퀴 3.4초: 선물 두 번 흔들림(0~48%) → 빛 한 번 지나감(52~88%) → 되풀이 (둘이 같은 길이 · 같은 시작이라 순서가 어긋나지 않음) */
@keyframes tg-gift{0%,24%,48%,100%{transform:rotate(0) scale(1)}6%,30%{transform:rotate(-14deg) scale(1.15)}12%,36%{transform:rotate(12deg) scale(1.15)}18%,42%{transform:rotate(-6deg) scale(1.05)}}
@keyframes tg-shine{0%,52%{transform:translateX(-120%) skewX(-20deg)}88%,100%{transform:translateX(260%) skewX(-20deg)}}
.tg-trial-pop{animation:tg-trial-pop .55s cubic-bezier(.2,.9,.3,1.2) both}
.tg-gift{animation:tg-gift 3.4s ease-in-out .5s infinite}   /* 닫을 때까지 되풀이 */
.tg-trial-shine::after{content:'';position:absolute;top:0;left:0;width:40%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.35),transparent);animation:tg-shine 3.4s ease-out .5s infinite both;pointer-events:none}   /* 선물 두 번 뒤에 한 번 */
@media (prefers-reduced-motion:reduce){.tg-trial-pop,.tg-gift,.tg-trial-shine::after{animation:none}}
/* 무료 체험 알림 창 환영 무대 (.tg-welcome — index.html): 창 뒤 화면 전체에 폭죽 6개가 번갈아 터지고 알록달록 종이가 내림 ([확인]으로 닫을 때까지)
   불꽃은 멈춰 보이지 않게: 터지자마자 빠르게 퍼지고 → 사라질 때까지 계속 퍼짐(머무는 때 없음) · 자기 차례 전에는 빛 · 점 모두 숨김 */
@keyframes tg-fw-spark{0%{opacity:0;transform:rotate(var(--fa)) translateY(0) scale(.3)}5%{opacity:1}18%{transform:rotate(var(--fa)) translateY(calc(var(--fr) * -.6)) scale(1)}40%{opacity:1;transform:rotate(var(--fa)) translateY(calc(var(--fr) * -.95)) scale(.9)}75%,100%{opacity:0;transform:rotate(var(--fa)) translateY(calc(var(--fr) * -1.3)) scale(.5)}}
@keyframes tg-fw-flash{0%{opacity:0;transform:scale(.2)}8%{opacity:.9;transform:scale(1)}40%,100%{opacity:0;transform:scale(1.6)}}
@keyframes tg-rain{0%{transform:translate(0,-24px) rotate(0)}100%{transform:translate(var(--rx),110vh) rotate(var(--rr))}}
@keyframes tg-welcome-glow{0%,100%{opacity:.55}50%{opacity:1}}
.tg-welcome{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.tg-welcome::before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 20% 25%,rgba(255,212,59,.28),transparent 40%),radial-gradient(circle at 80% 20%,rgba(47,191,159,.3),transparent 42%),radial-gradient(circle at 50% 85%,rgba(247,131,172,.25),transparent 45%);animation:tg-welcome-glow 3s ease-in-out infinite}
.tg-welcome-pop>.tg-glint{z-index:1}
/* 환영 창 둘레를 도는 빛무리 · 별 · 빛 알갱이는 쓰지 않음 (.tg-glint 규칙은 남겨 둠 — 다시 쓰려면 이 줄만 지움) */
.tg-welcome-pop>.tg-glint::before,.tg-welcome-pop>.tg-glint>i,.tg-welcome-pop>.tg-glint>b{display:none}
/* 순서: 창 앞 종이 폭죽이 먼저 크게 터지고(.tg-burst) → 퍼질 때쯤(--tg-fw-after) 둘레 불꽃이 차례로 이어짐 */
.tg-welcome{--tg-fw-after:1.2s}
.tg-fw{position:absolute;width:0;height:0;--fr:min(var(--fs),22vw)}
.tg-fw::before{content:'';position:absolute;left:-28px;top:-28px;width:56px;height:56px;border-radius:50%;background:radial-gradient(circle,#fff,var(--fc) 45%,transparent 70%);animation:tg-fw-flash 2.4s ease-out infinite both;animation-delay:calc(var(--fd) + var(--tg-fw-after, 1.2s))}
.tg-fw i{position:absolute;left:-4px;top:-4px;width:8px;height:8px;border-radius:50%;background:var(--fc);box-shadow:0 0 8px var(--fc),0 0 2px #fff;animation:tg-fw-spark 2.4s linear infinite both;animation-delay:calc(var(--fd) + var(--tg-fw-after, 1.2s))}
.tg-fw i:nth-child(even){background:#fff;width:5px;height:5px;left:-2.5px;top:-2.5px}
.tg-fw i:nth-child(1){--fa:0deg}
.tg-fw i:nth-child(2){--fa:30deg}
.tg-fw i:nth-child(3){--fa:60deg}
.tg-fw i:nth-child(4){--fa:90deg}
.tg-fw i:nth-child(5){--fa:120deg}
.tg-fw i:nth-child(6){--fa:150deg}
.tg-fw i:nth-child(7){--fa:180deg}
.tg-fw i:nth-child(8){--fa:210deg}
.tg-fw i:nth-child(9){--fa:240deg}
.tg-fw i:nth-child(10){--fa:270deg}
.tg-fw i:nth-child(11){--fa:300deg}
.tg-fw i:nth-child(12){--fa:330deg}
.tg-fw:nth-child(1){left:14%;top:20%;--fd:0.0s;--fs:128px;--fc:#ffd43b}
.tg-fw:nth-child(2){left:84%;top:16%;--fd:0.4s;--fs:115px;--fc:#2fbf9f}
.tg-fw:nth-child(3){left:50%;top:8%;--fd:0.8s;--fs:102px;--fc:#f783ac}
.tg-fw:nth-child(4){left:10%;top:72%;--fd:1.2s;--fs:121px;--fc:#7048e8}
.tg-fw:nth-child(5){left:88%;top:74%;--fd:1.6s;--fs:134px;--fc:#fff6c8}
.tg-fw:nth-child(6){left:66%;top:90%;--fd:2.0s;--fs:96px;--fc:#4dabf7}
.tg-rain s{position:absolute;top:0;width:8px;height:13px;border-radius:2px;text-decoration:none;animation:tg-rain var(--rd) linear infinite;animation-delay:var(--rl)}
.tg-rain s:nth-child(1){left:1.5%;--rd:4.0s;--rl:0.00s;--rx:-42px;--rr:-360deg;background:#ffd43b;border-radius:50%;width:9px;height:9px}
.tg-rain s:nth-child(2){left:5.7%;--rd:4.7s;--rl:4.27s;--rx:-28px;--rr:450deg;background:#2fbf9f}
.tg-rain s:nth-child(3){left:9.8%;--rd:5.4s;--rl:4.54s;--rx:-14px;--rr:-180deg;background:#f783ac}
.tg-rain s:nth-child(4){left:14.0%;--rd:6.1s;--rl:4.81s;--rx:0px;--rr:630deg;background:#7048e8;border-radius:50%;width:9px;height:9px}
.tg-rain s:nth-child(5){left:18.1%;--rd:6.8s;--rl:5.08s;--rx:14px;--rr:-360deg;background:#fff6c8}
.tg-rain s:nth-child(6){left:22.2%;--rd:4.0s;--rl:1.85s;--rx:28px;--rr:450deg;background:#4dabf7}
.tg-rain s:nth-child(7){left:26.4%;--rd:4.7s;--rl:2.12s;--rx:42px;--rr:-180deg;background:#ffd43b;border-radius:50%;width:9px;height:9px}
.tg-rain s:nth-child(8){left:30.6%;--rd:5.4s;--rl:2.39s;--rx:-42px;--rr:630deg;background:#2fbf9f}
.tg-rain s:nth-child(9){left:34.7%;--rd:6.1s;--rl:2.66s;--rx:-28px;--rr:-360deg;background:#f783ac}
.tg-rain s:nth-child(10){left:38.9%;--rd:6.8s;--rl:2.93s;--rx:-14px;--rr:450deg;background:#7048e8;border-radius:50%;width:9px;height:9px}
.tg-rain s:nth-child(11){left:43.0%;--rd:4.0s;--rl:3.70s;--rx:0px;--rr:-180deg;background:#fff6c8}
.tg-rain s:nth-child(12){left:47.2%;--rd:4.7s;--rl:4.67s;--rx:14px;--rr:630deg;background:#4dabf7}
.tg-rain s:nth-child(13){left:51.3%;--rd:5.4s;--rl:0.24s;--rx:28px;--rr:-360deg;background:#ffd43b;border-radius:50%;width:9px;height:9px}
.tg-rain s:nth-child(14){left:55.5%;--rd:6.1s;--rl:0.51s;--rx:42px;--rr:450deg;background:#2fbf9f}
.tg-rain s:nth-child(15){left:59.6%;--rd:6.8s;--rl:0.78s;--rx:-42px;--rr:-180deg;background:#f783ac}
.tg-rain s:nth-child(16){left:63.8%;--rd:4.0s;--rl:1.55s;--rx:-28px;--rr:630deg;background:#7048e8;border-radius:50%;width:9px;height:9px}
.tg-rain s:nth-child(17){left:67.9%;--rd:4.7s;--rl:2.52s;--rx:-14px;--rr:-360deg;background:#fff6c8}
.tg-rain s:nth-child(18){left:72.1%;--rd:5.4s;--rl:3.49s;--rx:0px;--rr:450deg;background:#4dabf7}
.tg-rain s:nth-child(19){left:76.2%;--rd:6.1s;--rl:4.46s;--rx:14px;--rr:-180deg;background:#ffd43b;border-radius:50%;width:9px;height:9px}
.tg-rain s:nth-child(20){left:80.4%;--rd:6.8s;--rl:5.43s;--rx:28px;--rr:630deg;background:#2fbf9f}
.tg-rain s:nth-child(21){left:84.5%;--rd:4.0s;--rl:3.40s;--rx:42px;--rr:-360deg;background:#f783ac}
.tg-rain s:nth-child(22){left:88.7%;--rd:4.7s;--rl:0.37s;--rx:-42px;--rr:450deg;background:#7048e8;border-radius:50%;width:9px;height:9px}
.tg-rain s:nth-child(23){left:92.8%;--rd:5.4s;--rl:1.34s;--rx:-28px;--rr:-180deg;background:#fff6c8}
.tg-rain s:nth-child(24){left:97.0%;--rd:6.1s;--rl:2.31s;--rx:-14px;--rr:630deg;background:#4dabf7}
/* 환영 무대: 창 앞에서 종이가 화면 끝까지 크게 한 번만 터짐 */
@keyframes tg-burst{0%{opacity:0;transform:translate(0,0) rotate(0) scale(.4)}6%{opacity:1}55%{opacity:1;transform:translate(var(--bx),var(--by)) rotate(var(--br)) scale(1)}100%{opacity:0;transform:translate(calc(var(--bx) * 1.08),calc(var(--by) + 18vh)) rotate(calc(var(--br) * 1.4)) scale(.8)}}
.tg-burst-front{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:3}   /* 창 앞 층: 종이가 창에 가려지지 않음 */
.tg-burst{position:absolute;left:50%;top:50%;width:0;height:0}
.tg-burst i{position:absolute;left:-5px;top:-7px;width:10px;height:14px;border-radius:2px;animation:tg-burst 3.6s cubic-bezier(.12,.7,.35,1) 1 both}   /* 한 번만 */
.tg-burst i:nth-child(1){--bx:31.0vw;--by:0.0vh;--br:-540deg;background:#ffd43b;animation-delay:0.15s;border-radius:50%;width:11px;height:11px}
.tg-burst i:nth-child(2){--bx:36.2vw;--by:13.1vh;--br:540deg;background:#2fbf9f;animation-delay:0.21s}
.tg-burst i:nth-child(3){--bx:41.4vw;--by:20.0vh;--br:-540deg;background:#f783ac;animation-delay:0.27s}
.tg-burst i:nth-child(4){--bx:24.3vw;--by:24.8vh;--br:540deg;background:#7048e8;animation-delay:0.33s;border-radius:50%;width:11px;height:11px}
.tg-burst i:nth-child(5){--bx:26.3vw;--by:33.0vh;--br:-540deg;background:#4dabf7;animation-delay:0.15s}
.tg-burst i:nth-child(6){--bx:9.9vw;--by:29.4vh;--br:540deg;background:#fff6c8;animation-delay:0.21s}
.tg-burst i:nth-child(7){--bx:8.6vw;--by:37.5vh;--br:-540deg;background:#ff922b;animation-delay:0.27s;border-radius:50%;width:11px;height:11px}
.tg-burst i:nth-child(8){--bx:-5.6vw;--by:45.7vh;--br:540deg;background:#ffd43b;animation-delay:0.33s}
.tg-burst i:nth-child(9){--bx:-7.7vw;--by:33.9vh;--br:-540deg;background:#2fbf9f;animation-delay:0.15s}
.tg-burst i:nth-child(10){--bx:-22.8vw;--by:35.5vh;--br:540deg;background:#f783ac;animation-delay:0.21s;border-radius:50%;width:11px;height:11px}
.tg-burst i:nth-child(11){--bx:-19.3vw;--by:24.2vh;--br:-540deg;background:#7048e8;animation-delay:0.27s}
.tg-burst i:nth-child(12){--bx:-32.8vw;--by:20.2vh;--br:540deg;background:#4dabf7;animation-delay:0.33s}
.tg-burst i:nth-child(13){--bx:-41.4vw;--by:20.0vh;--br:-540deg;background:#fff6c8;animation-delay:0.15s;border-radius:50%;width:11px;height:11px}
.tg-burst i:nth-child(14){--bx:-34.6vw;--by:3.5vh;--br:540deg;background:#ff922b;animation-delay:0.21s}
.tg-burst i:nth-child(15){--bx:-42.2vw;--by:0.0vh;--br:-540deg;background:#ffd43b;animation-delay:0.27s}
.tg-burst i:nth-child(16){--bx:-29.2vw;--by:-10.5vh;--br:540deg;background:#2fbf9f;animation-delay:0.33s;border-radius:50%;width:11px;height:11px}
.tg-burst i:nth-child(17){--bx:-34.7vw;--by:-16.7vh;--br:-540deg;background:#f783ac;animation-delay:0.15s}
.tg-burst i:nth-child(18){--bx:-32.2vw;--by:-32.8vh;--br:540deg;background:#7048e8;animation-delay:0.21s}
.tg-burst i:nth-child(19){--bx:-21.7vw;--by:-27.2vh;--br:-540deg;background:#4dabf7;animation-delay:0.27s;border-radius:50%;width:11px;height:11px}
.tg-burst i:nth-child(20){--bx:-13.6vw;--by:-40.0vh;--br:540deg;background:#fff6c8;animation-delay:0.33s}
.tg-burst i:nth-child(21){--bx:-6.9vw;--by:-30.2vh;--br:-540deg;background:#ff922b;animation-delay:0.15s}
.tg-burst i:nth-child(22){--bx:4.7vw;--by:-38.2vh;--br:540deg;background:#ffd43b;animation-delay:0.21s;border-radius:50%;width:11px;height:11px}
.tg-burst i:nth-child(23){--bx:10.2vw;--by:-44.8vh;--br:-540deg;background:#2fbf9f;animation-delay:0.27s}
.tg-burst i:nth-child(24){--bx:18.8vw;--by:-29.2vh;--br:540deg;background:#f783ac;animation-delay:0.33s}
.tg-burst i:nth-child(25){--bx:26.3vw;--by:-33.0vh;--br:-540deg;background:#7048e8;animation-delay:0.15s;border-radius:50%;width:11px;height:11px}
.tg-burst i:nth-child(26){--bx:26.4vw;--by:-16.2vh;--br:540deg;background:#4dabf7;animation-delay:0.21s}
.tg-burst i:nth-child(27){--bx:34.7vw;--by:-16.7vh;--br:-540deg;background:#fff6c8;animation-delay:0.27s}
.tg-burst i:nth-child(28){--bx:45.8vw;--by:-4.7vh;--br:540deg;background:#ff922b;animation-delay:0.33s;border-radius:50%;width:11px;height:11px}
@media (prefers-reduced-motion:reduce){.tg-welcome,.tg-burst-front{display:none}}
/* 왼쪽 위 Tangle: 처음 열 때 · 목록에서 다른 보드로 들어갈 때(새로 열림)만 색이 2번 깜빡 — 보드 목록이 여기 있다는 표시 (▾ 없이 Tangle 글자만)
   마우스를 올리거나 눌러도 다시 깜빡이지 않게 :hover 로 animation 을 끄지 않음 (끄면 마우스가 떠날 때 처음부터 다시 돎) */
@keyframes tg-chat-pop{0%{opacity:0;transform:translateY(14px) scale(.9)}12%{opacity:1;transform:translateY(0) scale(1)}85%{opacity:1}100%{opacity:0;transform:translateY(-10px)}}
.tg-chat-pop{animation:tg-chat-pop 6s ease-out forwards}
@keyframes tg-boards-blink{0%,100%{color:var(--tg-text, #1a1c20);background:#fff}50%{color:#fff;background:var(--tg-accent, #0f6f63)}}
.tg-boards-btn{animation:tg-boards-blink .6s ease-in-out 2}
@media (prefers-reduced-motion:reduce){.tg-boards-btn{animation:none}}
/* 채팅 창 [말풍선 고르기] 아이콘: 말풍선 안에서 점 세 개가 차례로 통통 (글 쓰는 중처럼) — 말풍선 몸통 자리(아이콘 24칸 중 x 2~17 · y 6.5~16.5)에 겹침 */
@keyframes tg-typing{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-2px);opacity:1}}
.tg-chat-skin-action{display:flex;align-items:center;gap:5px;white-space:nowrap}
/* 말풍선 고르기 버튼: 글자 없이 큰 아이콘 (28px, 기본 20px) · 점도 같이 크게 */
.tg-chat-skin-action .tg-typing-icon>span:first-child{width:28px !important;height:28px !important;-webkit-mask-size:28px 28px !important;mask-size:28px 28px !important}
.tg-chat-skin-action .tg-typing i{width:3px;height:3px}
.tg-typing-icon{position:relative;display:block}
.tg-typing{position:absolute;left:18%;top:43%;width:44%;padding:0 2%;box-sizing:border-box;display:flex;justify-content:space-between;pointer-events:none}
.tg-typing i{width:2px;height:2px;border-radius:50%;background:currentColor;animation:tg-typing 1.2s ease-in-out infinite}
.tg-typing i:nth-child(2){animation-delay:.15s}
.tg-typing i:nth-child(3){animation-delay:.3s}
@media (prefers-reduced-motion:reduce){.tg-typing i{animation:none;opacity:.8}}

/* 일반 알림(기능 알림 팝업)의 빛: 둘레에 민트빛 하나가 천천히 밝아졌다 어두워짐 — 별 · 알갱이 · 여러 색 빛무리 없이 단순하게 */
@keyframes tg-soft-glow{0%,100%{box-shadow:0 0 0 1px rgba(47,191,159,.18),0 0 14px 2px rgba(47,191,159,.22)}50%{box-shadow:0 0 0 1px rgba(47,191,159,.32),0 0 26px 6px rgba(47,191,159,.38)}}
.tg-soft-glow{border-radius:var(--tg-glow-r, 14px);animation:tg-trial-pop .55s cubic-bezier(.2,.9,.3,1.2) both,tg-soft-glow 3.2s ease-in-out .6s infinite}
@media (prefers-reduced-motion:reduce){.tg-soft-glow{animation:none;box-shadow:0 0 0 1px rgba(47,191,159,.25),0 0 18px 3px rgba(47,191,159,.28)}}

/* 새 공지 · 알림이 있을 때 상단 확성기: 3초마다 짧게 흔들림 + 점이 숨 쉬듯 (읽으면 멈춤) */
@keyframes tg-notice-ring{0%,62%,100%{transform:rotate(0)}66%{transform:rotate(-16deg)}70%{transform:rotate(13deg)}74%{transform:rotate(-10deg)}78%{transform:rotate(7deg)}82%{transform:rotate(-3deg)}86%{transform:rotate(0)}}
@keyframes tg-notice-dot{0%,100%{transform:scale(1);box-shadow:0 0 0 0 rgba(224,102,47,.55)}50%{transform:scale(1.15);box-shadow:0 0 0 5px rgba(224,102,47,0)}}
[data-ring="true"] .tg-notice-ring{transform-origin:60% 40%;animation:tg-notice-ring 3s ease-in-out infinite}
[data-ring="true"] [data-notice-dot]{animation:tg-notice-dot 1.6s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){[data-ring="true"] .tg-notice-ring,[data-ring="true"] [data-notice-dot]{animation:none}}

/* 결제 완료 창 무대 — 무료 체험 알림 창(.tg-welcome-pop)과 같은 불꽃 · 종이 폭죽 (종이 폭죽이 먼저, 불꽃은 약 1.2초 뒤) */
.tg-checkout-popup>[data-pro-wrap]{position:relative;z-index:1}
.tg-checkout-popup>[data-pro-wrap]>.popup-card{position:relative;z-index:1}
