/* 가입 혜택 창(2026-11-26 대표님 "메인홈이랑 드라마 홈에서 스크롤 조금 내리면, 비회원인 사람들한테 이렇게 무료 회원가입시 몇 크레딧 지급 < 이거 띄우고 싶은데 …
   이미지는 너가 훨씬 더 잘만들어야함"): 가입 전 손님이 화면을 조금 내리면 뜬다. 서버가 가입 전 손님에게만 그려 넣는다(backend/app.py _join_gift, 설정 join_gift, 글 copy gift.*).
   모양 = 어두운 창(#131517, 흰 8% 테, 연두 빛) + 맨 위 그림(선물 상자에서 크레딧이 쏟아짐, 둥실 + 빛) + 숫자가 올라가는 혜택 상자 + 연두 주 단추(빛 띠가 지나감).
   PC = 가운데 420, 휴대폰(720 이하) = 아래에서 올라오는 시트. 뒤 화면은 어둡게 + 살짝 흐리게. 움직임 줄이기면 움직임 없이 */
.gift-bg { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(6,7,8,.66);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); opacity: 0; transition: opacity .22s ease; }
.gift-bg[hidden] { display: none; }
.gift-bg.on { opacity: 1; }
.gift { position: relative; width: 100%; max-width: 420px; max-height: calc(100dvh - 40px); overflow: hidden auto; padding: 0 24px 20px; border-radius: 28px; text-align: center; color: #fff;
  background: #131517; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 0 0 1px rgba(209,254,23,.1), 0 30px 90px rgba(0,0,0,.6), 0 0 120px rgba(209,254,23,.1);
  transform: translateY(18px) scale(.97); opacity: 0; transition: transform .32s cubic-bezier(.2,.9,.25,1.12), opacity .22s ease; }
.gift-bg.on .gift { transform: none; opacity: 1; }
.gift:focus { outline: none; }
.gift-grab { display: none; }
.gift-x { position: absolute; top: 10px; right: 10px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent;
  color: rgba(255,255,255,.7); cursor: pointer; }
.gift-x:hover { color: #fff; background: rgba(255,255,255,.08); }
.gift-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
/* 그림: 창 바탕과 같은 색에 그린 그림의 가장자리를 둥글게 녹이고(mask), 뒤에 연두 빛을 깔고, 천천히 둥실 */
.gift-art { position: relative; height: 226px; margin: 0 -24px; overflow: hidden; }
.gift-art::before { content: ""; position: absolute; left: 50%; top: 56%; width: 300px; height: 230px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(209,254,23,.34), rgba(209,254,23,.1) 55%, rgba(209,254,23,0) 100%); animation: giftGlow 3.2s ease-in-out infinite; }
.gift-art img { position: absolute; left: 50%; top: 50%; width: 236px; height: 236px; margin: -116px 0 0 -118px; object-fit: cover;
  -webkit-mask: radial-gradient(closest-side, #000 62%, rgba(0,0,0,.6) 78%, transparent 100%); mask: radial-gradient(closest-side, #000 62%, rgba(0,0,0,.6) 78%, transparent 100%);
  animation: giftFloat 4.2s ease-in-out infinite; }
.gift-spark { position: absolute; width: 10px; height: 10px; background: #e9ff7a; opacity: 0; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: giftSpark 2.6s ease-in-out infinite; }
.gift-spark.s1 { left: 20%; top: 26%; }
.gift-spark.s2 { right: 18%; top: 18%; width: 14px; height: 14px; animation-delay: .7s; }
.gift-spark.s3 { right: 24%; bottom: 20%; width: 8px; height: 8px; animation-delay: 1.4s; }
.gift-spark.s4 { left: 26%; bottom: 14%; width: 12px; height: 12px; animation-delay: 1.9s; }
@keyframes giftFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes giftGlow { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes giftSpark { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0deg); } 45% { opacity: 1; transform: scale(1) rotate(40deg); } }
.gift-badge { display: inline-flex; align-items: center; height: 28px; margin: 2px 0 12px; padding: 0 12px; border-radius: 999px; background: rgba(209,254,23,.12);
  box-shadow: inset 0 0 0 1px rgba(209,254,23,.28); color: #d1fe17; font-size: 13px; line-height: 16px; font-weight: 700; }
.gift-title { margin: 0; font-size: 26px; line-height: 34px; font-weight: 800; letter-spacing: -.03em; word-break: keep-all; color: #fff; }
.gift-title em { font-style: normal; color: #d1fe17; text-shadow: 0 0 22px rgba(209,254,23,.4); }
.gift-sub { margin: 10px 0 0; font-size: 15px; line-height: 22px; color: rgba(255,255,255,.64); word-break: keep-all; }
.gift-box { margin: 18px 0 0; padding: 15px 16px 16px; border-radius: 18px; background: linear-gradient(180deg, rgba(209,254,23,.1), rgba(209,254,23,.03));
  box-shadow: inset 0 0 0 1px rgba(209,254,23,.26); }
.gift-box span { display: block; font-size: 13px; line-height: 18px; font-weight: 600; color: rgba(255,255,255,.62); }
.gift-box b { display: block; margin-top: 4px; font-size: 25px; line-height: 32px; font-weight: 800; letter-spacing: -.02em; color: #d1fe17; font-variant-numeric: tabular-nums; }
.gift-box b i { font-style: normal; font-size: 32px; }
.gift-box small { display: block; margin-top: 4px; font-size: 13.5px; line-height: 19px; color: rgba(255,255,255,.72); word-break: keep-all; }
/* 원달러 패스 창(data-mode="pass", 2026-11-28 낮 대표님 "무료 < 팝업 뜨는거 이거를 1달러로 만드세요 < 이걸로 고쳐주고"): 가격 칸 = 요금제 화면 패스 티켓(offer.css .tp-num)을 작게.
   작은 글 '첫 달' / 줄 그은 정가 + 큰 첫 달 값 한 줄 / 알약 둘(할인율, 크레딧). 그림, 제목, 가격 칸을 눌러도 /pass 로(gift.js) */
.gift-bg[data-mode="pass"] .gift-art, .gift-bg[data-mode="pass"] .gift-title, .gift-bg[data-mode="pass"] .gift-pp { cursor: pointer; }
.gift-pp .gift-pr { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 2px 0 0; white-space: nowrap; }
.gift-pp .gift-pr s { font-size: 17px; line-height: 22px; font-weight: 700; color: rgba(255,255,255,.56); text-decoration-thickness: 2px; }
.gift-pp .gift-pr b { display: inline; margin: 0; font-size: 46px; line-height: 50px; font-weight: 800; letter-spacing: -.03em; color: #d1fe17; text-shadow: 0 0 22px rgba(209,254,23,.4); }
.gift-pp .gift-pt { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 8px 0 0; }
.gift-pp .gift-pt span { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; line-height: 16px; font-weight: 700; white-space: nowrap; }
.gift-pp .gift-pt .gift-po { background: #d1fe17; color: #131517; }
.gift-pp .gift-pt .gift-pg { box-shadow: inset 0 0 0 1px rgba(209,254,23,.28); color: #d1fe17; }
/* 주 단추: 연두 바탕 진한 글, 빛 띠가 왼쪽에서 오른쪽으로 지나간다 */
.gift-cta { position: relative; display: flex; align-items: center; justify-content: center; height: 54px; margin: 16px 0 0; border-radius: 15px; overflow: hidden; background: #d1fe17;
  color: #131517; font-size: 17px; line-height: 22px; font-weight: 800; letter-spacing: -.01em; text-decoration: none; box-shadow: 0 10px 30px rgba(209,254,23,.22);
  transition: transform .12s ease, filter .12s ease; }
.gift-cta::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 34%; transform: skewX(-20deg);
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.6), rgba(255,255,255,0)); animation: giftShine 2.8s ease-in-out infinite; }
@keyframes giftShine { 0%, 55% { left: -40%; } 100% { left: 120%; } }
.gift-cta:hover { filter: brightness(1.05); }
.gift-cta:active { transform: translateY(1px); }
.gift-login { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 6px 0 0; padding: 0 14px; color: rgba(255,255,255,.72); font-size: 14.5px;
  font-weight: 600; text-decoration: none; }
.gift-login:hover { color: #fff; }
.gift-snooze { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 2px -4px -6px; padding: 0 4px; color: rgba(255,255,255,.56); font-size: 13.5px; text-align: left; cursor: pointer;
  border-top: 1px solid rgba(255,255,255,.07); }
.gift-snooze input { -webkit-appearance: none; appearance: none; flex: 0 0 20px; width: 20px; height: 20px; margin: 0; border-radius: 6px; background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.36); cursor: pointer; }
.gift-snooze input:checked { background: #d1fe17 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23131517' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: none; }
.gift-snooze input:focus-visible, .gift-x:focus-visible, .gift-cta:focus-visible, .gift-login:focus-visible { outline: 2px solid #d1fe17; outline-offset: 2px; }
html.gift-open, html.gift-open body { overflow: hidden; }
@media (max-width: 720px) {
  .gift-bg { align-items: flex-end; padding: 0; }
  .gift { max-width: none; max-height: calc(100dvh - 24px); border-radius: 28px 28px 0 0; padding: 0 20px calc(14px + var(--sab, env(safe-area-inset-bottom, 0px)));
    transform: translateY(100%); opacity: 1; transition: transform .36s cubic-bezier(.2,.9,.25,1); }
  .gift-bg.on .gift { transform: none; }
  .gift-grab { display: block; position: absolute; top: 8px; left: 50%; z-index: 2; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(255,255,255,.22); }
  .gift-art { height: 200px; margin: 0 -20px; }
  .gift-art img { width: 212px; height: 212px; margin: -103px 0 0 -106px; }
  .gift-title { font-size: 24px; line-height: 32px; }
  .gift-sub { font-size: 14.5px; line-height: 21px; }
  .gift-box { margin-top: 16px; }
}
@media (max-height: 640px) {
  .gift-art { height: 150px; }
  .gift-art img { width: 164px; height: 164px; margin: -80px 0 0 -82px; }
}
@media (prefers-reduced-motion: reduce) {
  .gift-bg, .gift { transition: none; }
  .gift-art::before, .gift-art img, .gift-spark, .gift-cta::after { animation: none; }
  .gift-spark { opacity: .8; }
}
