/* SinkAlert Flood - ถามน้ำ (/ask/, AI Lab) แบบแชต: ฉากคลองเคลื่อนไหว + น้องน้ำ (หยดน้ำผู้ช่วย) + การ์ดข้อมูลที่วาดด้วย SVG
   สีทั้งหมดจาก token ของ water.css (กลางวัน/กลางคืนตามเครื่อง) class ขึ้นต้น ak- ไม่ชนกับ Bootstrap/water.css
   ทุก loop animation ปิดใต้ prefers-reduced-motion (ท้ายไฟล์); ข้อความไทยหลายบรรทัด line-height >= 1.4; ช่องพิมพ์ 16px (iOS ไม่ซูม) */
:root { --ak-star: 0; --ak-bub: var(--core); --ak-dock-h: 150px; }
@media (prefers-color-scheme: dark) { :root { --ak-star: 1; --ak-bub: rgba(14, 34, 46, .92); } }

body.ak { background: radial-gradient(120% 70% at 50% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), var(--bg); min-height: 100dvh; }
.ak [hidden] { display: none !important; }   /* class ที่ตั้ง display (ปุ่มเริ่มใหม่ ป้ายออนไลน์) ทับ attribute hidden */
.ak-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }   /* หน้านี้ไม่โหลด Bootstrap */
.ak-app { max-width: 760px; margin: 0 auto; padding: 0 16px calc(var(--ak-dock-h) + 24px); }

/* ---------- หัว ---------- */
.ak-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 0; margin: 0 -16px; padding-inline: 16px;
    background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ak-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--strong); text-decoration: none; font-weight: 700; }
.ak-brand img { width: 26px; height: 26px; } .ak-brand b { color: var(--accent); }
.ak-title { font-weight: 700; color: var(--strong); margin-left: 2px; }
.ak-beta { font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.ak-reset { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2);
    background: var(--core); color: var(--text); font: inherit; font-size: .88rem; cursor: pointer; }
.ak-reset svg { width: 15px; height: 15px; } .ak-reset:hover { border-color: var(--accent); }
/* แถบบนบรรทัดเดียวเสมอ (ปุ่มเริ่มใหม่ขึ้นหลังคำถามแรกแล้วทุกอย่างเคยตัดเป็น 2 บรรทัดบนมือถือ 390 px) จอแคบเหลือโลโก้ ไม่มีคำ SinkAlert Flood */
.ak-brand, .ak-title, .ak-beta, .ak-reset { white-space: nowrap; flex: none; }
@media (max-width: 480px) { .ak-brand span { display: none; } .ak-reset { padding: 0 10px; } }

/* ---------- ฉากคลอง (hero) ---------- */
.ak-hero { position: relative; text-align: center; padding: 10px 0 6px; transition: opacity .5s var(--ease); }
/* คนที่คุยกับน้องน้ำอยู่ตอนนี้ (ping จาก ask.js) ลอยบนมุมฉาก */
.ak-online { position: absolute; top: 20px; left: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 4px 12px 4px 10px; border-radius: 999px;
  background: rgba(6, 22, 32, .62); color: #fff; font-size: .8rem; line-height: 1.5; backdrop-filter: blur(4px); animation: akIn .5s var(--ease-out) both; }
.ak-online i { width: 8px; height: 8px; border-radius: 50%; background: #3ee08f; box-shadow: 0 0 0 0 rgba(62, 224, 143, .6); animation: akLive 2s ease-out infinite; }
@keyframes akLive { 0% { box-shadow: 0 0 0 0 rgba(62, 224, 143, .6); } 80%, 100% { box-shadow: 0 0 0 7px rgba(62, 224, 143, 0); } }
.ak-scene { display: block; width: 100%; height: auto; aspect-ratio: 400 / 210; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line);
    transition: aspect-ratio .7s var(--ease), border-radius .7s var(--ease); }
.ak-hero h1 { margin: 18px 0 4px; font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1.4; color: var(--strong); letter-spacing: -.01em; }
.ak-hero h1 span { background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 45%, var(--ok))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ak-sub { margin: 0 auto; max-width: 34em; color: var(--muted); line-height: 1.6; }
.ak-ex { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 4px; }
.ak-app.is-chat .ak-hero h1, .ak-app.is-chat .ak-sub, .ak-app.is-chat .ak-ex { display: none; }
.ak-app.is-chat .ak-scene { aspect-ratio: 400 / 120; border-radius: 20px; }

/* ชิ้นในฉาก (SVG) */
.ak-star { opacity: calc(var(--ak-star) * .9); animation: akTwinkle 3.2s ease-in-out infinite; }
.ak-star:nth-child(3n) { animation-delay: -1.1s; } .ak-star:nth-child(3n+1) { animation-delay: -2.3s; }
.ak-orb-glow { animation: akPulse 5s ease-in-out infinite; transform-origin: 322px 44px; }
.ak-cloud { animation: akDrift 46s linear infinite; } .ak-cloud.c2 { animation-duration: 64s; animation-delay: -30s; opacity: .7; }
.ak-win { animation: akFlicker 7s steps(1) infinite; } .ak-win:nth-child(2n) { animation-delay: -3s; } .ak-win:nth-child(3n) { animation-delay: -5.5s; }
.ak-wave { animation: akWave 9s linear infinite; } .ak-wave.w2 { animation-duration: 13s; animation-direction: reverse; } .ak-wave.w3 { animation-duration: 6.5s; }
.ak-boat { animation: akBoat 34s linear infinite; } .ak-boat-hull { animation: akBob 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ak-wake { animation: akWake 1.6s ease-out infinite; transform-box: fill-box; transform-origin: right center; }
.ak-train { animation: akTrain 16s linear infinite; } @keyframes akTrain { 0% { transform: translateX(-130px); } 55%, 100% { transform: translateX(430px); } }
.ak-rain line { animation: akRain 1.1s linear infinite; } .ak-rain line:nth-child(2n) { animation-delay: -.4s; } .ak-rain line:nth-child(3n) { animation-delay: -.75s; }
.ak-ripple { animation: akRipple 3s ease-out infinite; transform-box: fill-box; transform-origin: center; } .ak-ripple.r2 { animation-delay: -1.5s; }
@keyframes akTwinkle { 50% { opacity: calc(var(--ak-star) * .25); } }
@keyframes akPulse { 50% { transform: scale(1.12); opacity: .75; } }
@keyframes akDrift { from { transform: translateX(-120px); } to { transform: translateX(460px); } }
@keyframes akFlicker { 0%, 100% { opacity: var(--win-op); } 40% { opacity: .15; } 55% { opacity: var(--win-op); } }
@keyframes akWave { from { transform: translateX(0); } to { transform: translateX(-100px); } }
@keyframes akBoat { from { transform: translateX(-90px); } to { transform: translateX(470px); } }
@keyframes akBob { 50% { transform: translateY(-2px) rotate(-1.5deg); } }
@keyframes akWake { from { transform: scaleX(.3); opacity: .8; } to { transform: scaleX(1.4); opacity: 0; } }
@keyframes akRain { from { transform: translateY(-30px); opacity: 0; } 15% { opacity: .7; } to { transform: translateY(150px); opacity: 0; } }
@keyframes akRipple { from { transform: scale(.4); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }

/* ---------- น้องน้ำ (ใช้ทั้งในฉากและเป็นรูปผู้ตอบ) ---------- */
.ak-drop { animation: akFloat 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center bottom; }
.ak-eye { animation: akBlink 4.6s infinite; transform-box: fill-box; transform-origin: center; }
.ak-brow, .ak-sweat { opacity: 0; transition: opacity .3s; }
.is-think .ak-pupil { transform: translate(1px, -1.6px); } .ak-pupil { transition: transform .4s var(--ease); }
.is-alert .ak-brow, .is-alert .ak-sweat { opacity: 1; } .is-alert .ak-mouth { d: path("M-5 15 Q0 11.5 5 15"); }   /* d ใน CSS: Safari ไม่รองรับ = ปากเดิม */
.is-happy .ak-mouth { d: path("M-6 12 Q0 19 6 12"); }
@keyframes akFloat { 50% { transform: translateY(-5px) rotate(2deg); } }
@keyframes akBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }

/* ---------- ข้อความแชต ---------- */
.ak-log { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ak-msg { display: flex; gap: 10px; align-items: flex-start; animation: akIn .45s var(--ease-out) both; }
.ak-user { justify-content: flex-end; }
.ak-ubub { max-width: 82%; padding: 10px 16px; border-radius: 20px 20px 6px 20px; color: var(--accent-ink); line-height: 1.55; font-size: 1.02rem; word-break: break-word;
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--ok))); box-shadow: 0 10px 24px -14px var(--shadow-c); }
.ak-av { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--core), var(--accent-soft)); border: 1px solid var(--line-2);
    display: grid; place-items: center; overflow: visible; }
.ak-av svg { width: 34px; height: 34px; overflow: visible; }
.ak-body { flex: 1; min-width: 0; }
.ak-bub { display: inline-block; max-width: 100%; padding: 12px 16px; border-radius: 6px 20px 20px 20px; background: var(--ak-bub); border: 1px solid var(--line);
    box-shadow: var(--shadow); color: var(--strong); font-size: 1.04rem; line-height: 1.7; word-break: break-word; }
.ak-tk { animation: akTk .26s var(--ease-out) both; }
.ak-cur { display: inline-block; width: .45em; height: 1.05em; margin-left: 2px; vertical-align: -.16em; border-radius: 2px; background: var(--accent); animation: akCaret 1s steps(1) infinite; }
.ak-cur.end { animation: akCaretEnd .5s var(--ease) .4s both; }
.ak-mode { display: block; margin-top: 6px; font-size: .74rem; color: var(--faint); line-height: 1.4; }
.ak-note { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 0; padding: 8px 12px; border-radius: 14px; background: var(--accent-soft); color: var(--text); font-size: .9rem; line-height: 1.55;
    animation: akIn .4s var(--ease-out) both; }
.ak-note svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 3px; color: var(--accent); }
.ak-typing { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 6px 20px 20px 20px; background: var(--ak-bub); border: 1px solid var(--line); color: var(--muted); font-size: .92rem; line-height: 1.5; }
.ak-dots { display: inline-flex; gap: 4px; } .ak-dots i { width: 8px; height: 10px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--accent); animation: akHop 1.1s ease-in-out infinite; }
.ak-dots i:nth-child(2) { animation-delay: .15s; } .ak-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes akIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes akTk { from { opacity: .1; filter: blur(1.5px); } to { opacity: 1; filter: none; } }
@keyframes akCaret { 50% { opacity: 0; } }
@keyframes akCaretEnd { to { opacity: 0; width: 0; margin-left: 0; } }
@keyframes akHop { 0%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-6px); opacity: 1; } }

/* ปุ่มในข้อความ: ตัวเลือก ใช้ตำแหน่ง ตรง/ไม่ตรง */
.ak-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ak-chip, .ak-choice { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--core);
    color: var(--strong); font: inherit; font-size: .93rem; cursor: pointer; transition: border-color .25s var(--ease), background-color .25s var(--ease), transform .3s var(--ease); }
.ak-chip:hover, .ak-choice:hover { border-color: var(--accent); background: var(--accent-soft); } .ak-chip:active, .ak-choice:active { transform: scale(.96); }
.ak-choice small { color: var(--muted); font-size: .8rem; }
.ak-choice.is-geo { background: var(--accent); color: var(--accent-ink); border-color: transparent; } .ak-choice.is-geo svg { width: 16px; height: 16px; }
.ak-foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--faint); font-size: .78rem; animation: akIn .4s var(--ease-out) .2s both; }
.ak-vote { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; padding: 0; }
.ak-vote svg { width: 15px; height: 15px; } .ak-vote:hover { color: var(--accent); border-color: var(--accent); } .ak-vote.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- การ์ด ---------- */
.ak-cards { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
@media (min-width: 620px) { .ak-cards { grid-template-columns: 1fr 1fr; } .ak-cards > .ak-wide { grid-column: 1 / -1; } }
.ak-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; border-radius: 18px; background: var(--core);
    border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); text-decoration: none; overflow: hidden; animation: akRise .55s var(--ease-out) both;
    transition: transform .35s var(--ease), border-color .3s var(--ease); }
.ak-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.ak-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 80% at 100% 0%, color-mix(in srgb, var(--lv, var(--accent)) 12%, transparent), transparent 60%); pointer-events: none; }
.ak-card.lv-crit, .ak-card.lv-flood { --lv: var(--crit); } .ak-card.lv-warn, .ak-card.lv-slight { --lv: var(--warn); } .ak-card.lv-ok, .ak-card.lv-dry { --lv: var(--ok); } .ak-card.lv-unk, .ak-card.lv-off, .ak-card.lv-none { --lv: var(--off); }
.ak-card h3 { margin: 0; font-size: 1rem; line-height: 1.45; color: var(--strong); }
.ak-lv { display: inline-block; margin: 4px 0 2px; padding: 1px 9px; border-radius: 999px; font-size: .76rem; line-height: 1.6; color: var(--lv, var(--muted)); background: color-mix(in srgb, var(--lv, var(--muted)) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--lv, var(--muted)) 40%, transparent); }
.ak-txt { margin: 4px 0 0; font-size: .88rem; line-height: 1.55; color: var(--text); }
.ak-meta { margin: 6px 0 0; font-size: .76rem; line-height: 1.4; color: var(--faint); display: flex; flex-wrap: wrap; gap: 2px 10px; }
.ak-meta b { color: var(--accent); font-weight: 600; }
.ak-trend { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; }
.ak-trend.up { color: var(--rise); } .ak-trend.down { color: var(--fall); } .ak-trend.flat { color: var(--flat); }
.ak-trend.up svg { animation: akNudgeUp 1.6s ease-in-out infinite; } .ak-trend.down svg { animation: akNudgeDn 1.6s ease-in-out infinite; }
.ak-trend svg { width: 11px; height: 11px; }
@keyframes akRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes akNudgeUp { 50% { transform: translateY(-2px); } }
@keyframes akNudgeDn { 50% { transform: translateY(2px); } }
/* หลอดวัดระดับน้ำคลอง */
.ak-tube { width: 60px; height: 80px; overflow: visible; }
.ak-fill { transform-box: fill-box; transform-origin: bottom; animation: akFill 1.2s var(--ease-out) .15s both; }
.ak-surf { animation: akSurf 2.4s ease-in-out infinite; }
@keyframes akFill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes akSurf { 50% { transform: translateX(-4px); } }
/* น้ำบนถนน */
.ak-road { width: 104px; height: 74px; overflow: visible; }
.ak-rwater { transform-box: fill-box; transform-origin: bottom; animation: akFill 1.1s var(--ease-out) .15s both; }
/* สรุปเขต */
.ak-dmap { width: 58px; height: 58px; }
.ak-bars { display: flex; gap: 3px; height: 8px; margin: 8px 0 4px; } .ak-bars i { border-radius: 4px; min-width: 4px; animation: akGrow .9s var(--ease-out) both; transform-origin: left; }
.ak-bars .crit, .ak-bars .flood { background: var(--crit); } .ak-bars .warn, .ak-bars .slight { background: var(--warn); } .ak-bars .ok, .ak-bars .dry { background: var(--ok); } .ak-bars .unk, .ak-bars .off { background: var(--off); opacity: .6; }
@keyframes akGrow { from { transform: scaleX(0); } }
.ak-ai { margin: 8px 0 0; padding: 8px 10px; border-radius: 12px; background: var(--accent-soft); font-size: .86rem; line-height: 1.55; }
/* กล้อง */
.ak-card.ak-cam { grid-template-columns: 1fr; padding: 0; }
.ak-shot { position: relative; aspect-ratio: 16 / 9; background: #05090c; }
.ak-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ak-shot em { position: absolute; left: 8px; top: 8px; padding: 2px 9px; border-radius: 999px; background: rgba(0, 0, 0, .62); color: #fff; font-style: normal; font-size: .74rem; line-height: 1.6; }
.ak-shot em::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #ff5d5d; vertical-align: 1px; animation: akCaret 1.4s steps(1) infinite; }
.ak-cam .ak-cap { padding: 8px 12px 10px; }
.ak-cam .ak-shot { display: block; }
.ak-camact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 8px 0 0; font-size: .82rem; line-height: 1.5; }
.ak-camact a { color: var(--accent); }
.ak-ba { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--core);
  color: var(--strong); font: inherit; font-size: .82rem; cursor: pointer; }
.ak-ba svg { width: 16px; height: 16px; color: var(--accent); } .ak-ba:hover { border-color: var(--accent); } .ak-ba[disabled] { opacity: .75; cursor: default; }
/* เทียบภาพก่อน-หลัง: ลากแถบ (pointer) หรือปุ่มลูกศร (range ที่ซ่อนไว้) ภาพล่าสุดอยู่ขวาของแถบ */
.ak-cmp { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #05090c; --ak-cut: 50%; touch-action: pan-y; cursor: ew-resize; user-select: none; }
.ak-cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ak-cmp-a { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--ak-cut)); }
.ak-cmp-bar { position: absolute; top: 0; bottom: 0; left: var(--ak-cut); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); pointer-events: none; }
.ak-cmp-bar::after { content: ""; position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.ak-cmp:focus-within .ak-cmp-bar::after { outline: 3px solid var(--accent); outline-offset: 2px; }
.ak-cmp-l, .ak-cmp-r { position: absolute; top: 8px; max-width: 46%; padding: 2px 9px; border-radius: 999px; background: rgba(0, 0, 0, .62); color: #fff; font-size: .72rem; line-height: 1.6;
  pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ak-cmp-l { left: 8px; } .ak-cmp-r { right: 8px; }

/* ---------- ช่องพิมพ์ (ติดล่าง) ---------- */
.ak-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--bg) 62%, color-mix(in srgb, var(--bg) 0%, transparent)); }
.ak-dock-in { max-width: 760px; margin: 0 auto; }
.ak-next { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; mask-image: linear-gradient(to right, #000 88%, transparent); }
.ak-next::-webkit-scrollbar { display: none; }
.ak-next .ak-chip { flex: 0 0 auto; white-space: nowrap; animation: akIn .4s var(--ease-out) both; }
.ak-next .ak-chip:nth-child(2) { animation-delay: .07s; } .ak-next .ak-chip:nth-child(3) { animation-delay: .14s; }
.ak-form { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 999px; background: var(--core); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.ak-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.ak-form input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; color: var(--strong); font: inherit; font-size: 16px; padding: 0 6px; outline: none; }
.ak-form input::placeholder { color: var(--faint); }
.ak-ibtn { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; padding: 0; }
.ak-ibtn svg { width: 20px; height: 20px; }
.ak-geo { background: var(--accent-soft); color: var(--accent); }
.ak-send { position: relative; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 65%, var(--ok))); color: var(--accent-ink); transition: transform .3s var(--ease); }
.ak-send:active { transform: scale(.92); } .ak-send[disabled] { opacity: .55; cursor: default; }
.ak-send.go::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: akPing .7s var(--ease-out) forwards; }
@keyframes akPing { from { transform: scale(1); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }
.ak-fine { margin: 8px 4px 0; font-size: .74rem; line-height: 1.5; color: var(--faint); text-align: center; }
.ak-gate { text-align: center; padding: 40px 0; } .ak-gate p { color: var(--muted); line-height: 1.6; } .ak-gate a { color: var(--accent); }

/* การ์ดสถานที่ทั่วไป (OSM): แผนที่ย่อ SVG + จุดหลักฐานเลขตรงกับการ์ด, ป้ายความสัมพันธ์ในการ์ดจุดวัด, ป้ายสถานที่ที่กำลังคุยในแถวคำถามต่อ */
.ak-place { grid-template-columns: 140px minmax(0, 1fr); align-items: start; cursor: default; }
.ak-place:hover { transform: none; }
@media (max-width: 420px) { .ak-place { grid-template-columns: 108px minmax(0, 1fr); gap: 10px; } }
.ak-mini { display: block; width: 100%; height: auto; overflow: visible; }
.ak-kl { display: inline-flex; align-items: center; gap: 4px; font-size: .76rem; line-height: 1.5; color: var(--accent); font-weight: 600; }
.ak-kl svg { width: 12px; height: 12px; }
.ak-evs { margin: 6px 0 0; font-size: .82rem; line-height: 1.5; color: var(--muted); }
.ak-out { display: inline-block; margin: 0 6px 2px 0; padding: 1px 8px; border-radius: 8px; background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--strong); }
.ak-rainrow { display: flex; gap: 6px; align-items: flex-start; margin: 6px 0 0; font-size: .84rem; line-height: 1.5; color: var(--text); }
.ak-rainrow svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px; color: var(--accent); }
.ak-rainrow small { color: var(--faint); }
.ak-place .ak-meta a, .ak-attr a { color: var(--accent); }
.ak-attr { margin: 4px 0 0; font-size: .7rem; line-height: 1.45; color: var(--faint); }
.ak-rel { display: inline-flex; align-items: center; gap: 5px; margin: 0 0 3px; padding: 1px 9px 1px 2px; border-radius: 12px; border: 1px solid var(--line); background: var(--shell);
  font-size: .74rem; line-height: 1.6; color: var(--muted); }
.ak-rel b { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 50%; background: var(--lv, var(--off)); color: var(--core); font-size: .7rem; }
.ak-cam .ak-rel b { background: var(--strong); }
.ak-rel.is-on, .ak-rel.is-in { color: var(--strong); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.ak-card.is-ref { opacity: .85; }
.ak-mdot { animation: akPop .5s var(--ease-out) both; transform-box: fill-box; transform-origin: center; }
.ak-sweep { transform-origin: 70px 70px; animation: akSweep 1.6s var(--ease) .1s both; }
@keyframes akPop { from { opacity: 0; transform: scale(.2); } 70% { transform: scale(1.15); } to { opacity: 1; transform: scale(1); } }
@keyframes akSweep { from { transform: rotate(0); opacity: 1; } to { transform: rotate(360deg); opacity: 0; } }
.ak-ctx { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 4px 0 12px; border-radius: 999px; white-space: nowrap; font-size: .86rem;
  background: color-mix(in srgb, var(--accent) 13%, var(--core)); color: var(--strong); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); animation: akIn .4s var(--ease-out) both; }   /* ทึบ: การ์ดด้านหลังไม่โผล่ทะลุ */
.ak-ctx svg { width: 14px; height: 14px; color: var(--accent); }
.ak-ctx b { display: inline-block; max-width: 13em; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.ak-ctx-x { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.15rem; line-height: 1; cursor: pointer; }
.ak-ctx-x:hover { background: var(--core); color: var(--strong); }

@media (prefers-reduced-motion: reduce) {
    .ak-star, .ak-orb-glow, .ak-cloud, .ak-win, .ak-wave, .ak-boat, .ak-train, .ak-boat-hull, .ak-wake, .ak-rain line, .ak-ripple, .ak-drop, .ak-eye, .ak-dots i, .ak-cur, .ak-shot em::before,
    .ak-trend svg, .ak-surf { animation: none !important; }
    .ak-rain, .ak-wake, .ak-ripple { display: none; }
    .ak-msg, .ak-card, .ak-note, .ak-foot, .ak-tk, .ak-fill, .ak-rwater, .ak-bars i, .ak-next .ak-chip, .ak-mdot, .ak-ctx, .ak-online, .ak-online i { animation: none !important; }
    .ak-sweep { display: none; }
    .ak-cur { display: none; }
    .ak-scene { transition: none; }
}

/* ---------- เรื่องที่ไม่ใช่สถานที่ (ask_social.inc.php, เจ้าของสั่ง 2026-10-02 "ขอสนุก ๆ ใส่ artwork"): สติกเกอร์น้องน้ำ ทำอะไรได้ ฉุกเฉิน ภาพรวม ฝน ---------- */
/* สติกเกอร์น้องน้ำข้างกล่องข้อความ: ท่าทางตามอารมณ์ของคำตอบ (โบกมือ ส่งใจ หัวเราะ เขิน คิด ง่วง เท่ ยิ้ม) */
.ak-sticker { width: 112px; margin: 2px 0 0 2px; animation: akStIn .7s var(--ease-out) both; }
.ak-sticker svg { display: block; width: 100%; height: auto; overflow: visible; }
@keyframes akStIn { from { opacity: 0; transform: translateY(14px) scale(.55) rotate(-10deg); } 60% { opacity: 1; transform: translateY(-4px) scale(1.06) rotate(3deg); } to { opacity: 1; transform: none; } }
.ak-st-shadow { fill: color-mix(in srgb, var(--strong) 14%, transparent); transform-box: fill-box; transform-origin: center; }
.ak-st-body { transform-box: fill-box; transform-origin: center bottom; animation: akStFloat 3.2s ease-in-out infinite; }
.ak-st-body.is-bounce { animation: akStBounce 1.15s cubic-bezier(.3, .1, .3, 1) infinite; }
.ak-sticker.is-laugh .ak-st-shadow, .ak-sticker.is-happy .ak-st-shadow { animation: akStShadow 1.15s cubic-bezier(.3, .1, .3, 1) infinite; }
.ak-st-body.is-sway { animation: akStSway 2.4s ease-in-out infinite; }
@keyframes akStFloat { 50% { transform: translateY(-3px) rotate(2deg); } }
@keyframes akStBounce { 0%, 100% { transform: translateY(0) scale(1, 1); } 30% { transform: translateY(-9px) scale(.96, 1.05); } 55% { transform: translateY(0) scale(1.06, .94); } 72% { transform: translateY(-2px) scale(1, 1); } }
@keyframes akStShadow { 30% { transform: scale(.7); opacity: .55; } }
@keyframes akStSway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.ak-st-eye { transform-box: fill-box; transform-origin: center; animation: akStBlink 4.2s infinite; }
@keyframes akStBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.ak-st-pu.is-up { transform: translate(1.2px, -1.4px); }
.ak-st-blush { opacity: .7; }
.ak-sticker.is-shy .ak-st-blush { transform-box: fill-box; transform-origin: center; animation: akStBlush 1.8s ease-in-out infinite; }
@keyframes akStBlush { 50% { opacity: 1; transform: scale(1.4); } }
.ak-st-arm { transform-box: fill-box; transform-origin: 0% 100%; animation: akStWave 1.1s ease-in-out infinite; }
@keyframes akStWave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-26deg); } }
.ak-st-spark { transform-box: fill-box; transform-origin: center; animation: akStTw 1.7s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes akStTw { 0%, 100% { transform: scale(.4) rotate(0); opacity: .3; } 50% { transform: scale(1.1) rotate(45deg); opacity: 1; } }
.ak-st-heart { opacity: 0; transform-box: fill-box; transform-origin: center; animation: akStHeart 2.3s ease-in infinite; animation-delay: var(--d, 0s); }
@keyframes akStHeart { 0% { opacity: 0; transform: translateY(6px) scale(.5); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-28px) scale(1.15); } }
.ak-st-splash circle { fill: #8fd3f4; transform-box: fill-box; transform-origin: center; animation: akStSplash 1.15s ease-out infinite; }
@keyframes akStSplash { 0% { opacity: 0; transform: scale(.3); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px) scale(1.2); } }
.ak-st-sq { animation: akStSq 1.6s ease-in-out infinite; } @keyframes akStSq { 50% { transform: translateY(-3px); } }
.ak-st-thought circle, .ak-st-thought ellipse { fill: var(--core); stroke: var(--line-2); stroke-width: 1; }
.ak-st-thought .ak-st-dot { fill: var(--muted); stroke: none; animation: akStDot 1.2s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes akStDot { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-3px); opacity: 1; } }
.ak-st-z text { font: 700 11px var(--font); fill: var(--muted); opacity: 0; animation: akStZ 2.4s ease-out infinite; animation-delay: var(--d, 0s); }
@keyframes akStZ { 0% { opacity: 0; transform: translate(0, 4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(8px, -12px); } }
.ak-st-glint { opacity: 0; animation: akStGlint 2.6s ease-in-out infinite; }
@keyframes akStGlint { 0%, 60% { opacity: 0; transform: translateX(0); } 75% { opacity: 1; } 90%, 100% { opacity: 0; transform: translateX(18px); } }

/* การ์ดที่ไม่ใช่ลิงก์ทั้งใบ (มีปุ่มข้างใน) เต็มความกว้าง */
.ak-card.ak-skills, .ak-card.ak-sos, .ak-card.ak-ov, .ak-card.ak-rn { grid-template-columns: 1fr; gap: 10px; }
.ak-sk-h h3, .ak-ov-h h3 { margin: 0; }
.ak-sk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 460px) { .ak-sk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ak-sk { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px 10px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--shell);
    color: var(--text); font: inherit; font-size: .84rem; line-height: 1.45; text-align: center; cursor: pointer; animation: akIn .5s var(--ease-out) both; animation-delay: calc(var(--k, 0) * 70ms + .15s);
    transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease); }
.ak-sk:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.ak-sk:active { transform: scale(.97); }
.ak-ski { width: 40px; height: 40px; color: var(--muted); overflow: visible; }
.ak-ski.is-canal { overflow: hidden; }
.ak-ski-lv { transform-box: fill-box; transform-origin: center bottom; animation: akSkLv 2.6s ease-in-out infinite; }
@keyframes akSkLv { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(.9); } }
.ak-ski-wv { animation: akSkWv 2s linear infinite; } .ak-ski-wv.d2 { animation-duration: 3s; animation-direction: reverse; }
@keyframes akSkWv { to { transform: translateX(-20px); } }
.ak-ski-dash { animation: akSkDash .8s linear infinite; } @keyframes akSkDash { to { stroke-dashoffset: -8; } }
.ak-ski-drop { transform-box: fill-box; transform-origin: center; animation: akSkDrop 1.8s ease-in infinite; }
@keyframes akSkDrop { 0% { opacity: 0; transform: translateY(-8px); } 30% { opacity: 1; } 80% { opacity: 1; transform: translateY(4px); } 100% { opacity: 0; transform: translateY(6px) scale(1.3, .4); } }
.ak-ski-pin { transform-box: fill-box; transform-origin: center bottom; animation: akSkPin 1.6s cubic-bezier(.3, .1, .3, 1) infinite; }
@keyframes akSkPin { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-5px); } 60% { transform: translateY(0) scale(1.08, .92); } }
.ak-ski-rd { stroke-dasharray: 4 14; animation: akSkRd .9s linear infinite; } @keyframes akSkRd { to { stroke-dashoffset: -18; } }
.ak-ski-rec { animation: akSkRec 1.2s steps(1) infinite; } @keyframes akSkRec { 50% { opacity: .15; } }

/* ฉุกเฉิน: เบอร์ใหญ่กดโทรได้ สีจริงจัง */
.ak-card.ak-sos { border-color: color-mix(in srgb, var(--crit) 45%, var(--line)); }
.ak-sos-h { display: flex; align-items: center; gap: 12px; }
.ak-buoy { width: 48px; height: 48px; flex: none; animation: akBuoy 3.6s ease-in-out infinite; }
@keyframes akBuoy { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(8deg) translateY(-2px); } }
.ak-sos-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ak-sos-n { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--crit) 9%, var(--core));
    border: 1px solid color-mix(in srgb, var(--crit) 30%, var(--line)); color: var(--text); text-decoration: none; transition: transform .25s var(--ease), border-color .25s var(--ease); }
.ak-sos-n:hover { border-color: var(--crit); transform: translateY(-1px); }
.ak-sos-n b { min-width: 3.2ch; font-size: 1.35rem; line-height: 1.1; color: var(--crit); font-variant-numeric: tabular-nums; }
.ak-sos-n span { display: flex; flex-direction: column; font-size: .86rem; line-height: 1.4; color: var(--strong); }
.ak-sos-n small { color: var(--muted); font-size: .76rem; }
.ak-sos-n.is-first { animation: akSosPulse 2.4s ease-out infinite; }
@keyframes akSosPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--crit) 40%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
.ak-sos-tips { margin: 0; padding: 0 0 0 18px; display: grid; gap: 2px; font-size: .86rem; line-height: 1.5; color: var(--text); }

/* ภาพรวมกรุงเทพฯ: แผนที่ 50 เขตค่อย ๆ ขึ้นจากกลางเมือง สีตามจุดวัดที่หนักสุด จุดที่หนักสุดมีวงชีพจร */
.ak-ov-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.ak-ov-h h3 { display: inline-flex; align-items: center; gap: 6px; } .ak-ov-h h3 svg { width: 18px; height: 18px; color: var(--accent); }
.ak-ov-cs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.ak-ov-c { --lv: var(--ok); display: inline-flex; align-items: baseline; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: .78rem; line-height: 1.6; color: var(--lv);
    background: color-mix(in srgb, var(--lv) 12%, transparent); border: 1px solid color-mix(in srgb, var(--lv) 30%, transparent); }
.ak-ov-c b { font-size: .95rem; }
.ak-ov-c.lv-flood, .ak-ov-c.lv-crit { --lv: var(--crit); } .ak-ov-c.lv-slight, .ak-ov-c.lv-warn { --lv: var(--warn); } .ak-ov-c.lv-bank { --lv: var(--rise); }
.ak-map { position: relative; border-radius: 16px; overflow: hidden; background: color-mix(in srgb, var(--accent) 6%, var(--shell)); border: 1px solid var(--line); }
.ak-map svg { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 787; }
.ak-ovd { stroke: var(--core); stroke-width: 2; stroke-linejoin: round; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.86);
    transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--dl, 0ms); }
.ak-map.is-on .ak-ovd { opacity: 1; transform: none; }
.ak-ovd.lv-crit { fill: color-mix(in srgb, var(--crit) 52%, var(--core)); } .ak-ovd.lv-warn { fill: color-mix(in srgb, var(--warn) 46%, var(--core)); }
.ak-ovd.lv-ok { fill: color-mix(in srgb, var(--ok) 34%, var(--core)); } .ak-ovd.lv-unk { fill: color-mix(in srgb, var(--off) 48%, var(--core)); } .ak-ovd.lv-none { fill: color-mix(in srgb, var(--off) 22%, var(--core)); }
.ak-ovh { --c: var(--warn); opacity: 0; transition: opacity .45s ease; transition-delay: var(--dl, 700ms); }
.ak-map.is-on .ak-ovh { opacity: 1; }
.ak-ovh.lv-crit, .ak-ovh.lv-flood { --c: var(--crit); }
.ak-ovh-in rect, .ak-ovh-dot { fill: var(--c); stroke: var(--core); stroke-width: 3.5; }
.ak-ovh-in text { fill: #fff; font: 700 22px var(--font); text-anchor: middle; }
.ak-ovh-in { transform-box: fill-box; transform-origin: center; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); transition-delay: var(--dl, 700ms); transform: scale(0); }
.ak-map.is-on .ak-ovh-in { transform: none; }
.ak-ovh-ring { fill: none; stroke: var(--c); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: akOvRing 2.2s ease-out infinite; }
.ak-ovh-ring.r2 { animation-delay: 1.1s; }
@keyframes akOvRing { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.ak-ov-hot { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.ak-ov-b { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--shell); color: var(--text);
    font: inherit; text-align: left; cursor: pointer; transition: border-color .25s var(--ease), transform .25s var(--ease); }
.ak-ov-b:hover { border-color: var(--accent); transform: translateY(-1px); }
.ak-ov-b i { flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: .82rem; color: #fff; background: var(--warn); }
.ak-ov-b.lv-crit i, .ak-ov-b.lv-flood i { background: var(--crit); }
.ak-ov-b span { min-width: 0; display: flex; flex-direction: column; font-size: .86rem; line-height: 1.4; color: var(--strong); }
.ak-ov-b small { color: var(--muted); font-size: .76rem; }
.ak-ov .ak-meta a, .ak-rn .ak-meta a { color: var(--accent); }

/* ฝนตอนนี้: ภาพเรดาร์จริงเหนือกรุงเทพฯ + ลูกศรไหลไปทางที่กลุ่มฝนเคลื่อน + หยดน้ำที่สถานีที่มีฝน + เข็มทิศ; ไม่มีกลุ่มฝน = ท้องฟ้าโล่ง */
.ak-rn-mv { margin: 0; font-size: .84rem; line-height: 1.5; color: var(--accent); }
.ak-rn-map { background: linear-gradient(180deg, color-mix(in srgb, var(--sky-top, var(--accent)) 22%, var(--core)), color-mix(in srgb, var(--sky-bot, var(--accent)) 30%, var(--core))); }
.ak-rn-img { opacity: .92; }
.ak-rn-d path { fill: none; stroke: color-mix(in srgb, var(--strong) 28%, transparent); stroke-width: 2; stroke-linejoin: round; }
.ak-rn-ar path { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 2px rgba(0, 20, 30, .75)); }
.ak-rn-fl { animation: akRnFl 1.8s linear infinite; animation-delay: calc(var(--d, 0s) * -1); }
@keyframes akRnFl { 0% { transform: translateY(8px); opacity: 0; } 25%, 75% { opacity: 1; } 100% { transform: translateY(-14px); opacity: 0; } }
.ak-rn-ar.is-still circle { fill: none; stroke: #fff; stroke-width: 3; stroke-dasharray: 5 5; opacity: .85; }
.ak-rn-fall { fill: var(--rain, #4c5fd5); stroke: #fff; stroke-width: 1.5; animation: akRnFall 1.6s ease-in infinite; animation-delay: calc(var(--d, 0s) * -1); }
@keyframes akRnFall { 0% { transform: translateY(-14px); opacity: 0; } 25% { opacity: 1; } 80% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(2px) scale(1.2, .5); opacity: 0; } }
.ak-rn-rip { fill: none; stroke: var(--rain, #4c5fd5); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: akRnRip 1.6s ease-out infinite; animation-delay: calc(var(--d, 0s) * -1 + .9s); }
@keyframes akRnRip { 0% { transform: scale(.3); opacity: 0; } 30% { opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.ak-rn-cmp > circle:first-child { fill: color-mix(in srgb, var(--core) 82%, transparent); stroke: var(--line-2); stroke-width: 2; }
.ak-rn-cmp text { font: 700 26px var(--font); fill: var(--muted); text-anchor: middle; }
.ak-rn-needle { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.ak-rn-hub { fill: var(--muted); }
.ak-sky-sun { transform-box: fill-box; transform-origin: center; animation: akSkySpin 40s linear infinite; }
@keyframes akSkySpin { to { transform: rotate(360deg); } }
.ak-sky-cloud { fill: rgba(255, 255, 255, .7); animation: akSkyDrift 18s ease-in-out infinite alternate; }
.ak-sky-cloud.c2 { fill: rgba(255, 255, 255, .5); animation-duration: 24s; animation-direction: alternate-reverse; }
@media (prefers-color-scheme: dark) { .ak-sky-cloud { fill: rgba(200, 225, 240, .16); } .ak-sky-cloud.c2 { fill: rgba(200, 225, 240, .11); } }   /* กลางคืน: เมฆสีอ่อนบนพื้นมืด */
@keyframes akSkyDrift { from { transform: translateX(-30px); } to { transform: translateX(40px); } }

@media (prefers-reduced-motion: reduce) {
    .ak-sticker, .ak-st-body, .ak-sticker .ak-st-shadow, .ak-st-eye, .ak-st-arm, .ak-st-spark, .ak-st-heart, .ak-st-splash circle, .ak-st-sq, .ak-st-dot, .ak-st-z text, .ak-st-glint, .ak-sticker .ak-st-blush,
    .ak-sk, .ak-ski-lv, .ak-ski-wv, .ak-ski-dash, .ak-ski-drop, .ak-ski-pin, .ak-ski-rd, .ak-ski-rec, .ak-buoy, .ak-sos-n.is-first, .ak-ovh-ring, .ak-rn-fl, .ak-rn-fall, .ak-rn-rip, .ak-sky-sun, .ak-sky-cloud { animation: none !important; }
    .ak-st-heart, .ak-st-z text { opacity: 1; }
    .ak-st-glint, .ak-ovh-ring, .ak-rn-rip { display: none; }
    .ak-ovd, .ak-ovh, .ak-ovh-in { transition: none; }
}

/* ---------- รอบ ๆ ที่นั่น นอกพื้นที่จุดวัดของ กทม. (far.inc.php, 2026-10-02): สถานี สสน. ทางหลวง รายงานจากผู้ใช้ (ไม่ใช่ลิงก์) + ลิงก์ของคำถามเกี่ยวกับเว็บ ---------- */
.ak-card.ak-far { cursor: default; }
.ak-card.ak-far:hover { transform: none; }
.ak-sub { margin: 2px 0 0; font-size: .82rem; line-height: 1.45; color: var(--muted); }
.ak-hw-sign { width: 46px; height: 54px; }
.ak-rep-ico { width: 44px; height: 44px; }
.ak-dam { width: 58px; height: 50px; }
.ak-hw-wave { animation: akHwWave 2.6s ease-in-out infinite; }
@keyframes akHwWave { 50% { transform: translateX(2.5px); } }
.ak-rep-drop { animation: akRepDrop 2.2s ease-in-out infinite; transform-origin: 24px 21px; transform-box: view-box; }
@keyframes akRepDrop { 50% { transform: translateY(1.5px) scale(.93); } }
.ak-faq ul { margin: 6px 0 0; padding-left: 1.1em; line-height: 1.6; }
.ak-faq a { color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
    .ak-hw-wave, .ak-rep-drop { animation: none; }
}

/* ---------- เส้นทาง จาก A ไป B (route.inc.php) + ปักหมุดเอง: แผนที่ Leaflet ในแชต ---------- */
.ak-route { grid-template-columns: 1fr; padding: 0; overflow: hidden; cursor: default; }
.ak-route:hover { transform: none; }
.ak-rt-map, .ak-pin-map { height: 260px; background: var(--shell); border-bottom: 1px solid var(--line); }
.ak-pin-map { height: 300px; border: 1px solid var(--line); border-radius: 14px; margin-top: 8px; }
@media (min-width: 720px) { .ak-rt-map { height: 320px; } .ak-pin-map { height: 360px; } }
.ak-rt-b { padding: 10px 14px 12px; }
.ak-rt-rs { list-style: none; margin: 8px 0 6px; padding: 0; display: grid; gap: 6px; }
.ak-rt-r { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 7px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--shell); font-size: .86rem; line-height: 1.45; }
.ak-rt-r b { color: var(--strong); white-space: nowrap; }
.ak-rt-r span { color: var(--muted); }
.ak-rt-r em { grid-column: 1 / -1; font-style: normal; color: var(--ok); }
.ak-rt-r.is-bad em { color: var(--crit); }
.ak-rt-r.is-pick { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent); }
.ak-rt-h { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 6px; }
.ak-rt-h li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: .84rem; line-height: 1.45; }
.ak-rt-h i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-style: normal; font-weight: 700; font-size: .72rem; color: #fff; background: var(--warn); }
.ak-rt-h li.lv-flood i, .ak-rt-h li.lv-closed i { background: var(--crit); }
.ak-rt-h b { display: block; color: var(--strong); }
.ak-rt-h span { display: block; color: var(--text, inherit); }
.ak-rt-h small { display: block; color: var(--faint); }
.ak-rt-dot b, .ak-rt-end b { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; border: 2px solid #fff; color: #fff; font: 700 11px/1 system-ui, sans-serif; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.ak-rt-end b { background: #1d4f9c; font-size: 12px; }
.ak-rt-end b svg { width: 14px; height: 14px; }
.ak-choice.is-pin svg { width: 14px; height: 14px; }
.ak-rt-r em.is-warn { color: var(--warn); }
