/* บ้าน 3D (ต้นแบบ 28 ต.ค. 2569) ใช้ร่วมกับ av3d.css */
.hs-status{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);max-width:calc(100% - 32px);padding:7px 14px;border-radius:99px;background:rgba(42,34,48,.78);color:#fff;font-size:13px;font-weight:600;text-align:center;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hs-status:empty{display:none}
.hs-sel{position:absolute;left:12px;right:12px;bottom:56px;display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px;border-radius:14px;background:#fff;box-shadow:0 6px 20px rgba(60,30,20,.18)}
.hs-sel[hidden]{display:none}
.hs-sel b{font-size:14px;margin-right:auto}
.hs-cols .av-sw{width:24px;height:24px}
.hs-sel-b{display:flex;gap:6px;width:100%}
.hs-sel-b button{flex:1;border:1.5px solid var(--line);background:#fff;border-radius:10px;padding:8px;font-weight:700;cursor:pointer}
.hs-sel-b button.on{background:var(--brand);border-color:var(--brand);color:#fff}
.hs-tip{margin:0;color:var(--muted);font-size:12.5px;line-height:1.5}
.hs-link{display:block;text-align:center;margin-top:8px}
.hs-sm{display:block;font-weight:500;font-size:10.5px;color:var(--muted)}
.hs-basket{display:flex;flex-wrap:wrap;gap:6px}
.hs-bk{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:99px;background:var(--ground);font-weight:600;font-size:13px}
body.decorating .av-stage{cursor:crosshair}
@media (max-width:860px){
  .hs-sel{bottom:48px}
  .hs-status{bottom:8px;font-size:12px}
}
.av-chip .av-dot,.hs-bk .av-dot{display:inline-block;vertical-align:-2px;margin-right:4px}
.hs-coin{display:inline-flex;align-items:center;gap:4px;padding:5px 11px;border-radius:99px;background:#fff6d6;border:1.5px solid #f3d27a;font-weight:700;font-size:13.5px;color:#8a5a00;white-space:nowrap}
.hs-coin.bump{animation:hsBump .5s ease}
@keyframes hsBump{40%{transform:scale(1.18)}}
.hs-n{display:inline-flex;min-width:18px;height:18px;padding:0 5px;margin-left:3px;border-radius:99px;background:#e8253b;color:#fff;font-size:11px;font-weight:700;align-items:center;justify-content:center;vertical-align:1px}
.hs-n[hidden]{display:none}
.hs-btn{display:block;width:100%;margin-top:10px;border:0;border-radius:12px;padding:11px 14px;background:var(--brand);color:#fff;font:inherit;font-weight:700;font-size:14px;cursor:pointer;text-decoration:none;text-align:center}
.hs-btn.sm{display:inline-block;width:auto;margin:0;padding:7px 12px;font-size:12.5px;border-radius:10px;flex:none}
.hs-btn.ghost{background:#fff;color:var(--brand);box-shadow:inset 0 0 0 1.5px var(--brand)}
.hs-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.hs-day{display:flex;flex-direction:column;align-items:center;gap:2px;padding:7px 2px;border-radius:10px;background:var(--ground);font-size:11px;color:var(--muted);font-weight:600}
.hs-day b{font-size:17px;line-height:1.2}
.hs-day.ok{background:#e4f6ea;color:var(--ok)}
.hs-day.now{box-shadow:inset 0 0 0 2px var(--brand);color:var(--brand)}
.hs-day.big:not(.ok){background:#fff3d1}
.hs-q{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px dashed var(--line)}
.hs-q.ok{opacity:.65}
.hs-q-ic{font-size:22px;width:30px;text-align:center;flex:none}
.hs-q-t{flex:1;min-width:0}
.hs-q-t b{display:block;font-size:13.5px}
.hs-bar{display:block;height:7px;margin-top:5px;border-radius:99px;background:var(--ground);overflow:hidden}
.hs-bar i{display:block;height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,#ffb02e,var(--brand))}
.hs-q-n{font-weight:700;color:var(--muted);font-size:13px;flex:none}
.hs-q-ok{font-weight:700;color:var(--ok);font-size:12.5px;flex:none}
.hs-rc{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px dashed var(--line)}
.hs-rc-ic{font-size:26px;width:34px;text-align:center;flex:none}
.hs-rc-t{flex:1;min-width:0}
.hs-rc-t b{display:block;font-size:13.5px}
.hs-rc-t b small{margin-left:6px;font-weight:600;color:#8a5a00;font-size:11.5px}
.hs-need{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.hs-need em{font-style:normal;font-size:11px;font-weight:600;padding:2px 7px;border-radius:99px;background:#e4f6ea;color:var(--ok)}
.hs-need em.lack{background:#ffe8e6;color:#c4291e}
.hs-lock{color:var(--muted)}
.hs-rare{box-shadow:inset 0 0 0 1.5px #f3d27a;background:#fffaf0}
/* ชิปที่เป็นลิงก์ (รถ/ของ/สัตว์ลับที่ยังไม่มี → เต็นท์รถ/กาชา) */
a.av-chip{display:flex;flex-direction:column;align-items:center;justify-content:center;text-decoration:none}
.hs-reward{position:absolute;inset:0;z-index:6;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(42,34,48,.35)}
.hs-reward[hidden]{display:none}
.hs-rw-in{width:min(320px,100%);padding:18px 18px 16px;border-radius:18px;background:#fff;text-align:center;box-shadow:0 14px 40px rgba(40,20,10,.3)}
.hs-rw-ic{font-size:46px;line-height:1}
.hs-rw-in b{display:block;margin-top:6px;font-size:16px}
.hs-rw-in ul{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:5px}
.hs-rw-in li{padding:7px 10px;border-radius:10px;background:var(--ground);font-weight:600;font-size:13.5px}
.hs-rw-in li.hs-rw-rare{background:#fff3d1;color:#8a5a00}
.hs-rw-in p{margin:10px 0 0;color:var(--muted);font-size:12.5px}
@media (max-width:860px){.hs-coin{font-size:12.5px;padding:4px 9px}}
.hs-vbtn{position:absolute;right:12px;top:60px;z-index:3;border:0;border-radius:99px;padding:7px 12px;background:rgba(255,255,255,.92);box-shadow:0 3px 12px rgba(40,20,10,.18);font:inherit;font-weight:700;font-size:12.5px;color:var(--ink);cursor:pointer}
.hs-sel-b button[hidden]{display:none}
.hs-pick{display:inline-flex;align-items:center;gap:6px;padding:3px 10px 3px 4px;border-radius:99px;background:var(--ground);font-size:12px;font-weight:600;color:var(--ink2);cursor:pointer}
.hs-pick input{width:26px;height:26px;padding:0;border:0;border-radius:50%;background:none;cursor:pointer}
.hs-pick input::-webkit-color-swatch-wrapper{padding:0}
.hs-pick input::-webkit-color-swatch{border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px var(--line)}
@media (max-width:860px){.hs-vbtn{top:54px;right:8px;font-size:11.5px;padding:6px 10px}}
/* แถบด้านข้าง: เต็ม · ย่อ (เหลือแท็บ) · ซ่อนหมด */
.hs-tsp{flex:1}
.hs-tbtn{flex:none;width:32px;height:32px;margin-top:2px;border:0;border-radius:10px;background:var(--ground);font:inherit;font-weight:700;font-size:14px;color:var(--ink2);cursor:pointer}
.hs-open{position:absolute;left:12px;top:60px;z-index:3;border:0;border-radius:99px;padding:8px 14px;background:var(--brand);color:#fff;font:inherit;font-weight:700;font-size:13px;box-shadow:0 4px 14px rgba(238,77,45,.35);cursor:pointer;text-decoration:none}
.hs-open[hidden],.hs-near[hidden]{display:none}
.hs-near{position:absolute;left:50%;bottom:52px;transform:translateX(-50%);padding:6px 12px;border-radius:10px;background:#fff;box-shadow:0 3px 12px rgba(40,20,10,.2);font-size:12.5px;font-weight:700;color:var(--ink);pointer-events:none;white-space:nowrap}
.hs-kb kbd{display:inline-block;min-width:18px;padding:1px 5px;margin:0 1px;border:1px solid var(--line);border-bottom-width:2px;border-radius:5px;background:#fff;font:inherit;font-size:11px;font-weight:700;text-align:center;color:var(--ink)}
body.hs-mini .av-main,body.hs-hide .av-main{grid-template-columns:minmax(0,1fr);position:relative}
body.hs-hide .av-ward{display:none}
body.hs-mini .av-pane{display:none}
body.hs-mini .av-ward{position:absolute;right:12px;top:100px;z-index:4;border:1px solid var(--line);border-radius:14px;padding-bottom:10px;box-shadow:0 8px 24px rgba(40,20,10,.16);max-width:calc(100% - 24px)}
@media (max-width:860px){
  body.hs-mini .av-main,body.hs-hide .av-main{grid-template-rows:minmax(0,1fr)}
  body.hs-hide .av-view{height:calc(100dvh - var(--top))}
  body.hs-mini .av-view{height:calc(100dvh - var(--top) - 54px)}
  body.hs-mini .av-ward{position:fixed;left:0;right:0;top:auto;bottom:0;min-height:0;max-width:none;border-radius:14px 14px 0 0;border-width:1px 0 0;padding-bottom:max(8px,env(safe-area-inset-bottom))}
  .hs-open{top:54px;left:8px}
}
.av-view{overflow:hidden}
.hs-rooms{max-width:calc(100% - 16px);overflow-x:auto;scrollbar-width:none}
.hs-rooms::-webkit-scrollbar{display:none}
.hs-rooms button{flex:none}
.hs-tpane{position:sticky;right:0;display:flex;gap:4px;flex:none;padding:0 0 0 6px;background:#fff}
/* หน้าต่างครัว: หัว/ท้ายล็อก รายการเลื่อนได้ */
.hs-ck{width:min(420px,100%);max-height:calc(100% - 24px);display:flex;flex-direction:column;padding:0;text-align:left;overflow:hidden}
.hs-ck-h{flex:none;padding:14px 16px 10px;border-bottom:1px solid var(--line)}
.hs-ck-h b{margin:0;font-size:16px}.hs-ck-h small{display:block;margin-top:2px;color:var(--muted);font-size:12px}
.hs-ck-l{flex:1;min-height:0;overflow-y:auto;padding:4px 16px 10px}
.hs-ck-f{flex:none;padding:10px 16px 14px;border-top:1px solid var(--line)}.hs-ck-f .hs-btn{margin:0}
@media (max-width:860px){.hs-reward{position:fixed;z-index:30}}
/* ปุ่มบังคับรถ (โชว์เฉพาะตอนขับ) */
.hs-dpad{display:none;position:absolute;left:0;right:0;bottom:12px;z-index:4;padding:0 14px;align-items:flex-end;justify-content:space-between;pointer-events:none}
body.hs-driving .hs-dpad{display:flex}
.hs-dpad button{pointer-events:auto;border:0;cursor:pointer;font:inherit;font-weight:800;color:#fff;background:rgba(42,34,48,.72);box-shadow:0 4px 12px rgba(0,0,0,.2);touch-action:none}
.hs-dp-lr,.hs-dp-ud{display:flex;gap:10px}.hs-dp-ud{flex-direction:column}
.hs-dp-lr button,.hs-dp-ud button{width:58px;height:58px;border-radius:50%;font-size:20px}
.hs-dpad button.on{background:var(--brand)}
.hs-dp-x{align-self:center;height:40px;padding:0 16px;border-radius:99px;font-size:13px;margin-bottom:10px}
body.hs-driving .hs-status{bottom:auto;top:58px}
@media (pointer:fine){.hs-dp-lr button,.hs-dp-ud button{width:48px;height:48px;font-size:17px}}
/* ปุ่มเสียงจาก pg-sfx.js (ใส่ให้อัตโนมัติก่อนช่องเหรียญ) */
.hs-dp-mid{display:flex;flex-direction:column;align-items:center;gap:8px;margin-bottom:10px}.hs-dp-mid .hs-dp-x{margin:0}
.hs-dp-h{height:36px;padding:0 14px;border-radius:99px;font-size:12.5px}
.hs-fest{margin:2px 0 10px;padding:10px 12px;border-radius:12px;background:linear-gradient(90deg,#fff3d1,#ffe6f0);font-size:13px;color:#6a3a00}
.hs-needs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px}
.hs-nd{display:grid;grid-template-columns:auto minmax(0,1fr) 26px;align-items:center;gap:6px;font-size:12.5px;font-weight:600}
.hs-nd .hs-bar{margin:0}.hs-nd b{text-align:right;font-size:12px;color:var(--muted)}
.hs-nd.low b{color:#c4291e}.hs-nd.low .hs-bar i{background:#e8253b}
.hs-fish{position:absolute;left:50%;bottom:64px;transform:translateX(-50%);z-index:4;border:0;border-radius:99px;padding:12px 26px;background:rgba(42,34,48,.78);color:#fff;font:inherit;font-weight:800;font-size:15px;cursor:pointer}
.hs-fish[hidden]{display:none}.hs-fish.go{background:var(--brand);animation:hsBump .4s ease infinite}
.hs-bk.off{opacity:.45}
.hs-lbl{margin:10px 0 6px;font-size:12px;font-weight:700;color:var(--muted)}
.hs-visitbar{position:absolute;left:12px;right:12px;top:110px;z-index:4;display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px;border-radius:14px;background:#fff;box-shadow:0 6px 20px rgba(60,30,20,.18);font-size:13.5px}
.hs-visitbar[hidden]{display:none}.hs-visitbar span{margin-right:auto}
body.hs-visit [data-tab=deco],body.hs-visit [data-tab=yard],body.hs-visit [data-tab=today],body.hs-visit [data-tab=garden],body.hs-visit .hs-coin{display:none}
/* ปุ่มใช้ชีวิตเอง (31 ต.ค. 69): ใต้ปุ่มมุมมอง · เปิดอยู่ = พื้นส้มตัวขาว */
.hs-vbtn.hs-auto{top:100px}
.hs-vbtn.hs-auto.on{background:var(--brand);color:#fff}
.hs-vbtn[hidden],body.decorating .hs-auto,body.hs-driving .hs-auto{display:none}
@media (max-width:860px){.hs-vbtn.hs-auto{top:92px}}
/* ★ แถบเมนูล่างหน้าบ้านแบบใหม่ (เจ้าของสั่ง 2 พ.ย. 2569) ★ 6 ปุ่มไอคอน · หัวข้อย่อย · ที่จับย่อแถบ · แถบแก้ของไม่บังฉาก */
.av-ward{position:relative}
.hs-tabs2.av-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;padding:14px 6px 0;overflow:visible}
.hs-t2.av-tab{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;padding:7px 2px 8px;border-radius:12px 12px 0 0;background:transparent;font-size:11.5px;line-height:1.2;white-space:nowrap}
.hs-t2 img{width:24px;height:24px;opacity:.75}
.hs-t2.av-tab.on{background:var(--brand);color:#fff}
.hs-t2.on img{filter:brightness(0) invert(1);opacity:1}
.hs-t2 .hs-n{position:absolute;top:3px;right:calc(50% - 22px);min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:#e8331c;color:#fff;font-size:10.5px;font-weight:700;line-height:17px;box-sizing:border-box}
.hs-grip{position:absolute;top:-2px;left:50%;transform:translateX(-50%);width:64px;height:18px;border:0;background:none;padding:0;cursor:pointer}
.hs-grip i{display:block;width:40px;height:5px;margin:6px auto 0;border-radius:3px;background:#d8cbbd}
/* แถบแก้ของที่เลือก: แถบเดียวชิดล่างฉาก ไม่บังบ้าน */
.hs-sel{left:8px;right:8px;bottom:8px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 8px;padding:8px 10px;border-radius:14px;background:rgba(255,255,255,.95)}
.hs-sel b{grid-column:1/-1;font-size:13px;margin:0}
.hs-sel .hs-cols{display:flex;flex-wrap:nowrap;gap:6px;overflow-x:auto;scrollbar-width:none;min-width:0}
.hs-sel .hs-cols::-webkit-scrollbar{display:none}
.hs-sel .av-sw{flex:none;width:28px;height:28px}
.hs-sel .hs-pick{flex:none}
.hs-sel-b{width:auto;gap:4px}
.hs-sel-b button{flex:none;padding:6px 10px;font-size:12.5px}
/* หัวข้อย่อยในเมนู: ปุ่มแถวเดียวติดบนสุดของแผง */
.hs-sub{position:sticky;top:-12px;z-index:2;display:flex;gap:6px;margin:-12px -14px 10px;padding:10px 14px 8px;background:#fff;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--line)}
.hs-sub::-webkit-scrollbar{display:none}
.hs-subb{flex:none;border:1.5px solid var(--line);background:#fff;border-radius:99px;padding:6px 14px;font:inherit;font-size:13px;font-weight:600;color:var(--ink2);cursor:pointer}
.hs-subb.on{background:var(--ink);border-color:var(--ink);color:#fff}
.hs-off{display:none!important}
.hs-t2[data-tab="yard"]:not([data-mode]){display:none}
/* ★ ด้านบนฉากแถวเดียว (เจ้าของสั่ง 2 พ.ย. 2569) ★ แถบห้องชิดซ้าย ปุ่มใช้ชีวิตเองชิดขวาแถวเดียวกัน · ปุ่มมุมมองบ้านย้ายไปเมนูตั้งค่าแล้ว */
.av-fix .hs-rooms.av-cam{left:8px;transform:none;max-width:calc(100% - 150px)}
.av-fix .hs-vbtn:not(.hs-auto){display:none}
.av-fix .hs-vbtn.hs-auto{top:12px;right:8px;height:42px;padding:0 12px}
/* การ์ดเลเวลบ้าน (ออกแบบใหม่ 2 พ.ย. 2569) */
.hs-lv{padding:12px 14px;border-radius:16px;background:linear-gradient(135deg,#fff3e6,#ffe7d6);border:1px solid #f6d8bf}
.hs-lv-c{display:flex;align-items:center;gap:10px}
.hs-lv-ic{flex:none;width:44px;height:44px;padding:7px;border-radius:12px;background:#fff;box-sizing:border-box}
.hs-lv-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.hs-lv-t b{font-size:17px;line-height:1.2}
.hs-lv-t span{font-size:12.5px;color:var(--ink2)}
.hs-lv-n{flex:none;max-width:48%;text-align:right;font-size:11.5px;line-height:1.35;color:var(--ink2)}
.hs-lv-n b{display:block;font-size:13px;color:var(--brand)}
.hs-lv .hs-bar{height:10px;margin-top:10px;background:#fff}
.hs-lv .hs-tip{margin:8px 0 0;font-size:12px}

/* ลากแถบจับขึ้นลง ปรับความสูงแผงล่าง (house.js · 3 พ.ย. 2569) */
@media (max-width:860px){
  .av-fix .av-main{grid-template-rows:minmax(0,var(--hs-vh,50dvh)) minmax(0,1fr)}
  .hs-grip{width:110px;height:24px;top:-4px;cursor:ns-resize;touch-action:none}
}
body.hs-drag{user-select:none;-webkit-user-select:none;cursor:ns-resize}

/* ★ แผงเดินเล่น โฉมใหม่ (เจ้าของอนุมัติแบบ A 3 พ.ย. 2569) ★ house.js renderPane แท็บ walk · ไอคอน wk-icons.svg */
:root{--wk-low:#e8253b;--wk-low-bg:#ffeceb;--wk-mid:#e08a00;--wk-mid-bg:#fff4dc;--wk-ok:#2f9e62;--wk-ok-bg:#e7f6ed;--wk-track:#f1e6dc}

/* ---------- การ์ดกลาง ---------- */
.wk-card{margin:0 0 10px;padding:12px;border-radius:var(--r);background:var(--card);box-shadow:0 1px 0 var(--line),0 2px 8px rgba(60,30,20,.05)}
.wk-h{display:flex;align-items:center;gap:8px;margin:0 0 10px;min-width:0}
.wk-h>b{font-size:15px;flex:none}
.wk-sub{margin-left:auto;font-size:12px;color:var(--muted);text-align:right;min-width:0}
.wk-sub b{color:var(--brand-ink)}
.wk-bonus{margin-left:auto;padding:3px 9px;border-radius:99px;background:#fff6d6;border:1px solid #f3d27a;color:#8a5a00;font-size:11.5px;font-weight:700;white-space:nowrap}

/* ---------- วิธีเล่น: บรรทัดเดียว แตะเปิด ---------- */
.wk-help{margin:0 0 10px;border-radius:var(--r);background:#fff;box-shadow:0 1px 0 var(--line)}
.wk-help summary{display:flex;align-items:center;gap:8px;padding:9px 12px;list-style:none;cursor:pointer;font-size:13px;color:var(--ink2)}
.wk-help summary::-webkit-details-marker{display:none}
.wk-help summary span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wk-help summary b{color:var(--ink);margin-right:4px}
.wk-hi{flex:none;width:22px;height:22px}
.wk-hx{flex:none;width:18px;height:18px;color:var(--muted);transform:rotate(90deg);transition:transform .2s}
.wk-help[open] .wk-hx{transform:rotate(-90deg)}
.wk-hl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0;padding:0 12px 10px;list-style:none}
.wk-hl li{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;column-gap:6px;padding:7px 8px;border-radius:10px;background:var(--ground);font-weight:700;font-size:13px}
.wk-hl i{grid-row:span 2;font-style:normal;font-size:20px;text-align:center}
.wk-hl span{font-weight:500;font-size:12px;color:var(--ink2)}
.wk-kb{padding:0 12px 10px}
@media (pointer:coarse){.wk-kb{display:none}}

/* ---------- ความต้องการ 4 ด้าน: วงแหวน + ปุ่มลัด ---------- */
.wk-alert{margin:-2px 0 10px;padding:7px 10px;border-radius:10px;background:var(--wk-low-bg);color:#a51d2d;font-size:12.5px}
.wk-alert b{font-weight:700}
.wk-alert.ok{background:var(--wk-ok-bg);color:var(--wk-ok);font-weight:700}
.wk-needs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.wk-nd{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 4px;border-radius:12px;background:var(--wk-ok-bg);--c:var(--wk-ok)}
.wk-nd.mid{background:var(--wk-mid-bg);--c:var(--wk-mid)}
.wk-nd.low{background:var(--wk-low-bg);--c:var(--wk-low)}
.wk-ring{--v:0;position:relative;display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:conic-gradient(var(--c) calc(var(--v) * 1%),var(--wk-track) 0)}
.wk-ring::before{content:"";position:absolute;inset:5px;border-radius:50%;background:#fff}
.wk-ni{position:relative;width:30px;height:30px}
.wk-nl{margin-top:3px;font-size:12.5px;font-weight:700;color:var(--ink)}
.wk-nv{font-size:17px;line-height:1.1;color:var(--c)}
.wk-nv small{font-size:10px;font-weight:600;color:var(--muted)}
.wk-go{width:100%;margin-top:5px;border:0;border-radius:99px;padding:6px 2px;background:var(--brand);color:#fff;font:inherit;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap;text-decoration:none}
.wk-go:hover{background:var(--brand-ink)}
.wk-go.ghost{background:#fff;color:var(--brand);box-shadow:inset 0 0 0 1.5px var(--brand)}
.wk-nd.low .wk-go{animation:wkPulse 1.6s ease-in-out infinite}
@keyframes wkPulse{50%{box-shadow:0 0 0 4px rgba(238,77,45,.22)}}
@media (prefers-reduced-motion:reduce){.wk-nd.low .wk-go{animation:none}}

/* ---------- ใช้ของในบ้าน: กลุ่มตามห้อง ---------- */
.wk-room+.wk-room{margin-top:12px;padding-top:12px;border-top:1px dashed var(--line)}
.wk-rh{display:flex;align-items:center;gap:7px;margin:0 0 8px}
.wk-ri{flex:none;width:26px;height:26px}
.wk-rh b{font-size:13.5px}
.wk-rh small{min-width:20px;padding:0 6px;border-radius:99px;background:var(--ground);color:var(--muted);font-size:11px;font-weight:700;text-align:center;line-height:18px}
.wk-walk{display:inline-flex;align-items:center;gap:1px;margin-left:auto;border:0;border-radius:99px;padding:5px 6px 5px 11px;background:var(--brand-wash);color:var(--brand-ink);font:inherit;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}
.wk-gi{width:15px;height:15px;color:currentColor}
.wk-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.wk-it{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;min-height:86px;padding:8px 4px 7px;border:1.5px solid var(--line);border-radius:12px;background:#fff;font:inherit;cursor:pointer;color:var(--ink2)}
.wk-it:hover{border-color:var(--brand)}
.wk-it.has{border-color:#f3dccb}
.wk-ii{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:linear-gradient(180deg,#fbf3ea,#f3e6d8);font-size:23px;line-height:1}
.wk-in{font-size:12px;font-weight:600;line-height:1.25;text-align:center;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.wk-tag{position:absolute;top:4px;right:4px;padding:1px 6px;border-radius:99px;font-style:normal;font-size:10px;font-weight:700;line-height:15px}
.wk-tag.food{background:#fff0e3;color:#c4571e}
.wk-tag.sleep{background:#eceefc;color:#4652b0}
.wk-tag.clean{background:#e3f3fc;color:#1f78a8}
.wk-tag.fun{background:var(--wk-ok-bg);color:var(--wk-ok)}

/* ---------- สัตว์เลี้ยง ---------- */
.wk-adopt{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.wk-ad{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;column-gap:8px;padding:10px;border:0;border-radius:12px;background:var(--brand);color:#fff;font:inherit;text-align:left;cursor:pointer}
.wk-ad:hover{background:var(--brand-ink)}
.wk-ad span{grid-row:span 2;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#fff;font-size:26px}
.wk-ad b{font-size:14px}
.wk-ad em{font-style:normal;font-size:11.5px;opacity:.9}
.wk-adx{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.wk-adx-b{border:1.5px solid #f3d27a;border-radius:99px;padding:6px 12px;background:#fffaf0;color:#7a4a00;font:inherit;font-size:12.5px;font-weight:700;cursor:pointer}
.wk-pet-h{display:flex;align-items:center;gap:10px;margin:0 0 10px}
.wk-pet-av{flex:none;display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:linear-gradient(180deg,#fff3e6,#ffe2cc);font-size:30px}
.wk-pet-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.wk-pet-t>b{font-size:15px}
.wk-pet-t small{font-size:11.5px;color:var(--muted)}
.wk-pet-m{display:grid;grid-template-columns:auto minmax(0,1fr) 24px;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--ink2)}
.wk-pet-m .hs-bar{margin:0;height:8px}
.wk-pet-m b{text-align:right;color:var(--wk-ok)}
.wk-pet-b{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.wk-pb{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 2px;border:1.5px solid var(--line);border-radius:12px;background:#fff;font:inherit;font-size:20px;line-height:1.1;cursor:pointer}
.wk-pb span{font-size:11.5px;font-weight:700;color:var(--ink2);white-space:nowrap}
.wk-pb.main{border-color:var(--brand);background:var(--brand)}
.wk-pb.main span{color:#fff}
.wk-pb.done{background:var(--wk-ok-bg);border-color:transparent;color:var(--wk-ok);cursor:default}
.wk-pb.done span{color:var(--wk-ok)}

/* ---------- ทำท่า ---------- */
.wk-poses{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.wk-pose{display:flex;align-items:center;justify-content:center;gap:6px;padding:9px 4px;border:1.5px solid var(--line);border-radius:12px;background:#fff;font:inherit;font-size:13px;font-weight:700;color:var(--ink2);cursor:pointer}
.wk-pose span{font-size:20px;line-height:1}
.wk-pose:hover{border-color:var(--brand)}

/* ---------- ถือของในมือ: แถวเลื่อนข้าง ---------- */
.wk-holds{display:flex;gap:6px;margin:0 -12px;padding:2px 12px 4px;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity}
.wk-holds::-webkit-scrollbar{display:none}
.wk-hd{flex:none;display:flex;flex-direction:column;align-items:center;gap:4px;width:68px;padding:0;border:0;background:none;font:inherit;font-size:11.5px;font-weight:600;line-height:1.2;color:var(--ink2);text-align:center;cursor:pointer;text-decoration:none;scroll-snap-align:start}
.wk-hd span{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:var(--ground);font-size:26px;box-shadow:inset 0 0 0 1.5px var(--line)}
.wk-hd.on{color:var(--brand-ink);font-weight:700}
.wk-hd.lock{color:var(--muted)}.wk-hd.lock span{opacity:.5;filter:grayscale(.7)}.wk-hd small{display:block;font-size:10.5px;font-weight:700;color:var(--brand-ink)}
.wk-hd.on span{background:var(--brand-wash);box-shadow:inset 0 0 0 2.5px var(--brand)}
.wk-hd.more{color:var(--brand)}
.wk-hd.more .wk-gi{width:52px;height:52px;padding:14px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--brand);box-sizing:border-box}



/* มือถือแคบ: ความต้องการยังเรียง 4 ช่อง ย่อวงแหวน */
@media (max-width:380px){
  .wk-ring{width:48px;height:48px}.wk-ni{width:26px;height:26px}
  .wk-go{font-size:11.5px}
}
.wk-ii img{width:36px;height:36px;object-fit:contain}
.hs-pane-walk,#hpane.wk-on{background:var(--ground)}
/* หัวข้อ "เปลี่ยนตัวที่เลี้ยง" ในการ์ดสัตว์เลี้ยง */
.wk-pet .hs-lbl{margin:12px 0 6px}
/* ขับทะลุซุ้มไปบ้านคนอื่น/กลับบ้าน: จอขาวจางเข้า-ออก (house.js warpEl) */
.hs-warp{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;padding:24px;background:#fffaf3;color:var(--ink,#2a2640);font-weight:700;font-size:18px;text-align:center;opacity:0;pointer-events:none;transition:opacity .4s ease}
.hs-warp.on{opacity:1;pointer-events:auto}
/* ตู้จดหมาย (3 พ.ย. 2569): หน้ากระดาษเขียนจดหมายถึงเพื่อนด้วยรหัส VP · แท็บ เขียน/กล่องรับ/ส่งแล้ว */
.hs-mail .hs-ck-h b{display:block;font-size:16px}
.hs-mtabs{display:flex;gap:6px;margin-top:10px}
.hs-mtabs button{flex:1;position:relative;border:0;border-radius:10px;padding:8px 4px;background:#f6efe8;color:var(--ink);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.hs-mtabs button.on{background:var(--brand);color:#fff}
.hs-mn{position:absolute;top:-7px;right:-4px;min-width:18px;height:18px;padding:0 5px;box-sizing:border-box;border-radius:9px;background:#e8253b;color:#fff;font-style:normal;font-size:11px;line-height:18px}
.hs-min{display:block;width:100%;box-sizing:border-box;border:1.5px solid var(--line);border-radius:12px;padding:10px 12px;font:inherit;font-size:16px;letter-spacing:.5px;text-transform:uppercase;background:#fff;color:var(--ink)}
.hs-min:focus,.hs-paper textarea:focus{outline:0;border-color:var(--brand)}
.hs-mchips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.hs-mchips button{border:0;border-radius:999px;padding:6px 11px;background:#fff1e6;color:var(--brand);font:inherit;font-size:12.5px;font-weight:700;cursor:pointer}
.hs-paper textarea{display:block;width:100%;box-sizing:border-box;min-height:170px;resize:vertical;border:1.5px solid #efd9c3;border-radius:12px;padding:4px 14px;font:inherit;font-size:16px;line-height:28px;color:#3a2d24;background:repeating-linear-gradient(#fffaf2 0 27px,#f0dcc8 27px 28px);background-attachment:local}
.hs-mfoot{display:flex;gap:8px}.hs-mfoot .hs-btn{flex:1}
.hs-mail .hs-merr{margin:8px 0 0;color:#d93025;font-size:13px;font-weight:700}
.hs-mrow{padding:12px 0;border-bottom:1px dashed var(--line)}
.hs-mrow.new{margin:0 -16px;padding:12px 16px;background:linear-gradient(90deg,#fff1e2,#fffaf3)}
.hs-mhd{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}.hs-mhd small{color:var(--muted);font-size:12px}
.hs-mst{margin-left:auto;font-size:12px;font-weight:700;color:var(--muted)}.hs-mst.ok{color:#2f9e62}
.hs-mtx{margin-top:6px;white-space:pre-wrap;word-break:break-word;font-size:14px;line-height:1.6;color:#3a2d24}
.hs-mact{display:flex;gap:6px;margin-top:8px}
.hs-mact button{border:0;border-radius:8px;padding:7px 11px;background:#f6efe8;color:var(--ink);font:inherit;font-size:12.5px;font-weight:700;cursor:pointer}
.hs-mact button.go,.hs-mact a.go{background:var(--brand);color:#fff}
.hs-mact a{border-radius:8px;padding:7px 11px;font-size:12.5px;font-weight:700;text-decoration:none}
.hs-mnews .hs-mhd b{color:var(--brand)}
.hs-mtt{margin-top:6px;font-size:15px;font-weight:700;line-height:1.45;color:var(--ink)}
.hs-mcard{position:relative;display:flex;align-items:center;gap:12px;width:100%;box-sizing:border-box;border:1.5px solid #f3d9c6;border-radius:14px;padding:12px 14px;background:#fffaf3;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.hs-mcard-ic{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#fff1e6;font-size:22px}
.hs-mcard-t{display:flex;flex-direction:column;gap:2px;min-width:0}.hs-mcard-t b{font-size:14px}.hs-mcard-t small{color:var(--muted);font-size:12px}
.hs-mcard .hs-mn{top:8px;right:10px}
/* คำขอติดรถจากผู้เล่นจริง (คนขับเห็น) */
.hs-liveask{position:absolute;left:50%;top:70px;z-index:7;width:min(320px,calc(100% - 32px));transform:translateX(-50%);box-sizing:border-box;padding:14px 16px;border-radius:16px;background:#fff;box-shadow:0 12px 32px rgba(40,20,10,.25);text-align:center}
.hs-liveask b{display:block;font-size:15px;color:var(--ink)}.hs-liveask span{display:block;margin-top:2px;color:var(--muted);font-size:13px}
.hs-liveask div{display:flex;gap:8px;margin-top:10px}.hs-liveask .hs-btn{flex:1;margin:0}
@media (max-width:860px){.hs-liveask{position:fixed;top:120px;z-index:31}}
