/**
 * ⭐ เว็บข้อมูลผู้เล่น (Player Hub · 2026-10-03) — `views/hub/index.php`
 *
 * 🔴 **โหลดเฉพาะหน้านี้** — ไม่แตะ `live.css` · หน้าโต๊ะทุกธีม (รวม classic) ต่างกัน 0 พิกเซล
 * 🔴 **คลาสทุกตัวขึ้นต้น `hb-`** — `live.css` จองชื่อสั้นไปเกือบหมด (`.toast` `.card` `.tab` …)
 * 🔴 **สีมาจากโทเคนของธีม** (`--panel --ink --ink-dim --line --gold --accent --danger --field-bg --field-line`)
 *    ธีมทั้ง 160 แบบใช้ได้เอง · ค่าหลัง `,` คือสำรองเมื่อธีมไม่ได้ประกาศ
 * ⚠️ ออกแบบที่ 360px ในแอป LINE ก่อน · ขยับด้วย transform/opacity · ปิดหมดเมื่อ prefers-reduced-motion
 * ⚠️ ที่มาแนวทาง: `C:\App\skill-ui` (Bento Grid Pulse · Dashboard Widgets · Chart · AI Steppers · Spring Animations)
 */

.hb-root { display: contents; }

.hb {
  --hb-panel: var(--panel, #14151b);
  --hb-ink: var(--ink, #f2f1ec);
  --hb-dim: var(--ink-dim, #a2a5b2);
  --hb-line: var(--line, #2a2c37);
  --hb-gold: var(--gold, #ebbe3a);
  --hb-cy: var(--accent, #3fe0ff);
  --hb-win: #35d48a;
  --hb-lose: var(--danger, #ff5b6e);
  --hb-field: var(--field-bg, rgba(0, 0, 0, .25));
  --hb-fline: var(--field-line, var(--hb-line));
  --hb-r: var(--radius, 18px);
  --hb-ease: cubic-bezier(.2, .8, .2, 1);

  max-width: 540px; margin: 0 auto;
  padding: 0 14px calc(96px + var(--safe-b, 0px));
  /** 🔴 `minmax(0,1fr)` ไม่ใช่ `auto` — แทร็กอัตโนมัติยืดตามเนื้อหาที่กว้างสุด แล้วทั้งหน้าล้นขวาจอมือถือ (เจอตอนถ่ายภาพจริง) */
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; color: var(--hb-ink);
  overflow-x: clip;
}
.hb > * { min-width: 0; }

.hb-num { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.hb-pos { color: var(--hb-win); }
.hb-neg { color: var(--hb-lose); }
.hb-dim { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--hb-dim); }
.hb-h1 { margin: 0; font-size: 20px; }
.hb-h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 15px; font-weight: 700; flex-wrap: wrap; }
.hb-h2 em { margin-left: auto; font-style: normal; font-weight: 400; font-size: 12px; color: var(--hb-dim); }
.hb-sec { min-width: 0; }
.hb-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.hb-page[hidden], .hb-sec[hidden] { display: none; }

.hb-card {
  background: var(--hb-panel); border: 1px solid var(--hb-line); border-radius: var(--hb-r);
  padding: 18px; display: grid; gap: 12px; margin-top: 16px;
}
.hb-card--center { justify-items: center; text-align: center; }
.hb-orb {
  width: 60px; height: 60px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--hb-gold), var(--hb-cy), var(--hb-gold));
  animation: hb-spin 6s linear infinite;
}

/* ── ปุ่ม ───────────────────────────────────────────────────── */
.hb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--hb-line);
  background: transparent; color: var(--hb-ink); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: transform .15s var(--hb-ease);
}
.hb-btn:active { transform: scale(.97); }
.hb-btn[disabled] { opacity: .45; cursor: not-allowed; }
.hb-btn--gold { background: linear-gradient(180deg, color-mix(in srgb, var(--hb-gold) 80%, #fff), var(--hb-gold)); color: #1c1503; border: 0; }
.hb-btn--ghost { background: color-mix(in srgb, var(--hb-ink) 6%, transparent); }
.hb-btn--block { width: 100%; }
.hb button:focus-visible, .hb a:focus-visible, .hb input:focus-visible, .hb select:focus-visible {
  outline: 2px solid var(--hb-cy); outline-offset: 2px;
}

/* ── แถบบน ─────────────────────────────────────────────────── */
.hb-top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px;
  padding: 12px 0 8px; background: linear-gradient(var(--bg, #07080b) 70%, transparent);
}
.hb-top__shop { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-top__shop i { width: 22px; height: 22px; border-radius: 7px; flex: none; background: conic-gradient(from 200deg, var(--hb-cy), var(--hb-gold), var(--hb-cy)); }
.hb-live {
  margin-left: auto; display: flex; align-items: center; gap: 6px; flex: none;
  font-size: 12px; color: var(--hb-dim); background: var(--hb-panel); border: 1px solid var(--hb-line);
  padding: 4px 10px; border-radius: 99px;
}
.hb-live b { width: 7px; height: 7px; border-radius: 50%; background: var(--hb-win); animation: hb-ping 1.6s infinite; }
.hb-live.is-off b { background: var(--hb-dim); animation: none; }

/* ── การ์ดหลัก ─────────────────────────────────────────────── */
.hb-hero {
  position: relative; overflow: hidden; border-radius: var(--hb-r); padding: 18px;
  border: 1px solid var(--hb-line);
  background: linear-gradient(160deg, color-mix(in srgb, var(--hb-gold) 14%, var(--hb-panel)) 0%, var(--hb-panel) 50%);
  display: grid; gap: 14px;
}
.hb-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, color-mix(in srgb, var(--hb-gold) 12%, transparent) 50%, transparent 60%);
  background-size: 250% 100%; animation: hb-sheen 7s linear infinite;
}
.hb-who { display: flex; gap: 14px; align-items: center; min-width: 0; }
.hb-av { position: relative; width: 64px; height: 64px; flex: none; display: grid; place-items: center; }
.hb-av__ring {
  position: absolute; inset: -4px; border-radius: 50%;
  background: conic-gradient(var(--hb-gold), var(--hb-cy), var(--hb-gold));
  animation: hb-spin 8s linear infinite;
}
/**
 * 🔴 **ซ้อนแบบเดียวกับการ์ดในไลน์: กรอบอยู่ล่าง รูปอยู่บน** (`ProfileTemplateRenderer` — กรอบ 70 · รูป 55 กลางกรอบ)
 *    กรอบหลายลายเป็นรูปทึบทั้งใบ — วางกรอบทับรูป = รูปหายทั้งใบ (เจอจริง 2026-10-03 กรอบ #29)
 */
.hb-av__letter, .hb-av__pic {
  position: absolute; inset: 0; z-index: 1; border-radius: 50%; border: 3px solid var(--hb-panel);
}
/* 🔴 กว้าง/สูงต้องตามระยะขอบด้วย — `.hb-av__pic { width:100% }` ชนะ inset แล้วรูปหลุดกลางกรอบ (เจอจริง 2026-10-03) */
.hb-av.has-frame .hb-av__letter, .hb-av.has-frame .hb-av__pic { inset: 11%; width: 78%; height: 78%; border: 0; }
.hb-av__letter { display: grid; place-items: center; background: color-mix(in srgb, var(--hb-ink) 12%, var(--hb-panel)); color: var(--hb-gold); font-size: 24px; font-weight: 800; }
.hb-av__pic { width: 100%; height: 100%; object-fit: cover; }
.hb-av__frame { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; pointer-events: none; }
.hb-av.has-frame .hb-av__ring { opacity: 0; }
.hb-who__txt { display: grid; gap: 2px; min-width: 0; }
.hb-who__txt strong { font-size: 18px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-who__txt small { color: var(--hb-dim); font-size: 12.5px; }
.hb-lv { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--hb-dim); margin-top: 4px; }
.hb-lv b { color: var(--hb-gold); }
.hb-lv__bar { flex: 1; min-width: 70px; height: 6px; border-radius: 9px; background: color-mix(in srgb, var(--hb-ink) 10%, transparent); overflow: hidden; }
.hb-lv__bar i { display: block; height: 100%; width: 0; border-radius: 9px; background: linear-gradient(90deg, var(--hb-gold), color-mix(in srgb, var(--hb-gold) 60%, #fff)); transition: width 1.2s var(--hb-ease); }

.hb-bal small { font-size: 13px; color: var(--hb-dim); }
.hb-bal__amt { font-size: clamp(32px, 10vw, 44px); font-weight: 800; line-height: 1.1; color: var(--hb-gold); }
.hb-bal__amt.is-flash { animation: hb-flash 1s var(--hb-ease); }
.hb-bal__delta { min-height: 18px; font-size: 13px; opacity: 0; transition: opacity .3s; }
.hb-bal__delta.is-on { opacity: 1; }

.hb-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hb-acts--page { margin-top: 4px; }
.hb-act {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px;
  border-radius: 16px; border: 1px solid var(--hb-line); background: color-mix(in srgb, var(--hb-ink) 5%, var(--hb-panel));
  color: var(--hb-ink); font: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
  transition: transform .15s var(--hb-ease);
}
.hb-act[hidden] { display: none; }
.hb-act:active { transform: scale(.97); }
.hb-act--in { background: linear-gradient(180deg, color-mix(in srgb, var(--hb-gold) 75%, #fff), var(--hb-gold)); color: #1c1503; border: 0; box-shadow: 0 8px 26px -10px var(--hb-gold); }
.hb-act svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hb-arw-d { animation: hb-down 1.4s ease-in-out infinite; }
.hb-arw-u { animation: hb-up 1.4s ease-in-out infinite; }

/* ── แถบเงินลอย (เลื่อนเลยการ์ดหลัก) ─────────────────────── */
.hb-mini {
  position: fixed; left: 50%; top: 8px; z-index: 30; width: min(512px, calc(100% - 28px));
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 16px;
  background: color-mix(in srgb, var(--hb-panel) 92%, transparent); backdrop-filter: blur(10px);
  border: 1px solid var(--hb-line); transform: translate(-50%, -140%); opacity: 0;
  transition: transform .3s var(--hb-ease), opacity .3s;
}
.hb-mini.is-on { transform: translate(-50%, 0); opacity: 1; }
.hb-mini .hb-num { margin-right: auto; font-size: 18px; font-weight: 800; color: var(--hb-gold); }
.hb-mini button { height: 36px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--hb-line); background: transparent; color: var(--hb-ink); font: inherit; font-weight: 700; cursor: pointer; }
.hb-mini .hb-mini__in { background: var(--hb-gold); color: #1c1503; border: 0; }

/* ── แถบสด (QR รอโอน · ถอนรอโอน · โพยรอบนี้) ─────────────── */
.hb-strips { display: grid; gap: 10px; }
.hb-strips:empty { display: none; }
.hb-strip {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; width: 100%; text-align: left;
  border-radius: 14px; border: 1px solid var(--hb-line); background: var(--hb-panel); color: var(--hb-ink); font: inherit;
  animation: hb-in .45s var(--hb-ease);
}
button.hb-strip { cursor: pointer; }
.hb-strip b { display: block; font-size: 14px; }
.hb-strip small { display: block; font-size: 12px; color: var(--hb-dim); }
.hb-strip__go { margin-left: auto; color: var(--hb-dim); flex: none; }
.hb-strip--gold { border-color: color-mix(in srgb, var(--hb-gold) 50%, transparent); background: linear-gradient(90deg, color-mix(in srgb, var(--hb-gold) 12%, transparent), var(--hb-panel) 60%); }
.hb-strip--cy { border-color: color-mix(in srgb, var(--hb-cy) 40%, transparent); background: linear-gradient(90deg, color-mix(in srgb, var(--hb-cy) 10%, transparent), var(--hb-panel) 60%); }
.hb-strip__ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--hb-ink) 6%, transparent); }
.hb-eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 16px; }
.hb-eq i { width: 3px; height: 4px; background: var(--hb-cy); animation: hb-eq 1s ease-in-out infinite; }
.hb-eq i:nth-child(2) { animation-delay: .2s; }
.hb-eq i:nth-child(3) { animation-delay: .4s; }
.hb-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.hb-tag { font-size: 12px; padding: 1px 9px; border-radius: 99px; border: 1px solid var(--hb-line); background: color-mix(in srgb, var(--hb-ink) 5%, transparent); }

.hb-warn {
  display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; font-size: 13.5px;
  border: 1px solid color-mix(in srgb, var(--hb-lose) 60%, transparent);
  background: color-mix(in srgb, var(--hb-lose) 14%, var(--hb-panel)); animation: hb-in .45s var(--hb-ease);
}
.hb-warn[hidden] { display: none; }

/* ── bento + การ์ดย่อย ─────────────────────────────────────── */
.hb-bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hb-tile {
  position: relative; overflow: hidden; display: grid; gap: 4px; align-content: start; min-width: 0;
  background: var(--hb-panel); border: 1px solid var(--hb-line); border-radius: 14px; padding: 12px;
}
.hb-tile--wide { grid-column: 1 / -1; }
.hb-lbl { font-size: 12px; color: var(--hb-dim); letter-spacing: .02em; }
.hb-big { font-size: 26px; font-weight: 800; line-height: 1.2; }
.hb-sub { font-size: 12px; color: var(--hb-dim); }
.hb-holo { background: linear-gradient(180deg, color-mix(in srgb, var(--hb-cy) 7%, transparent), transparent 55%), var(--hb-panel); }
.hb-holo::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, color-mix(in srgb, var(--hb-cy) 6%, transparent) 0 1px, transparent 1px 4px);
}
.hb-holo::after {
  content: ""; position: absolute; left: 0; right: 0; height: 40%; top: -40%; pointer-events: none;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--hb-cy) 14%, transparent), transparent);
  animation: hb-scan 5s linear infinite;
}
.hb-gauge { grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 12px; }
.hb-gauge svg { width: 84px; height: 84px; grid-row: 1; grid-column: 1; }
.hb-gauge__bg { fill: none; stroke: color-mix(in srgb, var(--hb-ink) 10%, transparent); stroke-width: 9; }
.hb-gauge__arc { fill: none; stroke: var(--hb-win); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 213.6; stroke-dashoffset: 213.6; transition: stroke-dashoffset 1.2s var(--hb-ease); }
.hb-gauge__mid { grid-row: 1; grid-column: 1; display: grid; justify-items: center; align-self: center; z-index: 1; }
.hb-gauge__mid b { font-size: 17px; }
.hb-gauge__mid small { font-size: 9px; color: var(--hb-dim); }
.hb-gauge__txt { display: grid; gap: 2px; min-width: 0; }
.hb-wl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.hb-wl span { background: color-mix(in srgb, var(--hb-ink) 5%, transparent); border-radius: 10px; padding: 6px 8px; display: grid; }
.hb-wl small { font-size: 11px; color: var(--hb-dim); }
.hb-wl b { font-size: 19px; }
.hb-meter { display: block; height: 10px; border-radius: 9px; overflow: hidden; margin: 6px 0 2px; background: color-mix(in srgb, var(--hb-ink) 8%, transparent); }
.hb-meter i { position: relative; display: block; height: 100%; width: 0; border-radius: 9px; background: linear-gradient(90deg, color-mix(in srgb, var(--hb-cy) 60%, #000), var(--hb-cy)); box-shadow: 0 0 12px var(--hb-cy); transition: width 1.4s var(--hb-ease); }
.hb-meter i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent) no-repeat; background-size: 50% 100%; animation: hb-run 1.8s linear infinite; }
.hb-meter--gold i { background: linear-gradient(90deg, color-mix(in srgb, var(--hb-gold) 60%, #000), var(--hb-gold)); box-shadow: 0 0 10px var(--hb-gold); }
.hb-streak { display: flex; align-items: center; gap: 6px; }
.hb-flame { width: 28px; height: 28px; transform-origin: 50% 100%; animation: hb-flick 1.2s ease-in-out infinite; fill: #ff7a3a; }

/* ── กราฟ ─────────────────────────────────────────────────── */
.hb-chart svg, .hb-tile > svg { display: block; width: 100%; height: auto; }
.hb-chart text, .hb-tile > svg text { fill: var(--hb-dim); font-size: 10px; font-variant-numeric: tabular-nums; }
.hb-grid { stroke: var(--hb-line); stroke-width: 1; }
.hb-bar { transform-box: fill-box; transform-origin: bottom; animation: hb-grow .9s var(--hb-ease) backwards; }
.hb-line { fill: none; stroke: var(--hb-cy); stroke-width: 2; stroke-linejoin: round; filter: drop-shadow(0 0 4px var(--hb-cy)); stroke-dasharray: 800; stroke-dashoffset: 800; animation: hb-draw 1.6s .3s var(--hb-ease) forwards; }
.hb-legend { margin-left: auto; display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; font-weight: 400; color: var(--hb-dim); }
.hb-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* ── รายการ ───────────────────────────────────────────────── */
.hb-list { display: grid; gap: 8px; }
.hb-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
  padding: 10px 12px; background: var(--hb-panel); border: 1px solid var(--hb-line); border-radius: 14px;
}
.hb-row.is-new { animation: hb-slide .6s var(--hb-ease); }
.hb-row__ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: color-mix(in srgb, var(--hb-ink) 7%, transparent); }
.hb-row__ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hb-row b { display: block; font-size: 14px; }
.hb-row small { display: block; font-size: 12px; color: var(--hb-dim); }
.hb-row__r { text-align: right; display: grid; gap: 3px; justify-items: end; }
.hb-row .hb-meter { margin: 4px 0 0; height: 6px; }
.hb-pill { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 99px; border: 1px solid currentColor; white-space: nowrap; }
.hb-ok { color: var(--hb-dim); }
.hb-wait { color: var(--hb-gold); }
.hb-bad { color: var(--hb-lose); }
.hb-good { color: var(--hb-win); }
.hb-empty { padding: 18px 12px; text-align: center; color: var(--hb-dim); font-size: 13px; border: 1px dashed var(--hb-line); border-radius: 14px; }

.hb-chips { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.hb-chip { padding: 5px 12px; border-radius: 99px; border: 1px solid var(--hb-line); background: transparent; color: var(--hb-dim); font: inherit; font-size: 13px; cursor: pointer; }
.hb-chip.is-on { background: var(--hb-ink); color: var(--hb-panel); border-color: var(--hb-ink); }
.hb-tx { list-style: none; margin: 0; padding: 0; display: grid; }
.hb-tx li.hb-row { margin-bottom: 8px; }

/* ── ลิงก์ลัด ─────────────────────────────────────────────── */
.hb-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; }
.hb-link {
  display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; text-align: left;
  border: 1px solid var(--hb-line); background: var(--hb-panel); color: var(--hb-ink); text-decoration: none; font: inherit; cursor: pointer;
}
.hb-link b { display: block; font-size: 14px; }
.hb-link small { display: block; font-size: 12px; color: var(--hb-dim); }
.hb-link__ic { width: 36px; height: 36px; border-radius: 11px; flex: none; position: relative; background: color-mix(in srgb, var(--hb-cy) 14%, transparent); }
.hb-ic-live::after { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: var(--hb-lose); animation: hb-ping-red 1.6s infinite; }
.hb-ic-gift { background: color-mix(in srgb, var(--hb-gold) 18%, transparent); }
.hb-ic-gift::after { content: ""; position: absolute; inset: 10px; border-radius: 4px; border: 2px solid var(--hb-gold); animation: hb-wiggle 2.4s ease-in-out infinite; }
.hb-ic-friends::after { content: ""; position: absolute; inset: 9px 12px 15px; border-radius: 50%; border: 2px solid var(--hb-cy); box-shadow: 8px 6px 0 -2px color-mix(in srgb, var(--hb-cy) 60%, transparent); }

/* ── ฟอร์ม ────────────────────────────────────────────────── */
.hb-form { gap: 10px; }
.hb-field { display: grid; gap: 4px; font-size: 12.5px; color: var(--hb-dim); }
.hb-field input, .hb-field select, .hb-amt input {
  height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--hb-fline); background: var(--hb-field);
  color: var(--hb-ink); font: inherit; font-size: 16px; min-width: 0;
}
.hb-seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: color-mix(in srgb, var(--hb-ink) 6%, transparent); margin-bottom: 10px; }
.hb-seg button { flex: 1; border: 0; background: transparent; color: var(--hb-dim); font: inherit; font-size: 14px; padding: 8px; border-radius: 9px; cursor: pointer; }
.hb-seg button.is-on { background: var(--hb-panel); color: var(--hb-ink); box-shadow: 0 0 0 1px var(--hb-line); }
.hb-seg button[hidden] { display: none; }

/* ── บัญชีถอน + กรอบ + ลาย ────────────────────────────────── */
.hb-bank {
  position: relative; overflow: hidden; border-radius: 18px; padding: 16px; display: grid; gap: 4px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--hb-gold) 30%, var(--hb-panel)), var(--hb-panel) 60%);
  border: 1px solid color-mix(in srgb, var(--hb-gold) 25%, var(--hb-line));
}
.hb-bank__chip { width: 38px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, color-mix(in srgb, var(--hb-gold) 70%, #fff), var(--hb-gold)); }
.hb-bank__logo { width: 44px; height: 44px; border-radius: 12px; background: #fff; padding: 4px; object-fit: contain; }
.hb-bank__top { display: flex; align-items: center; gap: 10px; }
.hb-dates { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; margin-bottom: 10px; }
.hb-dates[hidden] { display: none; }
.hb-dates input { height: 40px; }
.hb-chips--sub { margin-top: 4px; }
.hb-histsum { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.hb-histsum:empty { display: none; }
.hb-histsum span { font-size: 12.5px; padding: 6px 10px; border-radius: 10px; background: color-mix(in srgb, var(--hb-ink) 6%, transparent); color: var(--hb-dim); }
.hb-histsum b { color: var(--hb-ink); font-variant-numeric: tabular-nums; }
.hb-fr.is-lock img { filter: grayscale(1) brightness(.5); }
.hb-av__pet { position: absolute; z-index: 2; right: -12px; bottom: -10px; width: 34px; height: 34px; object-fit: contain; animation: hb-bob 2.4s ease-in-out infinite; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.hb-petline { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 3px 10px 3px 4px; border-radius: 99px; font-size: 12.5px; font-weight: 700;
  color: var(--hb-gold); background: color-mix(in srgb, var(--hb-gold) 12%, transparent); border: 1px solid color-mix(in srgb, var(--hb-gold) 35%, transparent); max-width: 100%; animation: hb-in .45s var(--hb-ease); }
.hb-petline[hidden] { display: none; }
.hb-petline img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.hb-petline span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-petline.is-guard { color: var(--hb-cy); background: color-mix(in srgb, var(--hb-cy) 10%, transparent); border-color: color-mix(in srgb, var(--hb-cy) 35%, transparent); }
.hb-pets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.hb-pet { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 12px 10px; border-radius: 16px; border: 1px solid var(--hb-line); background: var(--hb-panel); }
.hb-pet.is-on { box-shadow: 0 0 0 2px var(--hb-gold); background: linear-gradient(180deg, color-mix(in srgb, var(--hb-gold) 14%, transparent), var(--hb-panel)); }
.hb-pet img { width: 76px; height: 76px; object-fit: contain; animation: hb-bob 2.8s ease-in-out infinite; }
.hb-pet b { font-size: 14px; }
.hb-pet small { font-size: 11.5px; color: var(--hb-dim); line-height: 1.4; }
.hb-pet .hb-btn { min-height: 34px; padding: 0 12px; font-size: 13px; width: 100%; }
.hb-tiers { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.hb-tier { font-size: 11px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--hb-line); color: var(--hb-dim); font-variant-numeric: tabular-nums; }
.hb-tier.is-claimed { background: color-mix(in srgb, var(--hb-win) 18%, transparent); border-color: var(--hb-win); color: var(--hb-win); }
.hb-tier.is-now { border-color: var(--hb-gold); color: var(--hb-gold); animation: hb-ping-gold 1.8s infinite; }
.hb-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
.hb-week span { display: grid; justify-items: center; gap: 1px; padding: 6px 2px; border-radius: 10px; font-size: 10px; color: var(--hb-dim); border: 1px solid var(--hb-line); }
.hb-week span b { font-size: 12px; color: var(--hb-ink); font-variant-numeric: tabular-nums; }
.hb-week span small { font-size: 9px; white-space: nowrap; }
.hb-week span.is-claimed { border-color: var(--hb-win); background: color-mix(in srgb, var(--hb-win) 16%, transparent); }
.hb-week span.is-now { border-color: var(--hb-gold); background: color-mix(in srgb, var(--hb-gold) 16%, transparent); animation: hb-pop .6s var(--hb-ease); }
@keyframes hb-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.hb-fr__lock { position: absolute; inset: auto 0 4px; text-align: center; font-size: 9.5px; color: #fff; text-shadow: 0 1px 2px #000; }
.hb-bank__no { font-size: 22px; letter-spacing: .12em; margin-top: 8px; }
.hb-frames { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 12px; }
.hb-fr { position: relative; aspect-ratio: 1; max-width: 100%; border-radius: 14px; border: 1px solid var(--hb-line); background: color-mix(in srgb, var(--hb-ink) 5%, transparent); padding: 4px; cursor: pointer; }
.hb-fr img { width: 100%; height: 100%; object-fit: contain; }
.hb-fr.is-sel { box-shadow: 0 0 0 2px var(--hb-gold); }
.hb-fr.is-cur::after { content: "ใช้อยู่"; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); font-size: 9px; padding: 0 5px; border-radius: 6px; background: var(--hb-gold); color: #1c1503; }
.hb-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.hb-tpl {
  position: relative; display: grid; gap: 6px; padding: 8px; border-radius: 14px; text-align: left;
  border: 1px solid var(--hb-line); background: var(--hb-panel); color: var(--hb-ink); font: inherit; cursor: pointer;
}
.hb-tpl__media > img { width: 100%; aspect-ratio: 4 / 3; max-width: 100%; object-fit: cover; border-radius: 10px; background: color-mix(in srgb, var(--hb-ink) 6%, transparent); }
.hb-tpl__ph {
  display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; font-weight: 800; color: var(--hb-ink);
  background: linear-gradient(135deg, color-mix(in srgb, var(--hb-gold) 40%, transparent), color-mix(in srgb, var(--hb-cy) 30%, transparent));
}
.hb-tpl b { font-size: 13px; }
.hb-tpl small { font-size: 11.5px; color: var(--hb-dim); }
.hb-tpl.is-cur { box-shadow: 0 0 0 2px var(--hb-gold); }
.hb-tpl.is-lock .hb-tpl__media > img { filter: grayscale(1) brightness(.55); }
.hb-tpl__lock { position: absolute; top: 14px; right: 14px; font-size: 11px; padding: 2px 8px; border-radius: 99px; background: rgba(0, 0, 0, .65); color: #fff; }
.hb-tpl__vip { position: absolute; top: 14px; left: 14px; font-size: 10px; font-weight: 800; padding: 1px 7px; border-radius: 99px; background: var(--hb-gold); color: #1c1503; }

/* ── โปรโมชั่น ────────────────────────────────────────────── */
.hb-promos { display: grid; gap: 12px; }
.hb-promo { overflow: hidden; border-radius: 16px; border: 1px solid var(--hb-line); background: var(--hb-panel); animation: hb-in .5s var(--hb-ease) backwards; }
.hb-promo img { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.hb-promo__body { display: grid; gap: 6px; padding: 12px 14px 14px; }
.hb-promo__head { display: flex; align-items: center; gap: 8px; }
.hb-promo__head b { font-size: 15px; }
.hb-promo__ic { font-size: 20px; }
.hb-promo__reward { font-size: 13px; color: var(--hb-gold); font-weight: 700; }
.hb-promo ul { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--hb-dim); display: grid; gap: 2px; }
.hb-promo__foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--hb-dim); }

/* ── แถบเมนูล่าง ───────────────────────────────────────────── */
.hb-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: center;
  padding: 8px 6px calc(10px + var(--safe-b, env(safe-area-inset-bottom, 0px)));
  background: color-mix(in srgb, var(--hb-panel) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--hb-line);
}
.hb-nav button {
  position: relative; flex: 1; max-width: 108px; display: grid; justify-items: center; gap: 2px;
  background: none; border: 0; color: var(--hb-dim); font: inherit; font-size: 11px; padding: 4px 0; cursor: pointer;
}
.hb-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hb-nav button.is-on { color: var(--hb-gold); }
.hb-nav button.is-on::before { content: ""; position: absolute; top: -9px; width: 26px; height: 3px; border-radius: 3px; background: var(--hb-gold); box-shadow: 0 0 10px var(--hb-gold); }
.hb-nav button.is-on svg { animation: hb-pop .35s var(--hb-ease); }
.hb-badge { position: absolute; top: 0; right: calc(50% - 22px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px; background: var(--hb-lose); color: #fff; font-size: 10px; display: grid; place-items: center; }
.hb-badge[hidden] { display: none; }

/* ── แผ่นฝาก/ถอน ───────────────────────────────────────────── */
.hb-veil { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .25s; }
.hb-veil.is-on { opacity: 1; }
.hb-sheet {
  position: fixed; left: 50%; bottom: 0; z-index: 51; width: min(540px, 100%); max-height: 90vh; overflow-y: auto;
  background: var(--hb-panel); color: var(--hb-ink); border: 1px solid var(--hb-line); border-bottom: 0;
  border-radius: 24px 24px 0 0; padding: 10px 16px calc(18px + var(--safe-b, env(safe-area-inset-bottom, 0px)));
  transform: translate(-50%, 105%); transition: transform .35s cubic-bezier(.2, .9, .2, 1);
}
.hb-sheet.is-on { transform: translate(-50%, 0); }
.hb-sheet__grab { width: 40px; height: 4px; border-radius: 4px; background: var(--hb-line); margin: 0 auto 8px; }
.hb-sheet__head { display: flex; align-items: center; gap: 8px; }
.hb-sheet__head h3 { margin: 0; font-size: 18px; }
.hb-x { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--hb-line); background: transparent; color: var(--hb-ink); font-size: 20px; cursor: pointer; }
.hb-sheet__body { display: grid; gap: 10px; margin-top: 10px; }
.hb-steps { display: flex; align-items: flex-start; list-style: none; margin: 12px 0 4px; padding: 0; }
.hb-steps:empty { display: none; }
.hb-steps li { flex: 1; display: grid; justify-items: center; gap: 4px; font-size: 11px; color: var(--hb-dim); text-align: center; position: relative; }
.hb-steps li::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px; background: var(--hb-line); z-index: 0; }
.hb-steps li:first-child::before { display: none; }
.hb-steps li.is-on::before { background: var(--hb-win); }
.hb-steps i { position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--hb-line); background: var(--hb-panel); display: grid; place-items: center; font-style: normal; font-size: 12px; transition: .3s; }
.hb-steps li.is-on { color: var(--hb-ink); }
.hb-steps li.is-on i { background: var(--hb-win); border-color: var(--hb-win); color: #04130b; }
.hb-steps li.is-now i { background: var(--hb-panel); color: var(--hb-gold); border-color: var(--hb-gold); animation: hb-ping-gold 1.4s infinite; }

.hb-amt { display: flex; align-items: center; gap: 8px; }
.hb-amt input { flex: 1; height: 56px; font-size: 24px; font-variant-numeric: tabular-nums; }
.hb-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hb-quick button { height: 40px; border-radius: 10px; border: 1px solid var(--hb-line); background: color-mix(in srgb, var(--hb-ink) 5%, transparent); color: var(--hb-ink); font: inherit; font-variant-numeric: tabular-nums; cursor: pointer; }
.hb-rules { display: flex; flex-wrap: wrap; gap: 6px; }
.hb-rules span { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, var(--hb-ink) 6%, transparent); color: var(--hb-dim); }
.hb-rules b { color: var(--hb-ink); }
.hb-qr {
  position: relative; display: grid; justify-items: center; gap: 6px; padding: 14px; border-radius: 16px;
  background: #fff; color: #111; text-align: center;
}
.hb-qr img { width: 220px; max-width: 100%; height: auto; image-rendering: pixelated; }
.hb-qr__amt { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hb-qr small { font-size: 12px; color: #6a5200; }
.hb-qr__ring { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; }
.hb-qr__ring svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.hb-qr__ring circle { fill: none; stroke-width: 4; }
.hb-qr__ring .bg { stroke: #e7e7e7; }
.hb-qr__ring .fg { stroke: #c79400; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.hb-qr__ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #6a5200; font-variant-numeric: tabular-nums; }
.hb-acct { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--hb-line); }
.hb-acct b { font-size: 20px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.hb-drop {
  display: grid; justify-items: center; gap: 6px; padding: 22px 12px; border-radius: 16px; text-align: center;
  border: 2px dashed var(--hb-line); color: var(--hb-dim); cursor: pointer;
}
.hb-drop:hover, .hb-drop:focus-within { border-color: var(--hb-gold); }
.hb-drop svg { width: 38px; height: 38px; fill: none; stroke: var(--hb-gold); stroke-width: 2; stroke-linecap: round; animation: hb-up 1.6s ease-in-out infinite; }
.hb-drop b { color: var(--hb-ink); }
.hb-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.hb-note { font-size: 12.5px; line-height: 1.5; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--hb-gold) 12%, transparent); color: var(--hb-ink); }
.hb-note--bad { background: color-mix(in srgb, var(--hb-lose) 14%, transparent); }
.hb-skel { min-height: 64px; border-radius: 14px; background: linear-gradient(90deg, color-mix(in srgb, var(--hb-ink) 5%, transparent) 25%, color-mix(in srgb, var(--hb-ink) 11%, transparent) 50%, color-mix(in srgb, var(--hb-ink) 5%, transparent) 75%); background-size: 200% 100%; animation: hb-skel 1.3s linear infinite; list-style: none; }

/* ── ป๊อปอัปผลลัพธ์ ────────────────────────────────────────── */
.hb-pop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .55); }
.hb-pop[hidden] { display: none; }
.hb-pop__card {
  width: min(360px, 100%); display: grid; justify-items: center; gap: 8px; text-align: center;
  padding: 22px 18px 18px; border-radius: 22px; background: var(--hb-panel); border: 1px solid var(--hb-line);
  animation: hb-spring .55s var(--hb-ease);
}
.hb-pop__card h3 { margin: 4px 0 0; font-size: 19px; }
.hb-pop__card p { margin: 0 0 6px; font-size: 14px; line-height: 1.55; color: var(--hb-dim); white-space: pre-line; }
.hb-pop__ic { width: 74px; height: 74px; display: grid; place-items: center; }
.hb-pop__ic svg { width: 74px; height: 74px; fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.hb-pop__ic .ring { stroke-dasharray: 160; stroke-dashoffset: 160; animation: hb-draw .6s var(--hb-ease) forwards; }
.hb-pop__ic .mark { stroke-dasharray: 60; stroke-dashoffset: 60; animation: hb-draw .5s .45s var(--hb-ease) forwards; }
.hb-pop--ok .hb-pop__ic svg { stroke: var(--hb-win); }
.hb-pop--bad .hb-pop__ic svg { stroke: var(--hb-lose); }
.hb-pop--wait .hb-pop__ic svg { stroke: var(--hb-gold); }

.hb-fx { position: fixed; inset: 0; z-index: 70; pointer-events: none; width: 100%; height: 100%; }

.hb-toasts { position: fixed; left: 50%; top: 12px; z-index: 80; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100% - 28px)); pointer-events: none; }
.hb-toast { padding: 10px 14px; border-radius: 14px; font-size: 14px; background: var(--hb-panel, #14151b); color: var(--hb-ink, #f2f1ec); border: 1px solid var(--hb-line, #2a2c37); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); animation: hb-in .35s cubic-bezier(.2, .8, .2, 1); }
.hb-toast--ok { border-color: #35d48a; }
.hb-toast--bad { border-color: #ff5b6e; }
.hb-toast.is-out { opacity: 0; transform: translateY(-8px); transition: .4s; }

.hb-bye { justify-self: center; padding: 10px; color: var(--hb-dim); text-decoration: none; font-size: 14px; }

@media (min-width: 720px) {
  .hb-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hb-tile--wide { grid-column: span 2; }
}

/* ── แอนิเมชัน ─────────────────────────────────────────────── */
@keyframes hb-spin { to { transform: rotate(360deg); } }
@keyframes hb-sheen { from { background-position: 150% 0; } to { background-position: -100% 0; } }
@keyframes hb-ping { 0% { box-shadow: 0 0 0 0 rgba(53, 212, 138, .7); } 80%, 100% { box-shadow: 0 0 0 7px rgba(53, 212, 138, 0); } }
@keyframes hb-ping-red { 0% { box-shadow: 0 0 0 0 rgba(255, 91, 110, .7); } 80%, 100% { box-shadow: 0 0 0 8px rgba(255, 91, 110, 0); } }
@keyframes hb-ping-gold { 0% { box-shadow: 0 0 0 0 rgba(235, 190, 58, .6); } 100% { box-shadow: 0 0 0 8px rgba(235, 190, 58, 0); } }
@keyframes hb-flash { 0% { text-shadow: none; } 30% { text-shadow: 0 0 22px color-mix(in srgb, var(--hb-gold) 90%, transparent); transform: scale(1.04); } 100% { text-shadow: none; } }
@keyframes hb-down { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(2px); } }
@keyframes hb-up { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-2px); } }
@keyframes hb-eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }
@keyframes hb-scan { to { top: 100%; } }
@keyframes hb-run { from { background-position: -50% 0; } to { background-position: 150% 0; } }
@keyframes hb-flick { 0%, 100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.08, 1.12) rotate(2deg); } }
@keyframes hb-grow { from { transform: scaleY(0); } }
@keyframes hb-draw { to { stroke-dashoffset: 0; } }
@keyframes hb-slide { from { transform: translateY(-10px); opacity: .2; } }
@keyframes hb-in { from { transform: translateY(8px); opacity: 0; } }
@keyframes hb-pop { 50% { transform: scale(1.18); } }
@keyframes hb-wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-10deg); } 90% { transform: rotate(10deg); } 95% { transform: rotate(-6deg); } }
@keyframes hb-spring { 0% { transform: scale(.7); opacity: 0; } 60% { transform: scale(1.04); opacity: 1; } 100% { transform: scale(1); } }
@keyframes hb-skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ═════════ สัตว์เลี้ยง: ชนิดความสามารถ · วงแหวนโอกาสสำเร็จ · แผงผลงาน (000256) ═════════ */
.hb-pet, .hb-pholo, .hb-petline { --k: var(--hb-gold); }
[data-kind="guard"] { --k: var(--hb-cy); }
[data-kind="balance"] { --k: #b48cff; }
[data-kind="gift"] { --k: #ff8fb1; }
[data-kind="deposit"] { --k: #5ee7ff; }
/* ⭐ 000262 — แถบพลังชีวิตนับครั้งฝาก: ประกายเพชรวิ่งผ่าน */
.hb-energy.is-uses .hb-energy__bar i { background: linear-gradient(90deg, #22d3ee, #a78bfa, #5ee7ff); background-size: 200% 100%; animation: hb-gem 3s linear infinite; }
.hb-plan.is-uses .hb-plan__ico { animation: hb-gem-spin 3.2s ease-in-out infinite; }
.hb-pholo__bars i.is-dep.is-hit { background: linear-gradient(180deg, #5ee7ff, #a78bfa); }
@keyframes hb-gem { from { background-position: 0 0; } to { background-position: -200% 0; } }
@keyframes hb-gem-spin { 0%, 70%, 100% { transform: none; } 80% { transform: rotate(-14deg) scale(1.2); } 90% { transform: rotate(10deg) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .hb-energy.is-uses .hb-energy__bar i, .hb-plan.is-uses .hb-plan__ico { animation: none; } }
[data-kind="luck"] { --k: var(--hb-win); }
.hb-petline[data-kind] { color: var(--k); background: color-mix(in srgb, var(--k) 10%, transparent); border-color: color-mix(in srgb, var(--k) 35%, transparent); }
.hb-pet { position: relative; overflow: hidden; }
.hb-pet:not([data-kind="none"])::before { content: ""; position: absolute; inset: -40% -40% auto; height: 120%; background: radial-gradient(closest-side, color-mix(in srgb, var(--k) 22%, transparent), transparent); animation: hb-pglow 5s ease-in-out infinite; pointer-events: none; }
.hb-pet > * { position: relative; }
.hb-pet__img { position: relative; width: 84px; height: 84px; display: grid; place-items: center; }
.hb-pet__img img { width: 76px; height: 76px; }
.hb-pet__ico { position: absolute; left: -6px; top: -4px; font-size: 18px; animation: hb-pico 2.6s var(--hb-ease) infinite; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--k) 70%, transparent)); }
.hb-pet .hb-pring { position: absolute; right: -10px; bottom: -6px; }
.hb-pring { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; }
.hb-pring svg { grid-area: 1 / 1; width: 100%; height: 100%; transform: rotate(-90deg); }
.hb-pring circle { fill: none; stroke-width: 4.5; }
.hb-pring__bg { stroke: color-mix(in srgb, var(--k) 18%, var(--hb-panel)); fill: var(--hb-panel) !important; }
.hb-pring__fg { stroke: var(--k); stroke-linecap: round; stroke-dasharray: 0 100; animation: hb-pfill 1.1s var(--hb-ease) .15s forwards; filter: drop-shadow(0 0 3px var(--k)); }
/* ⚠️ position: relative — svg ที่หมุน (transform) ถูกวาดทับข้อความที่ไม่ได้ position */
.hb-pring b { grid-area: 1 / 1; position: relative; font-size: 11.5px; font-weight: 800; color: var(--k); line-height: 1; }
.hb-pring b small { font-size: 8px; }
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
@keyframes hb-pfill { to { stroke-dasharray: var(--p) 100; } }
@keyframes hb-pico { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-3px) rotate(-10deg); } 60% { transform: translateY(0) rotate(8deg); } }
@keyframes hb-pglow { 0%, 100% { opacity: .55; transform: translateY(0); } 50% { opacity: 1; transform: translateY(8%); } }

.hb-pholo { grid-column: 1 / -1; position: relative; overflow: hidden; display: grid; gap: 12px; padding: 14px; border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--k) 40%, transparent);
  background: linear-gradient(160deg, color-mix(in srgb, var(--k) 14%, var(--hb-panel)), var(--hb-panel) 60%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--k) 12%, transparent) inset, 0 10px 30px -18px var(--k); }
.hb-pholo::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px, color-mix(in srgb, var(--k) 6%, transparent) 3px 4px);
  mask: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); animation: hb-pscan 6s linear infinite; }
.hb-pholo__head { display: flex; align-items: center; gap: 10px; }
.hb-pholo__head img { width: 52px; height: 52px; object-fit: contain; animation: hb-bob 2.6s ease-in-out infinite; }
.hb-pholo__head div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.hb-pholo__head small { color: var(--hb-dim); font-size: 12px; line-height: 1.4; }
.hb-pholo__head .hb-pring { width: 52px; height: 52px; }
.hb-pholo__head .hb-pring b { font-size: 14px; }
.hb-pholo__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hb-pholo__stats span { display: grid; gap: 2px; padding: 8px; border-radius: 12px; background: color-mix(in srgb, var(--k) 8%, transparent); }
.hb-pholo__stats em { font-style: normal; font-size: 10.5px; color: var(--hb-dim); }
.hb-pholo__stats b { font-size: 16px; color: var(--k); font-variant-numeric: tabular-nums; }
.hb-pholo__stats small { font-size: 10.5px; color: var(--hb-dim); font-weight: 600; }
.hb-pholo__bars { display: flex; align-items: flex-end; gap: 4px; height: 58px; padding-top: 4px; border-bottom: 1px dashed color-mix(in srgb, var(--k) 30%, transparent); }
.hb-pholo__bars i { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; transform-origin: bottom; transform: scaleY(0); animation: hb-pbar .7s var(--hb-ease) var(--d) forwards; }
.hb-pholo__bars i.is-hit { background: linear-gradient(180deg, var(--k), color-mix(in srgb, var(--k) 35%, transparent)); box-shadow: 0 0 10px -2px var(--k); }
.hb-pholo__bars i.is-miss { background: color-mix(in srgb, var(--hb-dim) 25%, transparent); }
@keyframes hb-pbar { to { transform: scaleY(1); } }
@keyframes hb-pscan { from { background-position: 0 0; } to { background-position: 0 60px; } }
@media (max-width: 380px) { .hb-pholo__stats { grid-template-columns: 1fr 1fr; } .hb-pholo__stats span:last-child { grid-column: 1 / -1; } }

/* ═════════ 000261 · แผนราคาหลายแบบ · พลังชีวิต · อายุขัย ═════════ */
.hb-btn--plan { background: linear-gradient(135deg, color-mix(in srgb, var(--hb-gold) 22%, transparent), color-mix(in srgb, var(--hb-cy) 18%, transparent)); border-color: color-mix(in srgb, var(--hb-gold) 45%, transparent); }
.hb-lifebox { display: grid; gap: 4px; width: 100%; }
.hb-life.is-days { color: var(--hb-cy); background: color-mix(in srgb, var(--hb-cy) 10%, transparent); border-color: color-mix(in srgb, var(--hb-cy) 35%, transparent); }
.hb-life b, .hb-energy__t b { font-variant-numeric: tabular-nums; }
.hb-energy { display: grid; gap: 3px; font-size: 11px; color: var(--hb-dim); }
.hb-energy__bar { position: relative; height: 7px; border-radius: 99px; overflow: hidden; background: color-mix(in srgb, var(--hb-gold) 14%, transparent); }
.hb-energy__bar i { position: absolute; inset: 0 auto 0 0; width: var(--w, 100%); border-radius: inherit;
  background: linear-gradient(90deg, var(--hb-gold), color-mix(in srgb, var(--hb-gold) 55%, #ff8f3f)); transition: width .9s linear; }
.hb-energy.is-run .hb-energy__bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  background-size: 40% 100%; background-repeat: no-repeat; animation: hb-energy-flow 1.6s linear infinite; }
.hb-energy.is-run .hb-energy__t { color: var(--hb-gold); }
.hb-energy__t b { color: var(--hb-ink); }
@keyframes hb-energy-flow { from { background-position: -40% 0; } to { background-position: 140% 0; } }

.hb-plansheet { position: fixed; inset: 0; z-index: 70; display: grid; align-items: end; justify-items: center; padding: 12px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(3px); animation: hb-pfade .2s ease-out; }
.hb-plansheet__card { --k: var(--hb-gold); position: relative; width: min(440px, 100%); max-height: calc(100vh - 24px); overflow: auto; display: grid; gap: 12px; padding: 16px;
  border-radius: 22px 22px 18px 18px; border: 1px solid color-mix(in srgb, var(--k) 40%, var(--hb-line));
  background: linear-gradient(165deg, color-mix(in srgb, var(--k) 14%, var(--hb-panel)), var(--hb-panel) 55%); box-shadow: 0 -20px 50px -20px color-mix(in srgb, var(--k) 50%, transparent);
  animation: hb-pup .35s cubic-bezier(.34, 1.56, .64, 1); }
.hb-plansheet__x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--hb-line); background: var(--hb-panel); color: var(--hb-ink); }
.hb-plansheet__head { display: flex; align-items: center; gap: 12px; padding-right: 34px; }
.hb-plansheet__head img { width: 64px; height: 64px; object-fit: contain; animation: hb-bob 2.6s ease-in-out infinite; }
.hb-plansheet__head div { display: grid; gap: 2px; min-width: 0; }
.hb-plansheet__head small { font-size: 12px; color: var(--hb-dim); line-height: 1.4; }
.hb-plans { display: grid; gap: 8px; }
.hb-plan { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 14px; text-align: left; cursor: pointer; color: var(--hb-ink);
  border: 1px solid var(--hb-line); background: var(--hb-field); opacity: 0; transform: translateY(6px); animation: hb-pin .35s ease-out var(--d, 0ms) forwards; }
.hb-plan.is-hours { --pk: var(--hb-gold); }
.hb-plan.is-days { --pk: var(--hb-cy); }
.hb-plan.is-on { border-color: var(--pk); box-shadow: 0 0 0 2px color-mix(in srgb, var(--pk) 35%, transparent), 0 8px 22px -12px var(--pk);
  background: color-mix(in srgb, var(--pk) 10%, var(--hb-field)); }
.hb-plan__ico { font-size: 20px; flex: none; }
.hb-plan.is-on .hb-plan__ico { animation: hb-pico 2.2s ease-in-out infinite; }
.hb-plan__t { display: grid; gap: 1px; flex: 1; min-width: 0; }
.hb-plan__t small { font-size: 11px; color: var(--hb-dim); }
.hb-plan__c { display: grid; justify-items: end; font-size: 17px; font-weight: 800; color: var(--pk); font-variant-numeric: tabular-nums; }
.hb-plan__c small { font-size: 10px; color: var(--hb-dim); font-weight: 600; }
.hb-plansheet__note { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--hb-dim); }
@keyframes hb-pfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hb-pup { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes hb-pin { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .hb *, .hb *::before, .hb *::after, .hb-toast, .hb-pop__card { animation: none !important; transition: none !important; }
  .hb-line, .hb-pop__ic .ring, .hb-pop__ic .mark { stroke-dashoffset: 0; }
  .hb-pring__fg { stroke-dasharray: var(--p) 100; }
  .hb-pholo__bars i { transform: none; }
  .hb-plansheet, .hb-plansheet__card, .hb-plan, .hb-plansheet__head img { animation: none !important; opacity: 1; transform: none; }
}

/* ═════ 000258 ราคารายชิ้น + อายุ — ⏳ เหลือเวลา · ⌛ หมดอายุ (แลกใหม่) ═════ */
.hb-fr__lock i { font-style: normal; margin-left: 2px; opacity: .85; }
.hb-fr__lock.is-exp, .hb-tpl__lock.is-exp { color: #ffd7a0; }
.hb-tpl__lock.is-exp { background: color-mix(in srgb, var(--hb-lose) 70%, #000); }
.hb-fr__left { position: absolute; inset: auto 2px 3px; text-align: center; font-size: 9px; color: var(--hb-gold); text-shadow: 0 1px 2px #000; white-space: nowrap; overflow: hidden; }
.hb-life { display: inline-block; justify-self: center; font-size: 11px; padding: 2px 9px; border-radius: 99px; color: var(--hb-gold);
  background: color-mix(in srgb, var(--hb-gold) 14%, transparent); border: 1px solid color-mix(in srgb, var(--hb-gold) 35%, transparent); }
.hb-life.is-free { color: var(--hb-win); background: color-mix(in srgb, var(--hb-win) 12%, transparent); border-color: color-mix(in srgb, var(--hb-win) 35%, transparent); }
.hb-life.is-exp { color: var(--hb-lose); background: color-mix(in srgb, var(--hb-lose) 12%, transparent); border-color: color-mix(in srgb, var(--hb-lose) 35%, transparent); }
.hb-btn--again { border-color: color-mix(in srgb, var(--hb-lose) 55%, transparent); }

/* ══════════════════════════════════════════════════════════════
   ⭐ แท็บโปรไฟล์ 2026-10-07 — แถบลอยข้อมูลผู้เล่น · 4 เมนูลายการ์ด · เวทีสัตว์เลี้ยง · ล็อกแบบเห็นสีจริง
   ══════════════════════════════════════════════════════════════ */

/* ── แถบลอย: แท็บอื่น = เครดิต + ฝาก/ถอน · แท็บโปรไฟล์ = ผู้เล่น | เครดิตคงเหลือ ── */
.hb-mini__me { display: none; align-items: center; gap: 10px; min-width: 0; margin-right: auto; }
.hb-mini__bal { display: flex; flex-direction: column; margin-right: auto; min-width: 0; }
.hb-mini__bal .hb-num { margin-right: 0; }
.hb-mini__lbl { display: none; font-size: 10.5px; color: var(--hb-dim); line-height: 1.1; }
.hb-mini.is-me .hb-mini__me { display: flex; }
.hb-mini.is-me .hb-mini__bal { margin-right: 0; align-items: flex-end; text-align: right; }
.hb-mini.is-me .hb-mini__lbl { display: block; }
.hb-mini.is-me button { display: none; }
.hb-mini__who { display: grid; min-width: 0; line-height: 1.2; }
/* ⭐ แถบลอยโหมดโปรไฟล์ใหญ่ขึ้น (เจ้าของสั่ง 2026-10-07) */
.hb-mini.is-me { padding: 10px 16px 10px 12px; border-radius: 20px; gap: 12px; }
.hb-mini.is-me .hb-num { font-size: 24px; }
.hb-mini.is-me .hb-mini__lbl { font-size: 12px; }
.hb-mini__who b { font-size: 16.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-mini__who small { font-size: 13px; color: var(--hb-dim); }
/* 🔴 ชั้นเหมือนการ์ดหลัก: กรอบล่าง (z0) · รูปบน (z1) · สัตว์เลี้ยงบนสุด (z2)
      เดิมกรอบอยู่บนรูป — รูปกรอบส่วนใหญ่ทึบตรงกลาง จึงบังรูปโปรไฟล์จนมิด (เจอจริง 2026-10-07) */
.hb-mav { position: relative; width: 54px; height: 54px; flex: none; display: grid; place-items: center; margin: 2px 6px 2px 0; }
.hb-mav__letter, .hb-mav__pic { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.hb-mav__letter { display: grid; place-items: center; background: color-mix(in srgb, var(--hb-ink) 12%, var(--hb-panel)); color: var(--hb-gold); font-weight: 800; font-size: 20px; }
.hb-mav.has-frame .hb-mav__letter, .hb-mav.has-frame .hb-mav__pic { inset: 11%; width: 78%; height: 78%; }
.hb-mav__frame { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; pointer-events: none; }
.hb-mav__pet { position: absolute; z-index: 2; right: -10px; bottom: -8px; width: 28px; height: 28px; object-fit: contain;
  animation: hb-bob 2.4s ease-in-out infinite; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .55)); }
.hb-mav:not(.has-frame) { box-shadow: 0 0 0 2px var(--hb-gold); border-radius: 50%; }

/* ── 4 เมนู ── */
.hb-seg--4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 4px; position: sticky; top: 90px; z-index: 5; backdrop-filter: blur(8px); background: color-mix(in srgb, var(--hb-panel) 88%, transparent); }
.hb-seg--4 button { display: grid; justify-items: center; gap: 2px; padding: 8px 2px; font-size: 12.5px; line-height: 1.2; white-space: nowrap; transition: background .2s, color .2s; }
.hb-seg__ic { font-style: normal; font-size: 18px; line-height: 1; transition: transform .25s var(--hb-ease); }
.hb-seg--4 button.is-on { color: var(--hb-gold); box-shadow: 0 0 0 1px color-mix(in srgb, var(--hb-gold) 55%, transparent), 0 6px 18px -10px var(--hb-gold); }
.hb-seg--4 button.is-on .hb-seg__ic { transform: translateY(-1px) scale(1.15); animation: hb-pop .45s var(--hb-ease); }
.hb-h2 em [data-hb-tplnote] { margin: 0; }
.hb-pane.is-in { animation: hb-in .38s var(--hb-ease); }
.hb-pane__tip { margin-bottom: 10px; }

/* ── ล็อก: สีจริง + ไอคอนล็อกใหญ่จาง ๆ กลางภาพ (เดิมขาวดำมืด เลือกก่อนแลกไม่ได้) ── */
.hb-tpl.is-lock img, .hb-fr.is-lock img { filter: none; }
.hb-tpl { position: relative; }
.hb-lockic { position: absolute; z-index: 2; display: grid; place-items: center; pointer-events: none; }
.hb-tpl .hb-lockic { left: 10px; right: 10px; top: 10px; aspect-ratio: 4 / 3; }
.hb-fr .hb-lockic { inset: 0; }
.hb-lockic svg { width: 44%; max-width: 64px; aspect-ratio: 1; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  opacity: .58; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .55)); animation: hb-lockfloat 3.2s ease-in-out infinite; }
.hb-lockic svg rect { fill: rgba(0, 0, 0, .22); }
.hb-lockic svg circle { fill: #fff; stroke: none; }
.hb-fr .hb-lockic svg { width: 52%; }
.hb-tpl.is-lock:hover .hb-lockic svg, .hb-fr.is-lock:hover .hb-lockic svg { opacity: .85; }
@keyframes hb-lockfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* ── เวทีสัตว์เลี้ยงที่พาอยู่ ── */
.hb-stage { --k: var(--hb-gold); position: relative; overflow: hidden; display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 16px; margin-bottom: 12px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--k) 45%, var(--hb-line));
  background: radial-gradient(120% 90% at 18% 50%, color-mix(in srgb, var(--k) 20%, transparent), transparent 62%),
              linear-gradient(160deg, color-mix(in srgb, var(--k) 10%, var(--hb-panel)), var(--hb-panel));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--k) 12%, transparent) inset, 0 18px 40px -26px var(--k); }
.hb-stage[data-kind="guard"] { --k: var(--hb-cy); }
.hb-stage[data-kind="balance"] { --k: #b48cff; }
.hb-stage[data-kind="gift"] { --k: #ff8fb1; }
.hb-stage[data-kind="deposit"] { --k: #5ee7ff; }
.hb-stage[data-kind="luck"] { --k: var(--hb-win); }
.hb-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent 35%, color-mix(in srgb, #fff 9%, transparent) 50%, transparent 65%); background-size: 250% 100%; animation: hb-sheen 5s linear infinite; }
.hb-stage__aura { position: absolute; left: 16px; top: 50%; width: 128px; height: 128px; margin-top: -64px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent, color-mix(in srgb, var(--k) 55%, transparent), transparent 40%, color-mix(in srgb, var(--k) 35%, transparent), transparent 75%);
  filter: blur(6px); opacity: .8; animation: hb-spin 7s linear infinite; }
.hb-stage__pet { position: relative; width: 128px; height: 128px; display: grid; place-items: center; }
.hb-stage__pet img { position: relative; z-index: 1; width: 104px; height: 104px; object-fit: contain; animation: hb-bob 2.8s ease-in-out infinite; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .45)); }
.hb-stage__shadow { position: absolute; bottom: 10px; left: 50%; width: 70px; height: 12px; margin-left: -35px; border-radius: 50%; background: rgba(0, 0, 0, .4); filter: blur(4px); animation: hb-shadow 2.8s ease-in-out infinite; }
.hb-stage__pet .hb-pring { position: absolute; right: -4px; bottom: 0; z-index: 2; }
.hb-stage__info { position: relative; z-index: 1; display: grid; gap: 6px; min-width: 0; justify-items: start; }
.hb-stage__tag { font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--k); }
.hb-stage__info > b { font-size: 19px; line-height: 1.2; }
.hb-stage__info small { font-size: 12px; color: var(--hb-dim); line-height: 1.45; }
.hb-stage__skill { margin: 0; display: flex; gap: 6px; align-items: flex-start; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--k); }
.hb-stage__skill.is-none { color: var(--hb-dim); font-weight: 400; }
.hb-stage .hb-lifebox { width: 100%; justify-self: stretch; }
.hb-stage .hb-life { justify-self: start; }
.hb-stage__off { min-height: 32px; padding: 0 12px; font-size: 12.5px; }
/* ⭐ 000263 สัตว์คู่หู — ช่องที่ 2: ต่อใต้ช่องที่ 1 · ล็อค = กุญแจกระพริบ + เส้นประวิ่ง */
.hb-stage--2 { margin-top: 10px; grid-template-columns: 104px minmax(0, 1fr); }
.hb-stage--2 .hb-stage__pet, .hb-stage--2 .hb-stage__slot { width: 104px; height: 104px; }
.hb-stage--2 .hb-stage__pet img { width: 84px; height: 84px; }
.hb-stage--2 .hb-stage__aura { width: 104px; height: 104px; margin-top: -52px; }
.hb-stage--2.is-locked { border-style: dashed; background-image: linear-gradient(110deg, transparent 30%, color-mix(in srgb, var(--hb-gold) 10%, transparent) 50%, transparent 70%); background-size: 250% 100%; animation: hb-slot2-sheen 4.5s linear infinite; }
.hb-slot2lock { opacity: .9; }
.hb-slot2lock svg { width: 46px; height: 46px; fill: none; stroke: var(--hb-gold); stroke-width: 1.8; stroke-linecap: round; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--hb-gold) 55%, transparent)); animation: hb-slot2-lock 2.6s ease-in-out infinite; }
.hb-slot2lock__arc { transform-origin: 16px 11px; animation: hb-slot2-arc 2.6s ease-in-out infinite; }
.hb-slot2__go { min-height: 36px; }
.hb-slot2__badge { white-space: nowrap; font-size: 24px; animation: hb-bob 2.6s ease-in-out infinite; }
.hb-pet.is-on2 { outline: 2px dashed var(--hb-gold); outline-offset: -2px; }
.hb-pet__slot2 { display: inline-block; padding: 6px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; color: var(--hb-gold); background: color-mix(in srgb, var(--hb-gold) 14%, transparent); }
.hb-plan--pet .hb-plan__ico img { width: 40px; height: 40px; object-fit: contain; }
@keyframes hb-slot2-sheen { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes hb-slot2-lock { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes hb-slot2-arc { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-2px) rotate(-8deg); } }
@media (prefers-reduced-motion: reduce) { .hb-stage--2.is-locked, .hb-slot2lock svg, .hb-slot2lock__arc, .hb-slot2__badge { animation: none; } }
.hb-stage__slot { position: relative; z-index: 1; width: 128px; height: 128px; display: grid; place-items: center; font-size: 46px; opacity: .55;
  border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--k) 45%, transparent); animation: hb-bob 3.4s ease-in-out infinite; }
.hb-stage.is-new .hb-stage__pet img, .hb-stage.is-new .hb-stage__slot { animation: hb-spring .7s var(--hb-ease), hb-bob 2.8s ease-in-out .7s infinite; }
.hb-stage.is-new .hb-stage__info { animation: hb-in .5s var(--hb-ease); }
@keyframes hb-shadow { 0%, 100% { transform: scaleX(1); opacity: .45; } 50% { transform: scaleX(.8); opacity: .3; } }
@media (max-width: 360px) {
  .hb-stage { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hb-stage__info { justify-items: center; }
  .hb-stage__aura { left: 50%; top: 16px; margin: 0 0 0 -64px; }
}
@media (prefers-reduced-motion: reduce) {
  .hb-stage::after, .hb-stage__aura, .hb-stage__pet img, .hb-stage__shadow, .hb-stage__slot, .hb-lockic svg,
  .hb-stage.is-new .hb-stage__pet img, .hb-stage.is-new .hb-stage__info, .hb-pane.is-in, .hb-seg--4 button.is-on .hb-seg__ic, .hb-mav__pet { animation: none; }
}
.hb-pholo.is-bare { grid-column: 1 / -1; }
.hb-pholo__cap { font-size: 12.5px; font-weight: 700; color: var(--k); margin-bottom: 8px; }

/* ⭐ 000264 — เวลาที่เหลือของลาย/บิล/กรอบที่ซื้อตามแผน (นับถอยหลังสดเมื่อใช้อยู่) */
.hb-ilifes { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 2px; }
.hb-ilife { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; padding: 2px 8px; border-radius: 99px; color: var(--hb-gold);
  background: color-mix(in srgb, var(--hb-gold) 13%, transparent); border: 1px solid color-mix(in srgb, var(--hb-gold) 35%, transparent); font-variant-numeric: tabular-nums; }
.hb-ilife.is-run { color: var(--hb-win); background: color-mix(in srgb, var(--hb-win) 12%, transparent); border-color: color-mix(in srgb, var(--hb-win) 40%, transparent); animation: hb-ping 1.8s infinite; }
.hb-ilife.is-days { color: var(--hb-cy); background: color-mix(in srgb, var(--hb-cy) 10%, transparent); border-color: color-mix(in srgb, var(--hb-cy) 35%, transparent); }
.hb-framelife { text-align: center; margin-top: 8px; }
.hb-framelife .hb-ilifes { display: inline-flex; vertical-align: middle; }
@media (prefers-reduced-motion: reduce) { .hb-ilife.is-run { animation: none; } }
/* ⭐ สถานะของที่ซื้อแล้ว (2026-10-08): จุดเต้นตามวินาที · ใกล้หมด (< 10 นาที) แดงกระพริบ · ♾️ ตลอดชีพ ประกายรุ้งวิ่ง · 🎁 ฟรี */
.hb-ilife[data-hb-itick], .hb-life[data-hb-tick] { position: relative; padding-left: 16px; }
.hb-ilife[data-hb-itick]::before, .hb-life[data-hb-tick]::before { content: ""; position: absolute; left: 6px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 6px currentColor; animation: hb-tickdot 1s steps(1, end) infinite; }
.hb-ilife.is-low, .hb-life.is-low { color: var(--hb-lose); background: color-mix(in srgb, var(--hb-lose) 14%, transparent); border-color: color-mix(in srgb, var(--hb-lose) 45%, transparent); animation: hb-lowpulse 1.2s ease-in-out infinite; }
.hb-ilife.is-inf, .hb-life.is-inf, .hb-fr__left.is-inf { color: #e9d5ff; border-color: color-mix(in srgb, #c084fc 45%, transparent);
  background: linear-gradient(100deg, color-mix(in srgb, #c084fc 16%, transparent), color-mix(in srgb, #22d3ee 16%, transparent), color-mix(in srgb, #fde047 16%, transparent), color-mix(in srgb, #c084fc 16%, transparent)) 0 0 / 300% 100%;
  animation: hb-infsheen 4s linear infinite; }
.hb-ilife.is-inf i, .hb-life.is-inf i { display: inline-block; font-style: normal; animation: hb-infspin 3s ease-in-out infinite; }
.hb-ilife.is-free { color: var(--hb-win); background: color-mix(in srgb, var(--hb-win) 12%, transparent); border-color: color-mix(in srgb, var(--hb-win) 35%, transparent); }
@keyframes hb-tickdot { 0% { opacity: 1; transform: scale(1); } 50% { opacity: .25; transform: scale(.6); } }
@keyframes hb-lowpulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--hb-lose) 45%, transparent); } 50% { box-shadow: 0 0 0 5px transparent; } }
@keyframes hb-infsheen { from { background-position: 0 0; } to { background-position: -300% 0; } }
@keyframes hb-infspin { 0%, 60%, 100% { transform: none; } 75% { transform: rotate(-12deg) scale(1.2); } 88% { transform: rotate(8deg) scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .hb-ilife[data-hb-itick]::before, .hb-life[data-hb-tick]::before, .hb-ilife.is-low, .hb-life.is-low, .hb-ilife.is-inf, .hb-life.is-inf, .hb-fr__left.is-inf, .hb-ilife.is-inf i, .hb-life.is-inf i { animation: none; } }

/* ── ⭐ ตัวอย่างการ์ดจริงด้วยข้อมูลผู้เล่น (2026-10-09 · แบบหน้า linebot templates) ──
   HTML จาก FlexHtml (สไตล์ inline เกือบทั้งหมด) · JS ย่อด้วย transform ให้พอดีช่อง แล้วตั้งความสูงให้กล่องนอก */
.hb-tpl__media { position: relative; display: block; min-width: 0; }
.hb-tpl__live {
  display: block; overflow: hidden; border-radius: 12px; padding: 0; color: #111;
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--hb-gold) 18%, transparent), transparent 70%), color-mix(in srgb, var(--hb-ink) 5%, transparent);
  animation: hb-tplin .45s cubic-bezier(.2, .8, .2, 1) both;
}
.hb-tpl__scale { display: block; width: max-content; transform-origin: 0 0; }
.hb-tpl__live .fx-bubble { overflow: hidden; border-radius: 14px; background: #fff; max-width: none; color: #111; box-shadow: 0 8px 22px -12px rgba(0, 0, 0, .7); }
.hb-tpl__live .fx-bubble img { display: block; }
.hb-tpl__live .fx-carousel { display: flex; gap: 6px; }
.hb-tpl .hb-tpl__media .hb-lockic { left: 0; right: 0; top: 0; }
.hb-tpl .hb-tpl__media.is-live .hb-lockic { bottom: 0; aspect-ratio: auto; }
.hb-tpl__media.is-live .hb-lockic svg { max-width: 72px; }
.hb-tpl:hover .hb-tpl__live { box-shadow: 0 0 0 1px color-mix(in srgb, var(--hb-gold) 55%, transparent); }
/* มีตัวอย่างจริง = 2 ใบต่อแถวเสมอ (เจ้าของ 2026-10-09: "การ์ดใหญ่เกินไป อยากได้ 2 แบบต่อแถว") */
.hb-tpls.has-live { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hb-tpls.has-live .hb-tpl { padding: 6px; gap: 4px; }
.hb-tpls.has-live .hb-tpl__lock { top: 10px; right: 10px; font-size: 9.5px; padding: 1px 6px; }
.hb-tpls.has-live .hb-tpl__vip { top: 10px; left: 10px; }
.hb-tpls.has-live .hb-tpl b { font-size: 12px; }
.hb-tpls.has-live .hb-tpl small { font-size: 10.5px; }
.hb-tpl__media.is-live .hb-lockic svg { width: 34%; }
@keyframes hb-tplin { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hb-tpl__live { animation: none; } }

/* ══════════════════════════════════════════════════════════════
   ⭐ 2026-10-15 — การ์ดผู้เล่นกะทัดรัด · โปรพร้อมความคืบหน้า · อันดับ Top 5 · กิจกรรมแต้ม (วงล้อ/เปิดป้าย)
   เจ้าของ: "การ์ดข้อมูลผู้เล่นใหญ่เกินไป ข้อความเครดิตคงเหลือใหญ่เกิน — สวย กระทัดรัด ล้ำสมัย"
   ══════════════════════════════════════════════════════════════ */

/* ── การ์ดผู้เล่น: แถวเดียว (รูป · ชื่อ · เลเวล | เครดิต) + ปุ่มเตี้ยลง ── */
.hb-hero {
  grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 12px; padding: 14px;
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--hb-gold) 16%, transparent), transparent 55%),
    radial-gradient(90% 120% at 0% 100%, color-mix(in srgb, var(--hb-cy) 10%, transparent), transparent 60%),
    var(--hb-panel);
}
.hb-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(color-mix(in srgb, var(--hb-ink) 6%, transparent) 1px, transparent 1px),
                    linear-gradient(90deg, color-mix(in srgb, var(--hb-ink) 6%, transparent) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hb-hero > * { position: relative; }
.hb-hero .hb-who { gap: 11px; }
.hb-hero .hb-av { width: 52px; height: 52px; }
.hb-hero .hb-who__txt strong { font-size: 15.5px; }
.hb-hero .hb-who__txt small { font-size: 11.5px; }
.hb-hero .hb-lv { margin-top: 2px; font-size: 11px; }
.hb-hero .hb-lv__bar { min-width: 48px; height: 5px; }
.hb-hero .hb-bal { text-align: right; display: grid; justify-items: end; gap: 0; }
.hb-hero .hb-bal small { font-size: 10.5px; letter-spacing: .04em; }
.hb-hero .hb-bal__amt {
  font-size: clamp(20px, 6.2vw, 26px); line-height: 1.15; letter-spacing: -.01em;
  background: linear-gradient(180deg, color-mix(in srgb, var(--hb-gold) 55%, #fff), var(--hb-gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hb-hero .hb-bal__delta { position: absolute; right: 0; top: 100%; min-height: 0; font-size: 11.5px; white-space: nowrap; }
.hb-hero .hb-acts { grid-column: 1 / -1; gap: 8px; }
.hb-hero .hb-act { height: 42px; border-radius: 13px; font-size: 14.5px; gap: 6px; }
.hb-hero .hb-act svg { width: 18px; height: 18px; }
.hb-hero .hb-petline { font-size: 11px; }
@media (max-width: 340px) {
  .hb-hero { grid-template-columns: minmax(0, 1fr); }
  .hb-hero .hb-bal { text-align: left; justify-items: start; }
}

/* ── สรุปบนหัวโปร ── */
.hb-psum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 4px; }
.hb-psum[hidden] { display: none; }
.hb-psum__c {
  position: relative; overflow: hidden; display: grid; gap: 0; padding: 10px 12px; border-radius: 14px;
  border: 1px solid var(--hb-line); background: var(--hb-panel); animation: hb-in .4s var(--hb-ease) both;
}
.hb-psum__c b { font-size: 22px; line-height: 1.1; }
.hb-psum__c small { font-size: 11px; color: var(--hb-dim); }
.hb-psum__c.is-ok { border-color: color-mix(in srgb, var(--hb-win) 45%, transparent); }
.hb-psum__c.is-ok b { color: var(--hb-win); }
.hb-psum__c.is-near b { color: var(--hb-gold); }
.hb-psum__c::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, color-mix(in srgb, var(--hb-ink) 8%, transparent) 50%, transparent 60%);
  background-size: 250% 100%; animation: hb-sheen 6s linear infinite;
}

/* ── การ์ดโปร ── */
.hb-promos { display: grid; gap: 14px; }
.hb-pc {
  position: relative; overflow: hidden; display: grid; gap: 10px; padding: 14px; border-radius: var(--hb-r);
  border: 1px solid var(--hb-line); background: var(--hb-panel); animation: hb-in .45s var(--hb-ease) both;
}
.hb-pc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--hb-line); }
.hb-pc.is-ok { border-color: color-mix(in srgb, var(--hb-win) 55%, transparent); box-shadow: 0 10px 34px -18px var(--hb-win); }
.hb-pc.is-ok::before { background: var(--hb-win); }
.hb-pc.is-near { border-color: color-mix(in srgb, var(--hb-gold) 50%, transparent); }
.hb-pc.is-near::before { background: var(--hb-gold); animation: hb-fglow 1.6s ease-in-out infinite; }
.hb-pc.is-go::before { background: var(--hb-cy); }
.hb-pc.is-done { opacity: .72; }
.hb-pc.is-auto::before { background: linear-gradient(180deg, var(--hb-gold), var(--hb-cy)); }
.hb-pc__head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hb-pc__ttl { display: grid; gap: 2px; min-width: 0; }
.hb-pc__ttl b { font-size: 15px; line-height: 1.3; }
.hb-pc__badge {
  justify-self: start; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px;
  background: color-mix(in srgb, var(--hb-ink) 8%, transparent); color: var(--hb-dim);
}
.hb-pc.is-ok .hb-pc__badge { background: color-mix(in srgb, var(--hb-win) 18%, transparent); color: var(--hb-win); }
.hb-pc.is-near .hb-pc__badge { background: color-mix(in srgb, var(--hb-gold) 18%, transparent); color: var(--hb-gold); }
.hb-pc__reward { font-size: 12.5px; font-weight: 700; color: var(--hb-gold); }
.hb-pc__about { margin: 0; }
.hb-pc__auto {
  display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 16px; font-size: 26px;
  background: conic-gradient(from 200deg, color-mix(in srgb, var(--hb-gold) 40%, transparent), color-mix(in srgb, var(--hb-cy) 30%, transparent), color-mix(in srgb, var(--hb-gold) 40%, transparent));
}
.hb-pc__rules { margin: 0; padding-left: 18px; font-size: 12px; color: var(--hb-dim); }
.hb-pwhy { margin: 0; font-size: 12px; color: var(--hb-dim); }
.hb-pclaim { min-height: 42px; box-shadow: 0 8px 24px -12px var(--hb-gold); animation: hb-fpulse 2.4s ease-in-out infinite; }

/* วงแหวนความคืบหน้า */
.hb-ring { position: relative; flex: none; width: 52px; height: 52px; display: grid; place-items: center; }
.hb-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.hb-ring circle { fill: none; stroke-width: 5; }
.hb-ring__t { stroke: color-mix(in srgb, var(--hb-ink) 10%, transparent); }
/* ⚠️ ห้าม filter บนวงกลมใน SVG — Chrome วาดพื้นที่ filter เป็นกล่องดำหลังวงแหวน (เจ้าของเห็น 2026-10-15) · เงาอยู่ที่ตัว .hb-ring แทน */
.hb-ring__v { stroke: var(--hb-cy); stroke-linecap: round; transition: stroke-dashoffset 1.3s var(--hb-ease); }
.hb-ring.is-ok .hb-ring__v { stroke: var(--hb-win); }
.hb-ring.is-ok { border-radius: 50%; box-shadow: 0 0 18px -6px var(--hb-win); }
.hb-ring.is-near .hb-ring__v { stroke: var(--hb-gold); }
.hb-ring.is-near { border-radius: 50%; box-shadow: 0 0 18px -6px var(--hb-gold); }
.hb-ring.is-wait .hb-ring__v, .hb-ring.is-done .hb-ring__v { stroke: var(--hb-dim); }
.hb-ring b { font-size: 12px; }

/* เงื่อนไขทีละข้อ */
.hb-pchk { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hb-pchk li { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; }
.hb-pchk__ic {
  flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%;
  font-size: 11px; font-weight: 800; background: color-mix(in srgb, var(--hb-ink) 10%, transparent); color: var(--hb-dim);
}
.hb-pchk li.is-ok .hb-pchk__ic { background: var(--hb-win); color: #052014; }
.hb-pchk__t { display: grid; gap: 1px; min-width: 0; flex: 1; }
.hb-pchk__t small { color: var(--hb-dim); font-size: 11.5px; }
.hb-pchk__t em { font-style: normal; font-size: 11.5px; color: var(--hb-gold); }
.hb-pchk .hb-meter { height: 6px; margin: 3px 0 0; }
.hb-meter--win i { background: linear-gradient(90deg, color-mix(in srgb, var(--hb-win) 60%, #000), var(--hb-win)); box-shadow: 0 0 10px var(--hb-win); }

/* บันได · ภารกิจรายวัน */
.hb-pladder { display: grid; gap: 6px; }
.hb-pladder small { color: var(--hb-dim); font-size: 11.5px; }
.hb-pladder__row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.hb-pladder__row span { flex: none; display: grid; justify-items: center; min-width: 54px; padding: 6px 8px; border-radius: 12px; border: 1px solid var(--hb-line); font-size: 11px; }
.hb-pladder__row span b { font-size: 13px; }
.hb-pladder__row span small { color: var(--hb-gold); font-size: 10.5px; }
.hb-pladder__row .is-done { opacity: .5; }
.hb-pladder__row .is-ready { border-color: var(--hb-win); box-shadow: 0 0 0 1px var(--hb-win); }
.hb-pladder__row .is-next { border-color: var(--hb-gold); animation: hb-fglow 1.6s ease-in-out infinite; }
.hb-pmis { display: grid; gap: 8px; }
.hb-pmis__days { display: flex; gap: 6px; flex-wrap: wrap; }
.hb-pmis__days span {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; font-size: 11.5px; font-weight: 700;
  border: 1px solid var(--hb-line); color: var(--hb-dim);
}
.hb-pmis__days .is-done, .hb-pmis__days .is-ok { background: var(--hb-win); color: #052014; border-color: transparent; }
.hb-pmis__days .is-today { border-color: var(--hb-gold); color: var(--hb-gold); animation: hb-fglow 1.6s ease-in-out infinite; }
.hb-pmis__days .is-miss, .hb-pmis__days .is-broken { border-color: color-mix(in srgb, var(--hb-lose) 60%, transparent); color: var(--hb-lose); }
.hb-pmis__m { display: grid; gap: 1px; font-size: 12.5px; }
.hb-pmis__m small { color: var(--hb-dim); font-size: 11.5px; }
.hb-pmis .hb-meter { height: 6px; margin: 3px 0 0; }

/* อันดับ Top 5 สด */
.hb-rank { display: grid; gap: 8px; padding: 10px; border-radius: 14px; background: color-mix(in srgb, var(--hb-ink) 4%, transparent); }
.hb-rank__head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; }
.hb-rank__head .hb-live { padding: 2px 8px; font-size: 10.5px; }
.hb-rank__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hb-rank__list li {
  display: grid; grid-template-columns: 26px 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px;
  animation: hb-in .4s var(--hb-ease) both;
}
.hb-rank__list li.is-me { background: color-mix(in srgb, var(--hb-gold) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hb-gold) 50%, transparent); }
.hb-rank__m { text-align: center; font-weight: 800; font-size: 14px; color: var(--hb-dim); }
.hb-rank__list img, .hb-rank__av {
  width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-style: normal; font-weight: 800;
  background: color-mix(in srgb, var(--hb-ink) 12%, transparent); color: var(--hb-gold);
}
.hb-rank__who { display: grid; gap: 1px; min-width: 0; }
.hb-rank__who b { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-rank__who small { font-size: 10.5px; color: var(--hb-dim); }
.hb-rank__bar { display: block; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--hb-ink) 8%, transparent); overflow: hidden; }
.hb-rank__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--hb-cy), var(--hb-gold)); transition: width 1.2s var(--hb-ease); }
.hb-rank__v { font-size: 12.5px; font-weight: 800; color: var(--hb-win); }
.hb-rank__me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1px dashed var(--hb-line); }
.hb-rank__me.is-in { border-style: solid; border-color: color-mix(in srgb, var(--hb-gold) 60%, transparent); background: color-mix(in srgb, var(--hb-gold) 8%, transparent); }
.hb-rank__me span:last-child { display: grid; gap: 1px; font-size: 12.5px; }
.hb-rank__me small { font-size: 11.5px; color: var(--hb-dim); }
.hb-rank__big { font-size: 26px; font-weight: 900; color: var(--hb-gold); min-width: 46px; text-align: center; }

/* ── แบนเนอร์กิจกรรม ── */
.hb-fun { display: grid; gap: 8px; }
.hb-fun[hidden] { display: none; }
.hb-fun__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.hb-fun__head span { font-size: 12px; color: var(--hb-dim); }
.hb-fun__head span b { color: var(--hb-gold); }
.hb-fun__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.hb-fun__b {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; text-align: left; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--hb-gold) 40%, var(--hb-line)); color: var(--hb-ink); font: inherit;
  background: linear-gradient(120deg, color-mix(in srgb, #8b5cf6 26%, var(--hb-panel)), color-mix(in srgb, #ec4899 18%, var(--hb-panel)) 55%, var(--hb-panel));
  transition: transform .15s var(--hb-ease);
}
.hb-fun__b.is-flip { background: linear-gradient(120deg, color-mix(in srgb, #06b6d4 26%, var(--hb-panel)), color-mix(in srgb, #22c55e 16%, var(--hb-panel)) 55%, var(--hb-panel)); }
.hb-fun__b::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .14) 50%, transparent 65%); background-size: 250% 100%; animation: hb-sheen 4.5s linear infinite;
}
.hb-fun__b:active { transform: scale(.98); }
.hb-fun__b.is-dim { filter: saturate(.55); }
.hb-fun__art { flex: none; display: grid; place-items: center; width: 56px; height: 56px; }
.hb-fun__wheel { width: 56px; height: 56px; animation: hb-spin 6s linear infinite; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4)); }
.hb-fun__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; width: 50px; }
.hb-fun__grid i { aspect-ratio: 1; border-radius: 3px; background: linear-gradient(135deg, #22d3ee, #8b5cf6); animation: hb-ftile 2.4s ease-in-out infinite; }
.hb-fun__txt { display: grid; gap: 1px; min-width: 0; flex: 1; }
.hb-fun__txt b { font-size: 15px; }
.hb-fun__txt small { font-size: 11.5px; color: color-mix(in srgb, var(--hb-ink) 80%, transparent); }
.hb-fun__txt .hb-fun__prize { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--hb-gold); }
.hb-fun__go { flex: none; padding: 8px 12px; border-radius: 12px; font-size: 12.5px; font-weight: 800; background: var(--hb-gold); color: #1c1503; box-shadow: 0 6px 18px -6px var(--hb-gold); }
.hb-fun__b.is-dim .hb-fun__go { background: color-mix(in srgb, var(--hb-ink) 14%, transparent); color: var(--hb-ink); box-shadow: none; }

/* ── หน้าต่างเกม ── */
.hb-noscroll, .hb-noscroll body { overflow: hidden; }
.hb-game {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 14px;
  background: rgba(3, 4, 10, .72); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s;
}
.hb-game[hidden] { display: none; }
.hb-game.is-on { opacity: 1; }
/* ⭐ 000306 พื้นหลังเต็มจอ = ธีมของเกม (`hub-themes.css` · JS ใส่คลาส `hgt hgt--<ลาย>`) — จางลงให้การ์ดเด่น */
.hb-game__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: .55; }
.hb-game__card {
  position: relative; width: min(440px, 100%); max-height: calc(100dvh - 28px); overflow-y: auto; display: grid; gap: 12px; padding: 16px;
  border-radius: 24px; border: 1px solid color-mix(in srgb, var(--hb-gold) 35%, var(--hb-line)); background: color-mix(in srgb, var(--hb-panel) 94%, transparent);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); transform: translateY(14px) scale(.98); transition: transform .3s var(--hb-ease);
}
.hb-game.is-on .hb-game__card { transform: none; }
.hb-game__head { display: flex; align-items: center; gap: 10px; }
.hb-game__head h3 { margin: 0; font-size: 17px; }
.hb-game__pts { margin-left: auto; padding: 4px 10px; border-radius: 99px; font-size: 12.5px; background: color-mix(in srgb, var(--hb-gold) 16%, transparent); color: var(--hb-gold); }
.hb-game__head .hb-x { margin-left: 0; }
.hb-game__stage { display: grid; gap: 12px; justify-items: center; }
.hb-game__foot { display: grid; gap: 6px; }
.hb-game__foot .hb-dim { text-align: center; font-size: 11.5px; }
.hb-game__go { min-height: 48px; font-size: 16px; }
.hb-game__hist summary { cursor: pointer; font-size: 13px; font-weight: 700; }
.hb-game__hist ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.hb-game__hist li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 10px; background: color-mix(in srgb, var(--hb-ink) 5%, transparent); font-size: 12.5px; }
.hb-game__hist li small { color: var(--hb-dim); font-size: 11px; white-space: nowrap; }
.hb-game__hist li.is-credit span { color: var(--hb-win); font-weight: 700; }
.hb-game__hist li.is-none span { color: var(--hb-dim); }
.hb-game__res { min-height: 54px; width: 100%; }

/* วงล้อ */

/* ผลรางวัล */
.hb-win { display: grid; justify-items: center; gap: 2px; padding: 10px; border-radius: 16px; text-align: center; animation: hb-fwin .6s var(--hb-ease) both; }
.hb-win.is-win {
  background: linear-gradient(135deg, color-mix(in srgb, var(--hb-gold) 22%, transparent), color-mix(in srgb, var(--hb-win) 14%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hb-gold) 50%, transparent);
}
.hb-win.is-none { background: color-mix(in srgb, var(--hb-ink) 6%, transparent); }
.hb-win__ic { font-size: 30px; }
.hb-win b { font-size: 15px; }
.hb-win small { font-size: 11.5px; color: var(--hb-dim); }

/* เปิดป้าย 4×4 */
.hb-flip__bar { width: 100%; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--hb-dim); }
.hb-flip__dots { display: flex; gap: 4px; }
.hb-flip__dots i { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--hb-ink) 14%, transparent); transition: background .3s; }
.hb-flip__dots i.is-on { background: var(--hb-gold); box-shadow: 0 0 6px var(--hb-gold); }

/* ⚠️ ความสูงจาก padding ของ __in — `aspect-ratio` บน <button> ไม่ทำงานในบางเบราว์เซอร์ (ป้ายแบนเหลือเส้นเดียว) */

.hb-flip__prizes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.hb-flip__prizes span { font-size: 11px; padding: 3px 8px; border-radius: 99px; background: color-mix(in srgb, var(--hb-ink) 6%, transparent); }

@keyframes hb-fglow { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.35); } }
@keyframes hb-fpulse { 0%, 100% { box-shadow: 0 8px 24px -12px var(--hb-gold); } 50% { box-shadow: 0 10px 30px -8px var(--hb-gold); } }
@keyframes hb-ftile { 0%, 100% { opacity: .55; transform: scale(.92); } 50% { opacity: 1; transform: scale(1); } }
@keyframes hb-forb { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(4vmax, -3vmax); } }
@keyframes hb-fwait { to { transform: rotate(360deg); } }
@keyframes hb-fdot { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes hb-fwin { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@keyframes hb-fshake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }

@media (prefers-reduced-motion: reduce) {
  .hb-psum__c::after, .hb-pc.is-near::before, .hb-pclaim, .hb-pladder__row .is-next, .hb-pmis__days .is-today, .hb-fun__b::after, .hb-fun__wheel,
  .hb-fun__grid i { animation: none; }

}

/* ── ⭐ 000306 ฉากธีมในหน้าต่างเกม + แบนเนอร์ (`hub-themes.css`) ── */
.hb-game__stage { position: relative; overflow: hidden; padding: 14px 10px; border-radius: 18px; }
.hb-game__stage > .hb-game__scene { z-index: 0; }
.hb-game__stage > :not(.hb-game__scene) { position: relative; z-index: 1; }

.hb-game__stage .hb-flip__bar { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.hb-game__stage .hb-flip__prizes span { background: rgba(0, 0, 0, .45); color: #fff; }

.hb-fun__b > .hb-fun__scene { z-index: 0; opacity: .9; }
.hb-fun__b > :not(.hb-fun__scene) { position: relative; z-index: 1; }
.hb-fun__b.has-scene { background: var(--hb-panel); }
.hb-fun__b.has-scene .hb-fun__txt small { color: rgba(255, 255, 255, .85); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.hb-fun__b.has-scene .hb-fun__txt b { text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }

/* ── ⭐ 000307 รูปสัตว์เลี้ยง/กรอบในรางวัล ── */

.hb-win__img { width: 72px; height: 72px; object-fit: contain; animation: hb-fwin .6s var(--hb-ease) both; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); }
.hb-flip__prizes span { display: inline-flex; align-items: center; gap: 4px; }
.hb-flip__prizes img { width: 18px; height: 18px; object-fit: contain; }
.hb-flip__prizes small { margin-left: 4px; font-size: 9.5px; opacity: .75; }
.hb-game__hist li span { display: inline-flex; align-items: center; gap: 6px; }
.hb-game__hist li img { width: 20px; height: 20px; object-fit: contain; }

/* ── ⭐ 000308 ห้องเกม: 3 เกมขึ้นไป = การ์ดตั้ง 2 คอลัมน์ (มือถือ) · แผงโฮโลแกรมในหน้าต่างเกม ── */
.hb-fun--lobby .hb-fun__row { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.hb-fun--lobby .hb-fun__b { flex-direction: column; align-items: stretch; gap: 6px; padding: 10px; text-align: center; animation: hb-fwin .5s var(--hb-ease) backwards; }
.hb-fun--lobby .hb-fun__b:nth-child(2) { animation-delay: .05s; }
.hb-fun--lobby .hb-fun__b:nth-child(3) { animation-delay: .1s; }
.hb-fun--lobby .hb-fun__b:nth-child(4) { animation-delay: .15s; }
.hb-fun--lobby .hb-fun__b:nth-child(5) { animation-delay: .2s; }
.hb-fun--lobby .hb-fun__b:nth-child(6) { animation-delay: .25s; }
.hb-fun--lobby .hb-fun__b:nth-child(7) { animation-delay: .3s; }
.hb-fun--lobby .hb-fun__art { align-self: center; }
.hb-fun--lobby .hb-fun__txt b { font-size: 13.5px; }
.hb-fun--lobby .hb-fun__txt small { font-size: 10.5px; }
.hb-fun--lobby .hb-fun__go { padding: 7px 8px; font-size: 12px; }
.hb-fun__b.is-scratch { background: linear-gradient(140deg, color-mix(in srgb, #f59e0b 28%, var(--hb-panel)), color-mix(in srgb, #f472b6 16%, var(--hb-panel)) 60%, var(--hb-panel)); }
.hb-fun__b.is-gacha { background: linear-gradient(140deg, color-mix(in srgb, #ec4899 28%, var(--hb-panel)), color-mix(in srgb, #38bdf8 16%, var(--hb-panel)) 60%, var(--hb-panel)); }
.hb-fun__b.is-plinko { background: linear-gradient(140deg, color-mix(in srgb, #06b6d4 28%, var(--hb-panel)), color-mix(in srgb, #6366f1 18%, var(--hb-panel)) 60%, var(--hb-panel)); }
.hb-fun__b.is-chest { background: linear-gradient(140deg, color-mix(in srgb, #fbbf24 26%, var(--hb-panel)), color-mix(in srgb, #7c3aed 18%, var(--hb-panel)) 60%, var(--hb-panel)); }
.hb-fun__b.is-claw { background: linear-gradient(140deg, color-mix(in srgb, #f472b6 28%, var(--hb-panel)), color-mix(in srgb, #a855f7 18%, var(--hb-panel)) 60%, var(--hb-panel)); }
.hb-fun__b > .hb-fun__new { position: absolute; top: 6px; right: 6px; z-index: 2; padding: 1px 7px; border-radius: 99px; font-size: 9.5px; font-weight: 900; color: #1c1503; background: linear-gradient(90deg, #fde68a, #f472b6); animation: hb-fdot 1.6s ease-in-out infinite; }
.hb-game__hud { min-height: 0; }
.hb-game__hud:empty { display: none; }
.hb-arc { width: 100%; min-width: 0; }

/* ⭐ ขั้นโบนัสถัดไป (2026-10-24 · level_nextbar_web) — ป้ายทองมีแสงวิ่ง */
.hb-bonusnext {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 6px;
  margin-top: 8px; padding: 6px 10px; border-radius: 10px;
  font-size: 12.5px; font-weight: 700; color: #fde68a;
  background: linear-gradient(90deg, rgba(235, 190, 58, .18), rgba(63, 224, 255, .10));
  border: 1px solid rgba(235, 190, 58, .45);
}
.hb-bonusnext[hidden] { display: none; }
.hb-bonusnext i { font-style: normal; animation: hb-bn-bob 1.6s ease-in-out infinite; }
.hb-bonusnext::after {
  content: ''; position: absolute; top: 0; left: -40%; width: 30%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
  animation: hb-bn-sheen 3.2s ease-in-out infinite;
}
@keyframes hb-bn-bob { 50% { transform: translateY(-2px) scale(1.08); } }
@keyframes hb-bn-sheen { 0%, 55% { left: -40%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .hb-bonusnext i, .hb-bonusnext::after { animation: none; } }
