/* ---------- หน้าแผนที่เต็มจอ ---------- */
.js .map-page { position: fixed; inset: 0; overflow: hidden; }
.app { position: fixed; inset: 0; overflow: hidden; }
#map { position: absolute; inset: 0 0 var(--tab-h) 0; background: var(--surface-2); }
.top {
  position: absolute; left: 0; right: 0; top: 0; z-index: 3;
  padding: calc(env(safe-area-inset-top) + 8px) 8px 0;
  pointer-events: none; /* ให้ลากแผนที่ผ่านช่องว่างได้ */
}
.top > * { pointer-events: auto; }
.search {
  display: flex; gap: 8px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill);
  padding: 4px 4px 4px 16px; box-shadow: var(--shadow-card);
}
.search input {
  flex: 1; min-width: 0; min-height: var(--tap); border: 0; background: transparent; font: inherit; color: var(--ink);
  padding: 8px 0; outline: none;
}
.search:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.filter-btn { flex: none; background: var(--surface-2); color: var(--ink); padding: 8px 16px; font-weight: 700; } /* ปุ่มรอง (รอบ JJ) */
.status-bar { display: flex; align-items: center; gap: 8px; margin-top: 8px; max-width: 100%; }
.status, .notice {
  display: inline-block; max-width: 100%; margin: 0; padding: 4px 8px; border-radius: var(--r);
  font-size: calc(13px * var(--fs)); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
#status.err { color: var(--accent); font-weight: 700; }
.status-bar .status { flex: 1; min-width: 0; padding: 2px 8px; line-height: 1.3; }
#status { display: block; font-weight: 700; }
.status .nt { display: block; color: var(--muted); font-size: calc(11px * var(--fs)); }
.notice { display: block; width: fit-content; margin-top: 8px; font-size: calc(12px * var(--fs)); }
/* ---------- หน้าค้นหา / เร็ว ๆ นี้ ---------- */
.search.big { padding: 4px 4px 4px 12px; }
.search.big input { font-size: calc(17px * var(--fs)); }
.recent h2 { font-size: calc(13px * var(--fs)); color: var(--muted); margin: 16px 0 4px; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.s-status { color: var(--muted); font-size: calc(13px * var(--fs)); margin: 16px 0 8px; scroll-margin-top: 8px; }
.s-status.pulse { animation: pulse .3s ease; transform-origin: left center; }
.results { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.results li { animation: rise-sm .22s var(--ease-out) backwards; }
.results li:nth-child(2) { animation-delay: .03s; }
.results li:nth-child(3) { animation-delay: .06s; }
.results li:nth-child(n+4) { animation-delay: .09s; }
.result {
  display: flex; gap: 12px; align-items: center; padding: 12px; color: var(--ink); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-card);
}
.result .pin-spr { --h: 32px; }
.result span { min-width: 0; }
.result b { display: block; overflow-wrap: anywhere; }
.result small { display: block; color: var(--muted); font-size: calc(13px * var(--fs)); overflow-wrap: anywhere; }
.empty-state { text-align: center; padding: 20px 8px; }
.empty-state p { color: var(--muted); }
.empty-state .fab, .empty-state .btn-main { display: inline-flex; width: auto; }
.empty-state .btn-main { padding: 12px 20px; text-decoration: none; }
/* ---------- นักล่าหิวโซ / โปรไฟล์ ---------- */
.box {
  margin: 16px 0; padding: 12px 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-card);
}
.box h2 { margin: 0 0 4px; font-size: calc(18px * var(--fs)); }
.box .desc { margin: 0 0 8px; color: var(--muted); font-size: calc(14px * var(--fs)); }
.table-wrap { overflow-x: auto; }
.rank { width: 100%; border-collapse: collapse; font-size: calc(13px * var(--fs)); }
.rank th { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.prof-head { display: flex; gap: 12px; align-items: center; }
.prof-head p { margin: 0; }
.prof-name { font-size: calc(18px * var(--fs)); font-weight: 700; }
.hunt-banner { position: relative; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-card); } /* ภาพพิกเซล: ไม่โค้งมุม (ห้ามตัดภาพ) */
.hunt-banner > img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; }
.hunt-id { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); max-width: 42%; display: grid; gap: 4px; justify-items: start; }
.hunt-id p { margin: 0; padding: 2px 8px; background: var(--ink); color: var(--surface); font-weight: 700; overflow-wrap: anywhere; font-size: calc(13px * var(--fs)); }
#hofName { font-size: calc(16px * var(--fs)); }
/* รอบ GG: การ์ดขาว 3 ใบเท่ากัน — ป้ายบน ตัวเลขล่าง */
.hunt-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.hunt-chip { display: grid; gap: 2px; align-content: center; margin: 0; min-height: 64px; padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-card); font-size: calc(12px * var(--fs)); color: var(--muted); }
.hunt-chip b { color: var(--ink); font-size: calc(20px * var(--fs)); line-height: 1.2; overflow-wrap: anywhere; }
.hunt-chip { position: relative; }
.hunt-chip .hunt-ic { position: absolute; top: 8px; right: 8px; width: auto; height: 20px; }
.page-head { margin: 8px 0 12px; }
.page .page-head h1 { margin: 0; font-size: calc(24px * var(--fs)); font-weight: 700; line-height: 1.3; }
.page-head p { margin: 2px 0 0; font-size: calc(13px * var(--fs)); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.star-form { display: grid; gap: 6px; margin-top: 8px; }
.star-form p { margin: 0; }
.sf-shop { font-weight: 700; }
.stars { display: flex; gap: 4px; }
.star { min-width: var(--tap); min-height: var(--tap); padding: 0; font-size: 24px; line-height: 1; background: var(--surface); color: var(--line); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.star.on { color: var(--gold); }
.star .px-star { width: 22px; height: 22px; fill: currentColor; vertical-align: middle; }
.star-form textarea { width: 100%; padding: 8px 12px; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-input); resize: vertical; }
/* one grid: title | extra btn | count (fixed col) */
.missions li { display: grid; grid-template-columns: minmax(0, 1fr) auto 3em; align-items: center; column-gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.missions li > b { grid-column: 3; text-align: right; color: var(--muted); }
.missions li.done s, .missions li.done b { color: var(--muted); }
.missions li.locked small { display: block; color: var(--muted); font-size: calc(12px * var(--fs)); }
.ms-bar { height: 8px; margin-top: 8px; background: repeating-linear-gradient(90deg, var(--surface-2) 0 6px, transparent 6px 8px); } /* บล็อกพิกเซล 8px */
.ms-bar span { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 8px); transition: width .3s var(--ease-out); }
.ms-full { display: flex; align-items: center; gap: 12px; margin: 8px 0 0; padding: 8px 12px; background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.ms-note { margin: 8px 0 0; font-size: calc(12px * var(--fs)); }
.home-box .row { display: flex; gap: 8px; }
.fsheet label { display: block; margin-top: 8px; font-size: calc(13px * var(--fs)); color: var(--muted); }
.fsheet input { width: 100%; min-height: var(--tap); padding: 8px; border: 1px solid var(--ink-2); border-radius: var(--r-input); background: var(--surface); color: var(--ink); font: inherit; }
.home-ways { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.home-map { position: relative; height: 260px; margin-top: 12px; border: 1px solid var(--line); }
#homeMap { position: absolute; inset: 0; }
.home-cross { position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; pointer-events: none;
  background: linear-gradient(var(--accent), var(--accent)) center / 2px 100% no-repeat, linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat; }
.menu-group h2 { margin: 20px 0 8px; font-size: calc(13px * var(--fs)); color: var(--muted); }
.menu { list-style: none; margin: 16px 0 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-card); }
.menu-group h2 + .menu { margin-top: 0; }
.menu li + li { border-top: 1px solid var(--line); }
.menu-row { display: flex; justify-content: space-between; gap: 12px; min-height: var(--tap); padding: 12px 16px; color: var(--ink); text-decoration: none; font-weight: 700; }
.menu-row:hover { background: var(--bg); }
/* สมาชิก (MM): ป้าย 59 บาท + สิทธิ์ + บรรทัดยังไม่เปิดสมัคร · ไม่มีปุ่ม */
.member { scroll-margin-top: 16px; }
.member-badge { display: inline-block; margin: 0 0 8px; padding: 4px 12px; border-radius: var(--pill); background: var(--surface-2); font-size: calc(13px * var(--fs)); font-weight: 700; }
.perks { margin: 0 0 12px; padding-left: 20px; font-size: calc(15px * var(--fs)); line-height: 1.5; }
/* ตั้งค่า (รอบ GG): แถวละ 56 คั่น 1px --line (เส้นมาจาก .menu li + li) */
.settings > li { display: flex; min-height: 56px; }
.settings .pref, .settings .menu-row { align-items: center; justify-content: space-between; gap: 12px; padding: 6px 16px; }
.settings .menu-row { flex: 1; min-height: 0; } /* li คือแถว 56 (รวมเส้น 1px) */
.settings .pref-lab { margin: 0; font-weight: 700; }
.settings .chips { justify-content: flex-end; }
.member-want { min-height: var(--tap); padding: 0 16px; border: 0; border-radius: var(--pill); background: var(--surface-2); font-size: calc(15px * var(--fs)); font-weight: 700; cursor: pointer; }
.quiet-link { margin: 24px 0 0; text-align: left; font-size: calc(13px * var(--fs)); }
.quiet-link a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--muted); }
/* ---------- หน้าเนื้อหา (index / about / รายชื่อแบบไม่มี JS) ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 16px 16px calc(var(--tab-h) + 16px); }
.page h1 { font-size: calc(22px * var(--fs)); margin: 4px 0 8px; display: flex; align-items: center; gap: 8px; }
.page .credit { text-align: left; background: none; padding: 0; font-size: calc(12px * var(--fs)); margin-top: 16px; }
/* ---------- หน้าแรก: เลื่อนลงแนวนำเสนอ ---------- */
.home .page { max-width: 480px; padding-top: calc(env(safe-area-inset-top) + 8px); padding-bottom: calc(96px + env(safe-area-inset-bottom)); } /* เนื้อหาไม่โดนแท็บบาร์บัง */
.page-mark { display: flex; align-items: center; justify-content: center; gap: 6px; }
.page-mark { margin: 8px auto 16px; }
.page-mark img { display: block; width: auto; flex: none; image-rendering: pixelated; }
.hof-mark .mark-th { height: 35px; }
/* รอบ JJ: หน้าแรก = HiwSo (B) อันเดียว สูง 96 กึ่งกลาง ห่างหัวเรื่อง 12px */
.home-logo { margin: 0 0 12px; text-align: center; }
.home-logo img { display: inline-block; vertical-align: top; height: 96px; width: auto; max-width: 100%; object-fit: contain; image-rendering: pixelated; }
.home .page .hero-title { margin-top: 0; }
.page .hero-title {
  display: block; margin: 4px 0 0; padding-top: 12px; /* วัดจริง: วรรณยุกต์ 'สั่ง' (Plex Looped) โผล่เหนือบรรทัด 9.2px → 6px ไม่พอ */ font-family: "IBM Plex Sans Thai Looped", "Noto Sans Thai", var(--font);
  font-size: calc(40px * var(--fs)); font-weight: 700; line-height: 1.22; letter-spacing: 0; word-spacing: 0.06em; font-feature-settings: normal; color: var(--ink);
  text-wrap: balance;
}
html[lang=en] .hero-title { white-space: pre-line; } /* รอบ NN: EN ตัดบรรทัดตาม \n ในคำแปล = 'Easy eats' / 'near you' */
.home .stage { margin-top: 16px; } /* หัวเรื่อง → hero 16px (สเกล 4px) */
.stage { background: var(--surface-alt); }
.st-bg { display: block; width: 100%; height: auto; max-height: 240px; aspect-ratio: 2 / 1; object-fit: contain; image-rendering: pixelated; }
.counter { margin: 16px 0; font-size: calc(16px * var(--fs)); font-weight: 700; line-height: 1.2; }
.counter small { display: block; font-size: calc(13px * var(--fs)); font-weight: 400; color: var(--muted); }
.counter b { font-size: calc(30px * var(--fs)); font-weight: 800; color: var(--ink); margin-right: 4px; letter-spacing: 0; font-variant-numeric: tabular-nums; } /* ปุ่ม หิวจัด!! เป็นพระเอกเดียว */
/* รอบ C: ปุ่มพระเอก พื้น --brand + เงาแข็งแบบพิกเซล (ไม่ฟุ้ง) · กดแล้วยุบ 2px */
.home .btn-main { margin: 0 0 6px; min-height: 64px; padding: 0 16px; gap: 8px; align-items: center; justify-content: center; font-size: calc(22px * var(--fs)); animation: pop .4s var(--spring) .2s backwards; } /* พื้น/เงา/กด = กติกาปุ่มหลักร่วม (.btn-main) */
.home .btn-main img { image-rendering: pixelated; width: 28px; height: 28px; }
.near { margin: 0 0 24px; }
.near-title { margin: 0; font-size: calc(16px * var(--fs)); line-height: 1.4; }
.near-status { margin: 0 0 8px; font-size: calc(13px * var(--fs)); font-weight: 400; line-height: 1.4; color: var(--muted); }
.near .chip { text-decoration: none; font-size: calc(15px * var(--fs)); padding: 5px 14px; gap: 4px; } /* ชิปรองมาตรฐาน: --surface-2 ไม่มีเส้น สูง 44 */
.pin-mini { flex: none; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linejoin: round; }
.near .chip[aria-current] { background: var(--accent); color: var(--surface); font-weight: 700; } /* = ชิปที่เลือกทั้งแอป */
.cap { margin: 8px 0 24px; text-align: left; font-size: calc(14px * var(--fs)); color: var(--muted); }
.sec { margin-bottom: var(--sp-5); padding-top: var(--sp-4); background: repeating-linear-gradient(90deg, rgba(43,21,32,.22) 0 2px, transparent 2px 4px) top / 100% 2px no-repeat; } /* เส้นคั่น dither (PP .22) */
.sec h2 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 4px; font-size: calc(16px * var(--fs)); }
.sec-link { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 4px; font-size: calc(13px * var(--fs)); font-weight: 700; text-decoration: none; }
.hscroll {
  list-style: none; margin: 0 -16px; padding: 4px 16px 12px; display: flex; gap: var(--sp-4);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll li { flex: none; scroll-snap-align: start; }
.area-card, .feat-card, .hunter, .donate {
  display: block; border-radius: var(--r); color: var(--ink); text-decoration: none; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-card); transition: transform .18s var(--spring), box-shadow .12s ease;
}
.area-card:active, .feat-card:active, .hunter:active, .donate:active { transform: scale(.97); box-shadow: var(--shadow-card); transition-duration: .08s; }
.area-card { width: 248px; padding: var(--sp-3); display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--sp-3); align-items: center; } /* ภาพ 64 ซ้าย + ข้อความ */
.area-card b { display: block; font-size: calc(17px * var(--fs)); line-height: 1.35; }
.area-card .top3 { margin-top: 4px; color: var(--muted); font-size: calc(13px * var(--fs)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.area-card i, .area-card i + small { display: inline; font-style: normal; font-size: calc(15px * var(--fs)); line-height: 1.35; color: var(--ink); }
.area-card i { margin-right: 4px; }
.want { width: 248px; margin-top: 8px; }
.want[open] { width: 252px; }
.want summary { display: flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 6px 10px; background: var(--surface-2); border-radius: var(--pill); font-size: calc(14px * var(--fs)); line-height: 1.35; font-weight: 700; cursor: pointer; list-style: none; }
.want summary::-webkit-details-marker { display: none; }
.want .chip { text-decoration: none; color: var(--ink); }
.want .chip b { color: var(--accent); }
.area-card small, .feat-card small, .hunter small, .donate small { display: block; font-size: calc(12px * var(--fs)); color: var(--muted); line-height: 1.4; }
/* การ์ด "ช่วยกันยังไง" พื้น ink */
.feat-card { width: 176px; height: 100%; padding: 12px; background: var(--ink); color: var(--surface); }
.feat-card small { color: var(--surface-2); }
.feat-card img { display: block; image-rendering: pixelated; }
.feat-card b { display: block; margin: 4px 0; font-size: calc(14px * var(--fs)); }
#areas:target .areas-row { flex-wrap: wrap; overflow: visible; }
#areas:target .area-card, #areas:target .want { width: calc(min(100vw, 480px) - 32px); } /* 1 คอลัมน์ (การ์ดมีภาพซ้าย กว้างเกิน 2 คอลัมน์) */
.hunter, .donate { display: flex; align-items: center; gap: 12px; padding: 12px; }
.hunter b, .donate b { display: block; font-size: calc(14px * var(--fs)); }
.donate { margin-bottom: 16px; background: var(--surface-2); }
.donate small { color: var(--ink); } /* muted บนพื้น --line ไม่ถึง 4.5:1 */
.foot-note { font-size: calc(12px * var(--fs)); color: var(--muted); margin: 0 0 8px; }
.banner { padding: 8px 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); font-size: calc(14px * var(--fs)); }
.seo ul { padding-left: 20px; }
.seo li { margin: 4px 0; overflow-wrap: anywhere; }
@media (min-width: 900px) {
  .top { right: auto; width: 440px; }
  .sheet { left: 8px; right: auto; width: 420px; bottom: calc(var(--tab-h) + 8px); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
  .sheet-panel { max-height: calc(100vh - var(--tab-h) - var(--peek) - 200px); }
}
/* เวลาเปิด–ปิด (ฟอร์มคัดร้าน + ป้ายบนการ์ด) */
.hours-grid { display: grid; gap: 4px; margin-top: 8px; }
.hr-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto minmax(0, 1fr); gap: 4px; align-items: center; }
.hr-row .d { font-size: calc(14px * var(--fs)); }
.hours-grid.same .hr-row:not(:first-child) { display: none; }
.hours .desc { font-size: calc(13px * var(--fs)); color: var(--muted); margin: 4px 0 0; }
.hours-tag { display: inline-block; margin: 8px 0 0; padding: 2px 10px; font-size: calc(13px * var(--fs)); line-height: 1.5; font-weight: 700; border: 0; border-radius: var(--pill); }
.hours-tag.on { background: var(--ok-soft); color: var(--ok); }
.hours-tag.off { background: var(--surface-2); color: var(--ink); }
.hours-tag.unk { background: var(--bg); color: var(--muted); font-weight: 400; }
.report-btn { display: flex; margin-top: 8px; }
.report-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.share-btn { margin-top: 8px; }
.install { width: min(360px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--r-sheet); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); overflow: auto; }
.install::backdrop { background: rgb(0 0 0 / 40%); }
.install:focus { outline: none; } /* autofocus ที่ตัวป๊อปอัป ไม่ใช่ปุ่ม × · ปุ่มข้างในยังมี focus ring เมื่อกด Tab */
.install #installDesc { font-size: calc(12px * var(--fs)); } /* 1 บรรทัดที่จอ 375 */
.install[open] { animation: install-in .24s var(--spring); }
@keyframes install-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.install-box { display: grid; justify-items: center; gap: 8px; padding: 8px 16px 12px; text-align: center; }
.install-grab { display: block; width: 36px; height: 4px; border-radius: var(--pill); background: var(--surface-2); }
.install-top { justify-self: stretch; display: flex; align-items: center; justify-content: space-between; margin-top: -4px; }
.install-x { width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; font-size: calc(24px * var(--fs)); line-height: 1; color: var(--ink); cursor: pointer; }
.install-pose { --s: 96px; }
.install h2 { margin: 0; font-size: calc(19px * var(--fs)); line-height: 1.3; }
.install p { margin: 0; font-size: calc(14px * var(--fs)); line-height: 1.45; color: var(--muted); }
.install-how { justify-self: stretch; display: grid; gap: 8px; margin: 4px 0 0; padding: 12px; list-style: none; background: var(--surface-2); border-radius: var(--r); text-align: left; }
.install-how[hidden] { display: none; }
.install-how li { display: flex; align-items: center; gap: 10px; font-size: calc(14px * var(--fs)); font-weight: 700; line-height: 1.35; }
.install-how b { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--surface); font-size: calc(13px * var(--fs)); }
.install .install-note { font-size: calc(12px * var(--fs)); }
.install .btn-main { width: 100%; margin: 4px 0 0; min-height: var(--tap); padding: 0 22px; font-size: calc(16px * var(--fs)); animation: none; } /* ไม่รับขนาด 22px ของปุ่มหน้าแรก */
.install-links { display: flex; justify-content: center; gap: 16px; }
.install-links .link { min-height: var(--tap); font-size: calc(13px * var(--fs)); }
.greet { margin: 4px 0 0; font-size: calc(14px * var(--fs)); font-weight: 700; color: var(--accent); overflow-wrap: anywhere; }
.name-form { margin-top: 8px; }
.name-form label { display: block; font-size: calc(12px * var(--fs)); color: var(--muted); }
.name-form .row { display: flex; gap: 8px; }
.name-form input { flex: 1; min-width: 0; margin: 0; min-height: var(--tap); padding: 4px 8px; font: inherit; border: 1px solid var(--ink-2); border-radius: var(--r-input); background: var(--surface); color: var(--ink); }
.prof-head .prof-name { overflow-wrap: anywhere; }
.prof-head { flex-wrap: wrap; }
.prof-head > div { flex: 1; min-width: 0; }
.prof-stats { flex: 1 0 100%; margin: 8px 0 0; }
.prof-stats dt { font-size: calc(12px * var(--fs)); }
.pref { padding: 8px 0; }
.pref-lab { margin: 0 0 4px; font-size: calc(13px * var(--fs)); font-weight: 700; }
.row-n { color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  :active, .fab-col.moving { transform: none !important; }
  .fab-col.moving { opacity: 1; }
  .toast.show { opacity: 1; }
}
.chip, .filter-btn, .more, .want summary, .member-want, .sheet-form label.chk, .card .card-btns > :not(.go) {
  background: var(--surface); border: 1px solid var(--chip-line); box-shadow: var(--chip-shadow);
  color: var(--ink); font-weight: 600; font-size: calc(15px * var(--fs));
}
.chip[aria-pressed="true"], .near .chip[aria-current], .eat-btn[aria-pressed="true"] { border-color: transparent; box-shadow: none; }
.sheet-form label.chk:has(input:checked) { border-color: transparent; box-shadow: none; } /* แยกกฎ: เบราว์เซอร์ที่ไม่รู้จัก :has ไม่ทิ้งทั้งกลุ่ม */
.chip svg, .filter-btn svg, .more svg { color: var(--ink-2); }
.chip[aria-pressed="true"] svg, .near .chip[aria-current] svg { color: inherit; }
.chip:active, .filter-btn:active, .more:active, .want summary:active, .member-want:active, .sheet-form label.chk:active, .card .card-btns > :not(.go):active {
  transform: translateY(1px); box-shadow: 0 1px 0 rgba(43,21,32,.16); transition-duration: .08s; }
.chip[aria-pressed="true"]:active, .near .chip[aria-current]:active { box-shadow: none; }
.row-meta, .card-meta, .row-top .badge.rv, .page-head p, .area-card .top3, .area-card small, .near-status, .status .nt, .stats dt, .result small, .cap, .member-fine, .counter small, .foot-note, .sf-pts, .hours .desc, .box .desc, .install p, .muted { font-weight: 500; }
.tabbar a:not([aria-current]) .ti { stroke-width: 1.8; color: var(--ink-2); }
/* RR ถามกลับหลังนำทาง: กรอบ .install กลางจอ · ตัวเลือก 4 ปุ่มเต็มกว้าง สูง 48 */
.nav-ask h2 { overflow-wrap: anywhere; }
.nav-ask .chip { justify-self: stretch; justify-content: center; min-height: 48px; margin: 0; }
/* ห้องแต่งตัวนักล่า: ช่องรูปจองขนาดก่อนโหลด · กรอบพื้นฐาน (tier 0) ใช้โทเคน · กรอบสมาชิก 1/3/6/12 เดือนจาก assets/wardrobe/frames.css */
.av { flex: none; display: inline-grid; place-items: center; position: relative; vertical-align: middle; border: 3px solid var(--line); border-radius: 12px; background: var(--surface); }
.av.av-48 { width: 48px; height: 48px; }
.av.av-32 { width: 32px; height: 32px; border-width: 2px; border-radius: 8px; margin-right: 6px; }
.av.hiwso-portrait[data-tier="0"] { border-color: var(--line); background: var(--surface); box-shadow: none; }
.av img, .av canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.av-go { display: flex; grid-row: span 2; }
.rank-nm { white-space: nowrap; margin-right: 4px; }
.rank-nm .av.hiwso-portrait { display: inline-grid; }
.hunt-id { grid-template-columns: auto auto; align-items: center; column-gap: 6px; max-width: 62%; }
