/* ของลอยบนหน้า: เอฟเฟกต์ฝนทอง, ปุ่ม LINE */

/* ---------- เอฟเฟกต์ฝนทอง + ประกายระยิบ ---------- */
#ambient { position: fixed; inset: 0; z-index: 35; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }

/* ---------- LINE: ป้ายจำนวนข้อความ + ข้อความชวนคุย ---------- */
.line-fab { position: relative; }
.line-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #06c755; z-index: -1; animation: lineRing 2.2s ease-out infinite; }
@keyframes lineRing { from { transform: scale(1); opacity: .6; } to { transform: scale(1.7); opacity: 0; } }
.msg-badge { position: absolute; top: -4px; right: -4px; display: grid; min-width: 22px; height: 22px; place-items: center; padding: 0 6px; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 800; line-height: 1;
  background: #ef4444; box-shadow: 0 0 0 2px #120b09, 0 2px 8px rgba(239,68,68,.6); animation: badgePop .5s cubic-bezier(.2,1.6,.4,1) both; }
.msg-badge.small { top: -2px; right: 50%; margin-right: -22px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 10.5px; }
@keyframes badgePop { from { transform: scale(0); } }
.msg-badge.bump { animation: badgeBump .6s ease; }
@keyframes badgeBump { 30% { transform: scale(1.35); } 60% { transform: scale(.9); } }
.line-tip { position: absolute; right: 70px; bottom: 8px; width: max-content; max-width: 220px; padding: 9px 12px; border-radius: 12px 12px 2px 12px; color: #1f2937; font-size: 13px; line-height: 1.35;
  background: #fff; box-shadow: 0 10px 24px -8px rgba(0,0,0,.6); opacity: 0; transform: translateX(8px) scale(.96); transform-origin: 100% 100%; pointer-events: none; transition: opacity .3s, transform .3s; }
.line-tip b { color: #06c755; }
.line-tip.show { opacity: 1; transform: none; pointer-events: auto; }
.line-tip button { position: absolute; top: -8px; left: -8px; display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; color: #fff; font-size: 12px; background: #6b7280; }
