/* ทัวร์น้อง K — z-index: spot 99990 · tag/hand 99991 · card 99992 · (เครื่องคิดเลข 99993 ในฉาก 5) · stage 99996 · confetti 99997
   ป๊อปอัปประกาศของเว็บ 99999+ อยู่เหนือทัวร์เสมอ */
.ktour-root{display:none;font-family:inherit}
.ktour-root.ktour-open{display:block}
.ktour-root *{box-sizing:border-box}

/* ปุ่มลอย */
.ktour-fab{position:fixed;right:14px;bottom:18px;z-index:9000;display:flex;align-items:center;gap:6px;
  background:none;border:0;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:bottom .3s}
.ktour-fab--up{bottom:92px}
.ktour-fab--hide{display:none}
.ktour-fab-pill{background:#2e9d3a;color:#fff;font-weight:700;font-size:13px;line-height:1;padding:8px 12px;border-radius:999px;
  box-shadow:0 4px 12px rgba(0,0,0,.25);white-space:nowrap}
.ktour-fab-face{width:62px;height:62px;border-radius:50%;background:#fff url(img/sayhi.png) no-repeat 50% 78%/150% auto;
  border:3px solid #7cc242;box-shadow:0 6px 16px rgba(0,0,0,.3);animation:ktour-wiggle 6s ease-in-out infinite}
@keyframes ktour-wiggle{0%,88%,100%{transform:rotate(0)}91%{transform:rotate(-12deg)}94%{transform:rotate(10deg)}97%{transform:rotate(-6deg)}}

/* spotlight */
.ktour-spot{position:fixed;z-index:99990;pointer-events:none;border-radius:10px;
  box-shadow:0 0 0 9999px rgba(8,22,10,.68);outline:3px solid #ffd54a;outline-offset:2px;
  transition:left .45s cubic-bezier(.2,.8,.2,1),top .45s cubic-bezier(.2,.8,.2,1),width .45s,height .45s,opacity .3s,outline-color .3s}
.ktour-spot--full{left:50%!important;top:50%!important;width:0!important;height:0!important;outline-color:transparent}
.ktour-spot--off{opacity:0}
.ktour-spot:after{content:"";position:absolute;top:-8px;left:-8px;right:-8px;bottom:-8px;border-radius:14px;
  border:3px solid #ffd54a;opacity:0;animation:ktour-ring 1.6s ease-out infinite}
.ktour-spot--full:after{display:none}
@keyframes ktour-ring{0%{opacity:.9;transform:scale(.97)}100%{opacity:0;transform:scale(1.06)}}

/* ป้ายเหนือ spotlight */
.ktour-tag{position:fixed;z-index:99991;pointer-events:none;background:#ffd54a;color:#1d2a1d;font-weight:800;font-size:15px;line-height:1;
  padding:7px 12px;border-radius:999px;box-shadow:0 4px 12px rgba(0,0,0,.3);opacity:0;transform:translateY(6px);
  transition:opacity .3s,transform .3s}
.ktour-tag--on{opacity:1;transform:none;animation:ktour-bob 1.4s ease-in-out infinite}
.ktour-tag--live{background:#fff;color:#c62828}
.ktour-tag--live:before{content:"";display:inline-block;width:9px;height:9px;border-radius:50%;background:#e53935;
  margin-right:6px;vertical-align:1px;animation:ktour-blink 1s infinite}
@keyframes ktour-bob{50%{transform:translateY(-4px)}}
@keyframes ktour-blink{50%{opacity:.15}}

/* มือแตะ (ฉาก 5) */
.ktour-hand{position:fixed;z-index:99991;pointer-events:none;font-size:42px;line-height:1;display:none;
  filter:drop-shadow(0 3px 4px rgba(0,0,0,.4));transition:left .6s,top .6s}
.ktour-hand--on{display:block;animation:ktour-tap .8s ease-in-out infinite}
@keyframes ktour-tap{50%{transform:translate(0,8px) scale(.9)}}

/* การ์ดกลางจอ */
.ktour-card{position:fixed;z-index:99992;left:50%;top:34%;width:min(340px,calc(100% - 32px));pointer-events:none;
  transform:translate(-50%,-50%) scale(.7);opacity:0;transition:opacity .3s,transform .45s cubic-bezier(.3,1.5,.5,1);
  background:#fff;border-radius:20px;padding:18px;text-align:center;box-shadow:0 14px 40px rgba(0,0,0,.4)}
.ktour-card--on{opacity:1;transform:translate(-50%,-50%) scale(1);pointer-events:auto}
.ktour-brand{font-weight:900;font-size:34px;line-height:1.1;color:#1b5e20;letter-spacing:.5px}
.ktour-brand b{color:#7cc242}
.ktour-badges{margin-top:12px;display:flex;gap:8px;justify-content:center}
.ktour-badges span{background:#fff8e1;border:2px solid #ffd54a;border-radius:999px;padding:6px 12px;font-weight:800;
  opacity:0;animation:ktour-pop .5s cubic-bezier(.3,1.7,.5,1) forwards}
.ktour-badges span:nth-child(1){animation-delay:.9s}
.ktour-badges span:nth-child(2){animation-delay:1.5s}
.ktour-route{display:flex;align-items:center;gap:6px;margin:6px 0 10px}
.ktour-pt{font-size:30px;line-height:1;flex:none;text-align:center}
.ktour-pt small{display:block;font-size:11px;font-weight:700;color:#333;margin-top:4px;line-height:1.25}
.ktour-pin{animation:ktour-bob 1.2s ease-in-out infinite}
.ktour-path{flex:1;height:6px;border-radius:3px;background:#e0e0e0;position:relative;overflow:hidden}
.ktour-path i{position:absolute;left:0;top:0;bottom:0;width:0;background:repeating-linear-gradient(90deg,#2e9d3a 0 10px,transparent 10px 16px);
  animation:ktour-walk 2.2s .4s ease-out forwards}
@keyframes ktour-walk{to{width:100%}}
.ktour-note{font-size:13px;color:#555;margin-bottom:12px}
.ktour-btn{display:inline-block;background:#2e9d3a;color:#fff!important;text-decoration:none!important;font-weight:800;
  padding:10px 16px;border-radius:12px;margin:4px;box-shadow:0 4px 10px rgba(46,157,58,.35)}
.ktour-btn--line{background:#06c755;box-shadow:0 4px 10px rgba(6,199,85,.35)}
.ktour-docs{display:flex;align-items:center;justify-content:center;gap:16px}
.ktour-docs span{display:flex;flex-direction:column;align-items:center;line-height:1.2;opacity:0;
  animation:ktour-pop .5s cubic-bezier(.3,1.7,.5,1) forwards}
.ktour-docs span:nth-child(2){animation-delay:.6s;font-size:14px;font-weight:700;color:#777}
.ktour-docs span:nth-child(3){animation-delay:1.1s}
.ktour-docs small{display:block;margin-top:8px;font-size:13px;font-weight:700;color:#333}
/* เล่มพาสปอร์ต วาดด้วย CSS (ไม่มี emoji พาสปอร์ตจริง) */
.ktour-pp{display:flex;align-items:flex-end;justify-content:center;width:46px;height:62px;padding-bottom:7px;border-radius:5px 8px 8px 5px;
  background:radial-gradient(circle at 50% 40%,transparent 9px,#d8b25a 9px 11px,transparent 11px),#7b1e2b;
  color:#e3c26b;font-size:7px;font-weight:800;letter-spacing:.3px;box-shadow:inset 4px 0 0 rgba(0,0,0,.25),0 3px 6px rgba(0,0,0,.25)}
/* บัตรประชาชนไทย วาดด้วย CSS (emoji 🪪 เป็นสีส้มบน iPhone/Samsung) */
.ktour-idc{position:relative;display:block;width:78px;height:50px;margin:6px 0;border-radius:6px;
  background:linear-gradient(160deg,#d9efff 0%,#9fd3f7 55%,#7cc0ee 100%);border:1px solid #6aaee0;box-shadow:0 3px 6px rgba(0,0,0,.25)}
.ktour-idc:before{content:"";position:absolute;right:7px;top:9px;width:20px;height:26px;border-radius:3px;
  background:radial-gradient(circle at 50% 36%,#7a8fa6 5px,transparent 6px),radial-gradient(ellipse at 50% 100%,#7a8fa6 10px,transparent 11px),#eef7ff}
.ktour-idc i{position:absolute;left:8px;top:11px;width:36px;height:4px;border-radius:2px;background:#4b8fc7;
  box-shadow:0 9px 0 #8cbde3,0 18px 0 #8cbde3,-1px 26px 0 -1px #d4a63a}

/* ตัวละคร + บอลลูน */
.ktour-stage{position:fixed;z-index:99996;left:50%;transform:translateX(-50%);width:min(560px,calc(100% - 16px));
  display:flex;align-items:flex-end;gap:4px;pointer-events:auto}
.ktour-bottom{bottom:10px;top:auto}
.ktour-top{top:10px;bottom:auto;align-items:flex-start}
.ktour-char{width:108px;height:auto;flex:none;filter:drop-shadow(0 6px 10px rgba(0,0,0,.4))}
.ktour-char--in{animation:ktour-pop .55s cubic-bezier(.3,1.7,.5,1)}
.ktour-char--jump{animation:ktour-jump .7s ease-in-out infinite}
@keyframes ktour-pop{0%{opacity:0;transform:scale(.4) translateY(20px)}100%{opacity:1;transform:none}}
@keyframes ktour-jump{50%{transform:translateY(-16px)}}
.ktour-bubble{flex:1;min-width:0;background:#fff;border:3px solid #7cc242;border-radius:18px;padding:12px 12px 8px;
  box-shadow:0 10px 30px rgba(0,0,0,.4)}
.ktour-text{font-size:17px;line-height:1.5;font-weight:700;color:#1d2a1d;min-height:52px}
.ktour-line{display:block}
.ktour-w{display:inline-block;opacity:0;transform:translateY(8px) scale(.85);animation:ktour-word .4s cubic-bezier(.3,1.6,.5,1) forwards}
.ktour-em{color:#fff;background:linear-gradient(135deg,#2e9d3a,#7cc242);padding:0 .35em;border-radius:.45em;
  box-shadow:0 2px 0 rgba(0,0,0,.12)}
@keyframes ktour-word{to{opacity:1;transform:none}}
.ktour-ctrl{display:flex;align-items:center;gap:4px;margin-top:8px;border-top:1px dashed #e3e3e3;padding-top:6px}
.ktour-ctrl button{flex:none;background:#f1f5ef;border:0;border-radius:9px;width:32px;height:32px;font-size:14px;cursor:pointer;padding:0}
.ktour-ctrl button:active{transform:scale(.92)}
.ktour-ctrl [data-k=close]{background:#fdecea}
/* แถบความคืบหน้า (แทนจุดเรียง 8 จุด ที่ล้นบนจอมือถือ) */
.ktour-prog{flex:1;min-width:24px;height:6px;margin:0 4px;border-radius:3px;background:#e3e8e0;overflow:hidden}
.ktour-prog i{display:block;height:100%;width:0;background:#2e9d3a;border-radius:3px;transition:width .4s}

/* พลุกระดาษ */
.ktour-confetti{position:fixed;z-index:99997;left:0;top:0;width:100%;height:0;pointer-events:none}
.ktour-confetti i{position:absolute;top:-20px;width:9px;height:14px;border-radius:2px;animation:ktour-fall linear forwards}
@keyframes ktour-fall{to{transform:translateY(105vh) rotate(720deg)}}

@media (min-width:768px){.ktour-char{width:140px}.ktour-text{font-size:19px}}
@media (prefers-reduced-motion:reduce){
  .ktour-root *,.ktour-fab-face{animation-duration:.01ms!important;animation-iteration-count:1!important;transition:none!important}
}
