/* POPNIX 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); }

/* ---------- ฉากคลอง (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; }
}
