/* หน้าต่างแต้มเชียร์ + ป้ายอินฟลูข้างชื่อ (ใบ cheer-coupon-1112 · client/cheer-window.js) — ขนาดตัว/ปุ่มตามกฎกลาง ui-scale.css */
.np-inf { display: inline-block; width: 1.15em; height: 1.15em; margin-right: 3px; vertical-align: -0.2em; background: url(assets/ui/cheer/badge64.webp) center / contain no-repeat; }
#windows .chr-empty { padding: 28px 8px; text-align: center; color: #7a6a4a; font-size: var(--fs-body, 16px); }
#windows .chr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; font-size: var(--fs-sm, 14px); }
#windows .chr-amt { min-height: var(--btn-h, 44px); min-width: 54px; padding: 0 10px; border-radius: 10px; border: 1px solid #d9c79e; background: #fffdf6; font-size: var(--fs-body, 16px); font-weight: 700; }
#windows .chr-amt.on { background: #2f6f73; color: #fff; border-color: #2f6f73; }
#windows .chr-num { width: 96px; min-height: var(--btn-h, 44px); font-size: var(--fs-body, 16px); padding: 0 8px; border-radius: 10px; border: 1px solid #d9c79e; }
#windows .chr-msg:disabled { background: #f3eee2; }
#windows .chr-kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 8px 0; }
#windows .chr-kinds.sm { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px; }
#windows .chr-kind { text-align: left; padding: 8px 10px; border-radius: 12px; border: 1px solid #d9c79e; background: #fffdf6; display: flex; flex-direction: column; gap: 2px; min-height: 88px; }
#windows .chr-kind b { font-size: var(--fs-body, 16px); } #windows .chr-kind small { font-size: var(--fs-xs, 12px); color: #7a6a4a; } #windows .chr-kind em { font-style: normal; font-size: var(--fs-sm, 14px); color: #b07a12; font-weight: 700; }
#windows .chr-kind.on { border-color: #2f6f73; box-shadow: 0 0 0 2px #2f6f7355; } #windows .chr-kind:disabled { opacity: 0.5; }
#windows .chr-set { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-body, 16px); }
#windows .chr-tg { display: flex; align-items: center; gap: 8px; min-height: var(--btn-h, 44px); font-size: var(--fs-body, 16px); }
#windows .chr-tg input { width: 22px; height: 22px; }
/* ร้านเพชร: บรรทัด "+N แต้มเชียร์" ใต้ราคาแพ็ก (gem-shop.js cheerLine) */
.gs-cheer { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: var(--fs-xs, 12px); color: #2f6f73; font-weight: 700; }
.gs-cheer img { width: 18px; height: 18px; }
/* ค้นชื่อ · อันดับสัปดาห์ · ประวัติ (2ค) */
#windows .chr-rank, #windows .chr-hist { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
#windows .chr-rank li, #windows .chr-hist li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: #fffdf6; border: 1px solid #ece0c2; font-size: var(--fs-sm, 14px); }
#windows .chr-hist li b { flex: 1; } #windows .chr-hist li em { font-style: normal; font-weight: 700; color: #b07a12; }
html[data-theme="dark"] .chr-amt, html[data-theme="dark"] .chr-kind { background: #2e2a22; color: #f1e6cc; }

/* ══ 2จ รอบ 2 (13 พ.ย.) — หน้าต่างใหญ่โครงเดียวกับตู้กาชา cap2 ══
   กรอบ/หัว/แท็บ/ชิป/ปุ่มกลม = คลาสกลาง tframe.css (.twf) — ไฟล์นี้ตั้งแค่ "เนื้อใน" + ปรับหัวให้ปุ่ม ≥ 44px
   หัวมาตรฐานของ makeWin ซ่อน (หัว .lb-head อยู่ใน .chr แทน · ปุ่มปิด .lb-x) แบบเดียวกับหน้าสังคม · ขนาดคอม = L (ui-scale.css · WS_SIZE)
   ซ้าย = เวที (ลานเมืองยามเย็น + ธงโคม + แท่น + ตัวละครเต็มตัว) · ขวา = แผงกระดาษการกระทำ · ไม่มี animation ใน CSS */
#windows .win[data-win="cheer"]:not([hidden]) { padding: 0 !important; border: 0 !important; border-image: none !important; background: none !important; box-shadow: none !important; overflow: visible !important; display: flex !important; flex-direction: column; }
#windows .win[data-win="cheer"] > header { display: none !important; }
#windows .win[data-win="cheer"] > .foot { display: none !important; }
#windows .win[data-win="cheer"] > .body { padding: 0 !important; margin: 0 !important; overflow: hidden !important; flex: 1 1 auto; min-height: 0; height: auto !important; max-height: none !important; display: flex; background: none !important; }
#windows .chr.twf { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; min-height: 0; overflow: hidden; }
/* คอม: L ไม่เว้นแถบลัดล่าง (กรอบเดิม max-height ตัดก้นหน้าต่าง) · ?ui2=0 = สูงคงที่แทน */
html:not(.touch-ui) body #windows .win[data-win="cheer"]:not([hidden]) { max-height: none !important; position: fixed !important; inset: 0 !important; margin: auto !important; transform: none !important; }
html.ui2.winfix:not(.touch-ui) body #windows .win.ws-l[data-win="cheer"] { width: var(--win-cheer-w, var(--win-l-w)) !important; height: var(--win-cheer-h, var(--win-l-h)) !important; }   /* กลางจอ ขนาดตู้ cap2 */
html:not(.ui2):not(.touch-ui) body #windows .win[data-win="cheer"]:not([hidden]) { width: var(--win-l-w, min(1080px, 96vw)) !important; height: var(--win-l-h, min(700px, calc(100vh - 40px))) !important; }
html.touch-ui #windows .chr.twf { min-height: 0; border-radius: 0; border-width: 0; }
#windows .twf .lb-bellic { background-image: url(assets/ui/cheer/badge.webp); }
#windows .twf .lb-head { flex: none; }
/* ui-kit.css ตั้งปุ่ม/ตัวหนา/ย่อหน้าในหน้าต่างคอมเป็น 13px (html:not(.touch-ui) body .win .body button|b|p|span) — หัวกรอบกลางอยู่ใน .body ของหน้าต่างนี้ จึงคืนขนาดตาม tframe.css (ตัวแปรกลาง) */
#windows .twf .lb-title b { font-size: var(--fs-hero, 24px); }
#windows .twf .lb-tabs button { font-size: var(--fs-body, 15px); }
#windows .twf .lb-pill { font-size: var(--fs-name, 17px); }
#windows .twf .lb-round { font-size: var(--fs-hero, 22px); min-height: 0; }
#windows .twf .lb-tabs button { min-height: var(--btn-h, 44px); }
#windows .twf .lb-round { width: var(--btn-h, 44px); height: var(--btn-h, 44px); }
#windows .chr-chip { color: #8a5a10; }
#windows .chr-chip img { width: 22px; height: 22px; }
#windows .chr-body { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 12px 14px; }
#windows .chr-body:is(.tab-give, .tab-prank, .tab-rank) { overflow: hidden; }
#windows .chr-note { margin: 0; color: #7a6a4a; font-size: var(--fs-sm, 14px); line-height: 1.45; }
#windows .chr-warn { font-size: var(--fs-xs, 12px); line-height: 1.35; color: #8a7550; }
#windows .chr-main { display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); gap: 14px; height: 100%; min-height: 0; }

/* ── เวที ── */
#windows .chr-stage { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; }
#windows .chr-scene { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden; border-radius: 18px; background: url(assets/ui/capsule2/bg_plaza.webp) 50% 62% / cover, #3a2f4a;
  box-shadow: inset 0 0 0 2px #e8b64acc, inset 0 0 0 5px #fff4d640, 0 6px 16px #3a2a1033; }
#windows .chr-scene::before { content: ''; position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 1024 / 120; background: var(--chr-banner) center top / 100% auto no-repeat;
  -webkit-mask: linear-gradient(#000 55%, #0000); mask: linear-gradient(#000 55%, #0000); pointer-events: none; z-index: 1; }
#windows .chr-scene::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 55%, #ffe2a030, #ffe2a000 70%), linear-gradient(#1a122800 55%, #1a122870); pointer-events: none; }
#windows .chr-scene-empty { display: grid; place-items: center; }
#windows .chr-scene-empty .chr-empty { position: relative; z-index: 2; color: #fff3d0; text-shadow: 0 1px 3px #000a; }
#windows .chr-fig { position: absolute; left: 0; right: 0; top: 30px; bottom: 64px; z-index: 2; container-type: size; pointer-events: none; }
#windows .chr-glow { position: absolute; left: 50%; bottom: 8cqh; width: 100cqmin; height: 100cqmin; translate: -50% 0; background: url(assets/fx/capsule2/aura.webp) center / contain no-repeat; opacity: .75;
  -webkit-mask: radial-gradient(closest-side, #000 55%, #0000 98%); mask: radial-gradient(closest-side, #000 55%, #0000 98%); }
#windows .chr-ped { position: absolute; left: 50%; bottom: 0; width: min(92cqw, 52cqh); aspect-ratio: 2 / 1; translate: -50% 0; background: url(assets/ui/capsule2/pedestal.webp) center / contain no-repeat; }
#windows .chr-fullimg { position: absolute; left: 50%; bottom: min(23cqw, 13cqh); height: min(86cqh, 96cqw); width: auto; aspect-ratio: 1 / 1; translate: -50% 0; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 6px 8px #1a102066); }
#windows .chr-live { position: absolute; z-index: 3; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border-radius: 999px;
  background: #fff9ebee; color: #6a5230; font: 700 var(--fs-sm, 14px)/1 var(--font, sans-serif); box-shadow: inset 0 0 0 1.5px #e8b64a99, 0 2px 5px #0004; }
#windows .chr-live i { width: 10px; height: 10px; border-radius: 50%; background: #b9ad92; }
#windows .chr-live.on { color: #2f6f73; } #windows .chr-live.on i { background: #4caf50; box-shadow: 0 0 0 3px #4caf5033; }
/* ปุ่ม 👣 เดินตามอินฟลู (creator-live-1114 ทีม B) — ใต้ป้ายออนไลน์ มุมซ้ายบน · สีน้ำเงินเขียวตาม mockup */
#windows .chr-folb { position: absolute; z-index: 3; left: 10px; top: 48px; min-height: var(--btn-h, 44px); padding: 0 14px; border-radius: 999px; border: 2px solid #2f6f73; background: #e6f4f1; color: #23585b; font: 700 var(--fs-sm, 15px)/1 var(--font-head, sans-serif); cursor: pointer; box-shadow: 0 2px 0 #2f6f7333; }
#windows .chr-folb:hover { background: #d3ece7; }
#windows .chr-folb.on { background: #2f6f73; color: #fff; }
#windows .chr-pin { flex: none; font-style: normal; font-size: var(--fs-sm, 14px); }   /* รอบ 4: หมุดย้ายมาท้ายชื่อบนแผ่นชื่อ (เดิมลอยมุมขวาบน ทับหัวตัวละครบนมือถือ) */
#windows .chr-plate { position: absolute; z-index: 3; left: 10px; right: 10px; bottom: 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 12px; border-radius: 14px; text-align: center;
  background: linear-gradient(#fffdf4f2, #f6e7c4f2); box-shadow: inset 0 0 0 2px #e8b64a, 0 3px 8px #1a102055; }
#windows .chr-plate b { display: flex; align-items: center; justify-content: center; gap: 4px; max-width: 100%; font: 700 var(--fs-title, 20px)/1.2 var(--font-head, sans-serif); color: var(--lb-ink, #493820); overflow-wrap: anywhere; }
#windows .chr-plate small { font-size: var(--fs-sm, 14px); color: #7a6540; line-height: 1.25; }
#windows .chr-star { width: 20px; height: 20px; flex: none; }
#windows .chr-strip { display: flex; align-items: center; gap: 6px; flex: none; min-width: 0; }
#windows .chr-find { flex: none; width: var(--btn-h, 44px); height: var(--btn-h, 44px); border: 0; border-radius: 50%; cursor: pointer; font-size: var(--fs-body, 16px);
  background: linear-gradient(#fffef8, #f0dfb6); box-shadow: inset 0 0 0 2px #e8b64a, 0 2px 4px #0003; }
#windows .chr-find.on { background: linear-gradient(#3f8a8d, #2f6f73); }
#windows .chr-search { flex: 0 1 180px; min-width: 90px; box-sizing: border-box; min-height: var(--btn-h, 44px); font-size: var(--fs-body, 16px); border-radius: 999px; border: 1.5px solid #e3cf9e; padding: 0 12px; background: #fffdf6; }
#windows .chr-heads { display: flex; gap: 6px; flex: 1 1 auto; min-width: 0; overflow: auto hidden; padding: 7px 6px; scrollbar-width: none; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
#windows .chr-heads::-webkit-scrollbar { display: none; }
#windows .chr-h { position: relative; flex: none; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; scroll-snap-align: start;
  background: radial-gradient(circle at 50% 40%, #fff7df, #e9d39c); box-shadow: inset 0 0 0 2px #e3cf9e, 0 2px 4px #3a2a1022; }
#windows .chr-h .rk-face, #windows .chr-h .rk-face img { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
#windows .chr-h.on { box-shadow: 0 0 0 3px #2f6f73, 0 0 0 5px #e8b64a, 0 3px 8px #2f6f7355; }
#windows .chr-dot { position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: #c9bfa8; box-shadow: 0 0 0 2px #fffaf0; }
#windows .chr-dot.on { background: #4caf50; }

/* ── แผงการกระทำ (กระดาษ) ── */
#windows .chr-act { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 12px 14px; border-radius: 16px;
  background: linear-gradient(#fffdf6, #fbf0d4); box-shadow: inset 0 0 0 1.5px #e3cf9e, 0 3px 8px #3a2a1018; }
#windows .chr-act-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; }
#windows .chr-act-h b { font: 700 var(--fs-name, 18px)/1.25 var(--font-head, sans-serif); color: var(--lb-ink, #493820); overflow-wrap: anywhere; }
#windows .chr-act-h small { font-size: var(--fs-sm, 14px); color: #7a6540; }
#windows .chr-tiers2 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
#windows .chr-tb { --tc: #f3e3b4; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; min-height: 44px; padding: 10px 4px 8px; border: 0; border-radius: 16px; cursor: pointer;
  background: radial-gradient(circle at 50% 32%, color-mix(in srgb, var(--tc) 60%, #fff), #fffdf4 72%); box-shadow: inset 0 0 0 1.5px #e3cf9e, 0 2px 5px #3a2a1018; color: var(--lb-ink, #493820); }
#windows .chr-tb.t-bouquet { --tc: #f7c4cf; } #windows .chr-tb.t-lantern { --tc: #ffc98a; } #windows .chr-tb.t-festival { --tc: #ffd96a; }
#windows .chr-tb img { width: clamp(64px, 14vh, 116px); height: clamp(64px, 14vh, 116px); object-fit: contain; filter: drop-shadow(0 3px 4px #5a3a1033); }
#windows .chr-tb span { display: flex; flex-direction: column; align-items: center; min-width: 0; max-width: 100%; }
#windows .chr-tb b { font: 700 var(--fs-title, 20px)/1.1 var(--font-head, sans-serif); }
#windows .chr-tb small { font-size: var(--fs-xs, 12px); color: #7a6540; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
#windows .chr-tb:hover { filter: brightness(1.04); }
#windows .chr-tb.on { box-shadow: inset 0 0 0 2.5px #2f6f73, 0 0 0 3px #e8b64a, 0 4px 10px #2f6f7340; }
#windows .chr-tline { margin: 0; font-size: var(--fs-sm, 14px); line-height: 1.35; color: #6a5230; }
#windows .chr-tline b { color: #2f6f73; }
#windows .chr-row2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
#windows .chr-numw { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm, 14px); color: #6a5230; font-weight: 700; }
#windows .chr-num { width: 120px; min-height: var(--btn-h, 44px); font-size: var(--fs-body, 16px); padding: 0 10px; border-radius: 12px; border: 1.5px solid #e3cf9e; background: #fffdf6; }
#windows .chr-msg { width: 100%; box-sizing: border-box; font-family: inherit; min-height: 72px; max-height: 140px; font-size: var(--fs-body, 16px); border-radius: 12px; border: 1.5px solid #e3cf9e; background: #fffdf6; padding: 8px 10px; resize: none; flex: 1 1 72px; }
#windows .chr-go { --bh: 60px; flex: none; width: 100%; height: var(--bh); min-width: 0; padding: 0; cursor: pointer; background: none; color: #4a2f08; text-shadow: 0 1px 0 #fff3c2aa;
  border: solid transparent; border-width: 0 calc(var(--bh) * .2); border-image: url(assets/ui/capsule2/btn_gold.webp) 0 118 fill / 0 calc(var(--bh) * .92) / 0 calc(var(--bh) * .445) stretch;
  font: 700 var(--fs-btn-main, 18px)/1.15 var(--font-head, sans-serif); white-space: normal; }
#windows .chr-go:not(:disabled):hover { filter: brightness(1.07); }
#windows .chr-go:not(:disabled):active { transform: translateY(2px) scale(.985); }
#windows .chr-go.arm { border-image-source: url(assets/ui/capsule2/btn_teal.webp); color: #fffdf4; text-shadow: 0 1px 2px #0d2b2d99; }
#windows .chr-go:disabled { filter: grayscale(.6); opacity: .6; cursor: default; }
#windows .chr-act .chr-kinds { margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
#windows .chr-act .chr-kind { min-height: 0; border: 0; border-radius: 14px; background: #fffdf6; box-shadow: inset 0 0 0 1.5px #e3cf9e; }
#windows .chr-act .chr-kind.on { box-shadow: inset 0 0 0 2.5px #2f6f73, 0 0 0 3px #e8b64a; }
#windows .chr-tbs { display: none; }
#windows .chr-anon span { display: flex; flex-direction: column; line-height: 1.2; }
#windows .chr-anon small { font-size: var(--fs-xs, 12px); color: #8a7550; font-weight: 400; }
/* การ์ดแกล้งต่อแบบ: ภาพ + ชื่อ + ราคา·เวลา + ผลบรรทัดเดียว */
#windows .chr-act .chr-pk { flex-direction: row; align-items: center; gap: 10px; padding: 8px 10px; min-height: 44px; cursor: pointer; color: var(--lb-ink, #493820);
  background: radial-gradient(circle at 18% 50%, #fff3d6, #fffdf6 60%); }
#windows .chr-pk img, #windows .chr-pk-ph { flex: none; width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 3px 4px #5a3a1033); }
#windows .chr-pk-ph { display: grid; place-items: center; font-size: var(--fs-hero, 24px); font-style: normal; }
#windows .chr-pk span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
#windows .chr-pk b { font: 700 var(--fs-body, 16px)/1.2 var(--font-head, sans-serif); }
#windows .chr-pk small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
#windows .chr-act .chr-pks .chr-pk { padding-block: 10px; }
#windows .chr-pk:disabled { opacity: .5; cursor: default; }

/* ── อันดับ: แท่น 3 อันดับแรกเต็มตัว ── */
#windows .chr-podium { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 4%; min-height: 0; overflow: hidden; padding: 0 4% 12px; border-radius: 18px;
  background: url(assets/ui/capsule2/bg_plaza.webp) 50% 62% / cover, #3a2f4a; box-shadow: inset 0 0 0 2px #e8b64acc, inset 0 0 0 5px #fff4d640, 0 6px 16px #3a2a1033; container-type: size; }
#windows .chr-podium::before { content: ''; position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 1024 / 120; background: var(--chr-banner) center top / 100% auto no-repeat;
  -webkit-mask: linear-gradient(#000 55%, #0000); mask: linear-gradient(#000 55%, #0000); pointer-events: none; }
#windows .chr-pod { position: relative; z-index: 1; flex: 1 1 0; min-width: 0; max-width: 32%; display: flex; flex-direction: column; align-items: center; }
#windows .chr-podimg { display: block; height: 48cqh; width: auto; max-width: none; aspect-ratio: 1 / 1; object-fit: contain; object-position: 50% 100%; margin: 0 -50% -2%; filter: drop-shadow(0 5px 6px #1a102066); }
#windows .chr-pod.p1 .chr-podimg { height: 56cqh; }
#windows .chr-step { position: relative; display: grid; place-items: center; width: 100%; height: 13cqh; border-radius: 10px 10px 4px 4px; background: linear-gradient(#f6e3ae, #d9b45e); box-shadow: inset 0 0 0 2px #fff3c4aa, 0 3px 6px #1a102044; }
#windows .chr-pod.p1 .chr-step { height: 21cqh; background: linear-gradient(#ffe8a0, #e8b64a); } #windows .chr-pod.p2 .chr-step { height: 17cqh; }
#windows .chr-medal { width: 30px; height: auto; }
#windows .chr-pod b { margin-top: 6px; max-width: 100%; padding: 3px 10px; border-radius: 10px; background: #fffdf4ee; box-shadow: inset 0 0 0 1.5px #e8b64a; font: 700 var(--fs-sm, 14px)/1.25 var(--font-head, sans-serif); color: var(--lb-ink, #493820); text-align: center; overflow-wrap: anywhere; }
#windows .chr-pod small { margin-top: 2px; font-size: var(--fs-xs, 12px); color: #fff3d0; text-shadow: 0 1px 2px #000c; }
#windows .chr-rank { margin: 0; gap: 6px; }
#windows .chr-rank li { gap: 10px; padding: 6px 8px 6px 10px; border-radius: 12px; border: 0; box-shadow: inset 0 0 0 1.5px #ecdcb4; }
#windows .chr-rank li.top1 { background: linear-gradient(90deg, #fff3c8, #fffdf6); }
#windows .chr-rank li b { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: var(--fs-body, 16px); }
#windows .chr-rn { min-width: 1.4em; font-weight: 800; color: #2f6f73; text-align: center; }
#windows .chr-rank .rk-face, #windows .chr-rank .rk-face img { width: 40px; height: 40px; border-radius: 50%; }
#windows .chr-paper { min-height: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 16px; background: linear-gradient(#fffdf6, #fbf0d4); box-shadow: inset 0 0 0 1.5px #e3cf9e; }

/* ── จอเตี้ย (มือถือแนวนอน 844×390): แท็บมอบเห็นครบในจอเดียว — เวที ~40% · การกระทำ ~60% · หัวเตี้ย ── */
@media (max-height: 520px) {
  #windows .twf .lb-title { display: none; }
  #windows .twf .lb-bellic { width: 36px; height: 36px; }
  #windows .twf .lb-tabs button { padding: 0 12px; font-size: var(--fs-sm, 14px); }
  #windows .chr-body { padding: 6px 8px; }
  #windows .chr-main { gap: 8px; }
  #windows .chr-stage { gap: 5px; }
  #windows .chr-fig { top: 26px; bottom: 50px; }
  #windows .chr-live { left: 6px; top: 6px; min-height: 26px; padding: 0 9px; font-size: var(--fs-xs, 12px); }
  #windows .chr-folb { left: 6px; top: 38px; padding: 0 10px; font-size: var(--fs-xs, 12px); }
  #windows .chr-plate { left: 6px; right: 6px; bottom: 6px; padding: 4px 8px; gap: 0; }
  #windows .chr-plate b { font-size: var(--fs-name, 16px); }
  #windows .chr-plate small { font-size: var(--fs-xs, 12px); }
  #windows .chr-h { width: 46px; height: 46px; }
  #windows .chr-act { gap: 6px; padding: 7px 10px; }
  #windows .chr-act-h b { font-size: var(--fs-body, 14px); }
  #windows .chr-act-h small { font-size: var(--fs-xs, 12px); }
  #windows .chr-tiers2 { gap: 6px; }
  #windows .chr-tb { flex-direction: row; gap: 4px; padding: 4px 4px; min-height: 48px; border-radius: 12px; }
  #windows .chr-tb img { width: 38px; height: 38px; }
  #windows .chr-tb b { font-size: var(--fs-body, 14px); }
  #windows .chr-tb small { display: none; }
  #windows .chr-tb small.chr-tbs { display: block; font-size: var(--fs-xs, 12px); line-height: 1.1; white-space: nowrap; }
  #windows .chr-tb span { align-items: flex-start; }
  #windows .chr-pk img, #windows .chr-pk-ph { width: 40px; height: 40px; }
  #windows .chr-act .chr-pk, #windows .chr-act .chr-pks .chr-pk { padding: 3px 8px; gap: 6px; }
  #windows .chr-act .chr-pks { gap: 5px; }
  #windows .chr-pk em { font-size: var(--fs-xs, 12px); line-height: 1.15; }
  #windows .chr-pk b { line-height: 1.15; }
  #windows .chr-pk small { line-height: 1.15; }
  #windows .chr-act .chr-pk small { display: block; white-space: nowrap; text-overflow: ellipsis; }
  #windows .chr-pk b { font-size: var(--fs-sm, 14px); }
  #windows .chr-tline { font-size: var(--fs-xs, 12px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: none; }
  #windows .chr-row2 { gap: 4px 12px; }
  #windows .chr-numw, #windows .chr-tg { font-size: var(--fs-sm, 14px); }
  #windows .chr-num { width: 96px; }
  #windows .chr-msg { min-height: 44px; height: 44px; flex: none; padding: 10px; }
  #windows .chr-go { --bh: 50px; font-size: var(--fs-body, 16px); }
  #windows .chr-warn { font-size: var(--fs-xs, 12px); line-height: 1.25; }
  #windows .chr-medal { width: 22px; }
  #windows .chr-pod b { font-size: var(--fs-xs, 12px); padding: 2px 6px; }
  #windows .chr-rank li { padding: 3px 6px; } #windows .chr-rank .rk-face, .chr-rank .rk-face img { width: 34px; height: 34px; }
}

/* ── การ์ดสรุปยอดของอินฟลู (ช่องของฉัน · เจ้าของ 12 พ.ย.) — แต้มเท่านั้น ไม่มีเงินบาท (จอไลฟ์) ── */
#windows .chr-sum { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; padding: 12px; border-radius: 14px; background: linear-gradient(#fff8e2, #f7e6b8); box-shadow: inset 0 0 0 1.5px #e0c47e, 0 2px 0 #d9bb6f55; color: var(--lb-ink, #493820); }
#windows .chr-sum-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
#windows .chr-sum-h b { font: 700 var(--fs-name, 18px)/1.2 var(--font-head, sans-serif); }
#windows .chr-sum-h small { color: #7a6a4a; font-size: var(--fs-xs, 12px); }
#windows .chr-sum-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
#windows .chr-sum-c { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; background: #fffdf6; box-shadow: inset 0 0 0 1px #ecd9a8; min-width: 0; }
#windows .chr-sum-c small { color: #7a6a4a; font-size: var(--fs-sm, 14px); }
#windows .chr-sum-c b { font: 800 var(--fs-hero, 24px)/1.1 var(--font-head, sans-serif); color: #a8700c; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#windows .chr-sum-s { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-sm, 14px); font-weight: 600; }
#windows .chr-sum-w { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
#windows .chr-sum-w .chr-note { flex: 1 1 260px; }
#windows .chr-dash { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: #fff; background: #2f6f73; border-color: #2f6f73; }
html[data-theme="dark"] .chr-sum { background: #3a3326; color: #f1e6cc; }
html[data-theme="dark"] .chr-sum-c { background: #2e2a22; }
/* แกล้ง: บอกก่อนกดว่ายิงทันที/เข้าคิว + คิวของฉัน */
#windows .chr-pk em i { font-style: normal; font-weight: 700; white-space: nowrap; }
#windows .chr-pk .chr-ok { color: #2f6f73; } #windows .chr-pk .chr-wait { color: #a8700c; } #windows .chr-pk .chr-late { color: #b0412e; }
#windows .chr-myq { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border-radius: 12px; background: #fff8e2; box-shadow: inset 0 0 0 1px #ecd9a8; font-size: var(--fs-sm, 14px); }
#windows .chr-myq ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
#windows .chr-myq li { display: flex; flex-direction: column; gap: 1px; }
#windows .chr-myq small { color: #7a6a4a; font-size: var(--fs-xs, 12px); }
@media (max-height: 520px) {
  #windows .chr-sum { gap: 5px; padding: 8px; margin-bottom: 8px; }
  #windows .chr-sum-c { padding: 4px; }
  #windows .chr-sum-c b { font-size: var(--fs-title, 20px); }
  #windows .chr-sum-c small, #windows .chr-sum-s { font-size: var(--fs-xs, 12px); }
}

/* ── ป้ายช่องของอินฟลู (เจ้าของ 12 พ.ย. ค่ำ · ไอคอนสามัญวาดเอง client/channel-icons.js · ไม่ใช่โลโก้แบรนด์) ── */
/* แผ่นป้ายช่องใต้ชื่อบนเวที (เจ้าของ 12 พ.ย. ดึก "เด่นชัดขึ้น") — ไอคอนใหญ่ + แพลตฟอร์ม + ชื่อช่องตัวหนา + ปุ่มเปิดช่อง · เวทีที่มีช่อง (.has-ch) ยกตัวละครขึ้น */
#windows .chr-scene.has-ch .chr-fig { bottom: 112px; }
#windows .chr-chic { flex: none; width: 30px; height: 30px; }
#windows .chr-chn { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.15; }
#windows .chr-chn small { font-size: var(--fs-xs, 12px); color: #7a6a4a; }
#windows .chr-chn b { font-size: var(--fs-sm, 14px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#windows .chr-rch { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; }
#windows .chr-rank li b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#windows .chr-chl { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
#windows .chr-chl li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 8px; border-radius: 12px; background: #fffdf6; border: 1px solid #ece0c2; }
#windows .chr-chl .chr-chn { flex: 1 1 140px; }
#windows .chr-st { font-style: normal; font-size: var(--fs-xs, 12px); font-weight: 700; }
#windows .chr-st.w { color: #a8700c; } #windows .chr-st.n { color: #b0412e; } #windows .chr-st.y { color: #2f6f73; }
#windows .chr-chf { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 12px; background: #fff8e2; box-shadow: inset 0 0 0 1px #ecd9a8; }
#windows .chr-chpf { display: flex; flex-wrap: wrap; gap: 6px; }
#windows .chr-chpf .chr-amt { display: inline-flex; align-items: center; gap: 6px; }
#windows .chr-chf input { min-height: 44px; padding: 0 10px; border-radius: 10px; border: 1px solid #d9c79e; background: #fffdf6; font-size: var(--fs-body, 16px); }
#windows .chr-sum-t { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--fs-sm, 14px); }
#windows .chr-sum-t span span { margin-left: 4px; }
#windows .chr-live2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 10px; border-radius: 12px; background: #fffdf6; box-shadow: inset 0 0 0 1px #ecd9a8; font-size: var(--fs-sm, 14px); }
#windows .chr-live2 > span { flex: 1 1 200px; color: #7a6a4a; }
#windows .chr-live2.on { flex-direction: column; align-items: stretch; }
#windows .chr-live2-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
#windows .chr-live2-h small { flex: 1; color: #7a6a4a; font-size: var(--fs-xs, 12px); }
#windows .chr-live2-n { display: flex; flex-wrap: wrap; gap: 4px 18px; }
#windows .chr-live2-n b { font: 800 var(--fs-title, 20px)/1.1 var(--font-head, sans-serif); color: #a8700c; }
#windows .chr-live2-top { display: flex; flex-wrap: wrap; gap: 4px 14px; font-weight: 600; }
#windows .chr-tp3 small { color: #b0412e; font-size: var(--fs-xs, 12px); }
/* การ์ดเป้าหมายในโลก (ui.js renderTarget) — ไอคอน + ชื่อช่อง · ยาว = … */
#target .t-ch { display: inline-flex; align-items: center; gap: 3px; max-width: 13em; vertical-align: bottom; }
#target .t-ch > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#target .t-chic { flex: none; width: 1.15em; height: 1.15em; }
@media (max-height: 520px) {
  #windows .chr-scene.has-ch .chr-fig { bottom: 84px; }
  #target .t-ch { max-width: 8em; }
}

/* ── โหมดไลฟ์: ป้ายชื่อผู้เชียร์ตัวใหญ่กลางบนจอ (client/cheer-live.js) — อ่านจากภาพสตรีม 720p · ไม่มีปุ่ม หายเอง · ไม่รับคลิก (ไม่บังการเล่น) ── */
#chr-liveb { position: fixed; z-index: calc(var(--z-hud, 100) + 2); left: 50%; top: calc(env(safe-area-inset-top, 0px) + 13vh); transform: translate(-50%, -12px); opacity: 0; pointer-events: none;
  width: max-content; max-width: min(760px, 86vw); transition: opacity .3s, transform .3s; }
#chr-liveb.on { opacity: 1; transform: translate(-50%, 0); }
#chr-liveb.out { opacity: 0; transform: translate(-50%, -8px); }
#chr-liveb .lb-card { display: flex; align-items: center; gap: 16px; padding: 12px 26px 12px 14px; border-radius: 22px; color: #493820;
  background: linear-gradient(#fffaf0, #f7e2a8); box-shadow: inset 0 0 0 2.5px #e8b64a, inset 0 0 0 5px #fff6df, 0 8px 22px #3a200a55; }
#chr-liveb .lb-art { flex: none; width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 3px 4px #5a3a1044); }
#chr-liveb .lb-tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.12; }
#chr-liveb small { font: 700 var(--fs-body, 16px)/1.2 var(--font-head, sans-serif); color: #2f6f73; letter-spacing: .02em; }
#chr-liveb .lb-who { font: 900 calc(var(--fs-hero, 24px) * 1.8)/1.1 var(--font-head, sans-serif); color: #8a4f00; overflow-wrap: anywhere;
  text-shadow: 0 2px 0 #fff6df, 0 0 10px #fff6df; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
#chr-liveb .lb-what { font: 800 var(--fs-title, 20px)/1.25 var(--font-head, sans-serif); color: #493820; }
#chr-liveb .lb-msg { margin-top: 2px; font-size: var(--fs-name, 18px); color: #5a4630; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
#chr-liveb .lb-msg::before { content: '“'; } #chr-liveb .lb-msg::after { content: '”'; }
@media (max-height: 520px) {
  #chr-liveb { top: calc(env(safe-area-inset-top, 0px) + 70px); max-width: min(520px, 60vw); }   /* ใต้แถวปุ่มบนขวา (r4: ทับปุ่มเมนู/แชท) */
  #chr-liveb .lb-card { gap: 10px; padding: 6px 16px 6px 8px; border-radius: 16px; }
  #chr-liveb .lb-art { width: 54px; height: 54px; }
  #chr-liveb small { font-size: var(--fs-xs, 12px); }
  #chr-liveb .lb-who { font-size: calc(var(--fs-hero, 24px) * 1.45); display: block; white-space: nowrap; text-overflow: ellipsis; }
  #chr-liveb .lb-what { font-size: var(--fs-sm, 14px); }
  #chr-liveb .lb-msg { font-size: var(--fs-sm, 14px); -webkit-line-clamp: 1; }
}
#windows .chr-lm { align-items: flex-start; }
#windows .chr-lm small { display: block; color: #7a6a4a; font-size: var(--fs-xs, 12px); }
/* ป้ายเหนือหัวอินฟลู: ไอคอน + ชื่อช่อง ใต้ชื่อ เฉพาะตอนเป็นเป้า/ชี้ (pl.meta) — ไม่ลอยถาวรในเมืองคนเยอะ */
.np-ch { display: inline-flex; align-items: center; gap: 3px; max-width: 12em; }
.np-ch > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-ch .np-chic { flex: none; width: 1.15em; height: 1.15em; }

/* ── r4: แท็บในหัวไม่ตกบรรทัด (คออังกฤษ) · ส่วนตั้งค่าใต้การ์ดยอดรวมเข้าชุดกรอบ (สวิตช์ · หัวข้อ · แผ่นครีม) ── */
#windows .chr-tabs button { white-space: nowrap; }
#windows .chr-set { margin-top: 4px; padding: 12px; border-radius: 14px; background: #fffdf6; box-shadow: inset 0 0 0 1.5px #ecd9a8; color: var(--lb-ink, #493820); }
#windows .chr-set > b { display: block; margin-top: 8px; padding-bottom: 4px; border-bottom: 2px solid #f0dca6; font: 800 var(--fs-body, 16px)/1.3 var(--font-head, sans-serif); color: #2f6f73; }
#windows .chr-set > b.chr-seth { margin-top: 0; font-size: var(--fs-name, 18px); color: var(--lb-ink, #493820); }
#windows .chr-tg input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 46px; height: 26px; min-width: 46px; max-width: 46px; min-height: 26px; max-height: 26px; padding: 0; margin: 0; border-radius: 999px; background: #e6d8b6; box-shadow: inset 0 1px 2px #5a3a1033; cursor: pointer; transition: background .2s; }
#windows .chr-tg input[type="checkbox"]::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #5a3a1055; transition: transform .2s; }
#windows .chr-tg input[type="checkbox"]:checked { background: #2f6f73; }
#windows .chr-tg input[type="checkbox"]:checked::after { transform: translateX(20px); }
#windows .chr-tg input[type="checkbox"]:disabled { opacity: .45; cursor: default; }
#windows .chr-tg input[type="checkbox"]:focus-visible { outline: 2px solid #e8b64a; outline-offset: 2px; }
#windows .chr-set .chr-kinds.sm { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 12px; }
#windows .chr-set .chr-amt { border-radius: 12px; box-shadow: inset 0 -2px 0 #e3cf9e; }
#windows .chr-set .chr-amt.on { box-shadow: inset 0 -2px 0 #1f5054; }
#windows .chr-reveal { min-height: 44px; padding: 0 10px; border-radius: 999px; border: 1px dashed #b89a5a; background: #fff8e2; color: #7a6a4a; font-size: var(--fs-xs, 12px); font-weight: 700; cursor: pointer; }

/* ── จอไลฟ์อินฟลู (13 พ.ย. · client/cheer-live.js): ป้ายสองขนาด · แผงแฟนตัวยง · แถบล่าสุด — DOM/CSS ล้วน · เฉพาะจออินฟลูที่เปิดโหมดไลฟ์ ── */
#chr-liveb.sz-s .lb-card { transform: scale(.8); transform-origin: top center; }
#chr-liveb.sz-l .lb-card { transform: scale(1.18); transform-origin: top center; }
/* แถบบาง: บรรทัดเดียวใต้ป้ายมอน/หลอดบอส (--hz-tc-b) · ไม่รับคลิก (ไม่บังปุ่ม) · ชื่อยังตัวใหญ่ อ่านจากสตรีม 720p */
#chr-livethin { position: fixed; z-index: calc(var(--z-hud, 100) + 2); left: 50%; top: calc(var(--hz-tc-b, 96px) + 6px); transform: translate(-50%, -6px); opacity: 0;
  pointer-events: none; max-width: min(720px, 72vw); transition: opacity .25s, transform .25s; }
#chr-livethin.on { opacity: 1; transform: translate(-50%, 0); }
#chr-livethin.out { opacity: 0; }
#chr-livethin .lt-bar { display: flex; align-items: center; gap: 10px; padding: 3px 16px 3px 6px; border-radius: 99px; white-space: nowrap; overflow: hidden;
  background: #fffaf0e8; box-shadow: inset 0 0 0 2px #e8b64a, 0 3px 10px #3a200a44; color: #493820; }
#chr-livethin img { width: 30px; height: 30px; flex: none; }
#chr-livethin .lt-who { font: 900 calc(var(--fs-title, 20px) * 1.3)/1.15 var(--font-head, sans-serif); color: #8a4f00; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#chr-livethin .lt-tx { display: flex; align-items: center; gap: 10px; min-width: 0; }
#chr-livethin .lt-what { font: 800 var(--fs-body, 16px)/1.2 var(--font-head, sans-serif); flex: none; }
#chr-livethin.sz-s .lt-who { font-size: var(--fs-title, 20px); }
#chr-livethin.sz-l .lt-who { font-size: calc(var(--fs-title, 20px) * 1.6); }
/* แผงแฟนตัวยง + แถบล่าสุด: ใต้มินิแมพ (--hz-tr-b) ชิดขวา · ตัวเล็ก · ชิปเดียวรับคลิก ≥ 44px · ที่เหลือไม่รับคลิก */
#chr-liveside { position: fixed; z-index: calc(var(--z-hud, 100) + 1); right: calc(env(safe-area-inset-right, 0px) + 8px); top: calc(var(--hz-tr-b, 230px) + 6px);
  width: max-content; max-width: min(250px, 34vw); display: flex; flex-direction: column; align-items: flex-end; gap: 4px; pointer-events: none; }
#chr-liveside:not(.on) { display: none; }
#chr-liveside .ls-chip { pointer-events: auto; display: flex; align-items: center; gap: 6px; min-height: 44px; max-width: 100%; padding: 0 12px; border-radius: 22px; border: 0;
  background: #fffaf0e8; box-shadow: inset 0 0 0 2px #e8b64a, 0 2px 8px #3a200a44; color: #493820; font: 700 var(--fs-sm, 14px)/1.1 var(--font-head, sans-serif); }
#chr-liveside .ls-chip b { color: #8a4f00; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 11em; }
#chr-liveside .ls-chip span { color: #2f6f73; }
#chr-liveside ol { margin: 4px 0 0; padding: 6px 10px; list-style: none; border-radius: 12px; background: #fffaf0e8; box-shadow: inset 0 0 0 1.5px #e8b64a; counter-reset: f; }
#chr-liveside ol li { display: flex; gap: 8px; justify-content: space-between; font: 700 var(--fs-sm, 14px)/1.5 var(--font-head, sans-serif); color: #493820; }
#chr-liveside ol li::before { counter-increment: f; content: counter(f) '.'; color: #2f6f73; min-width: 1.2em; }
#chr-liveside ol li.anon { color: #7a6a4a; }
#chr-liveside ol li.anon::before { content: '·'; }
#chr-liveside ol li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 9em; }
#chr-liveside .ls-recent { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
#chr-liveside .ls-recent li { padding: 2px 10px; border-radius: 99px; background: #2a1f10b0; color: #fff6df; font: 700 var(--fs-xs, 12px)/1.4 var(--font-head, sans-serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
#chr-liveside.sz-l .ls-recent li { font-size: var(--fs-sm, 14px); }
.chr-livectl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0; font-size: var(--fs-sm, 14px); }
.chr-livectl small { color: #7a6a4a; font-size: var(--fs-xs, 12px); }
/* จอสัมผัส (844/667): ชื่อเต็มเสมอ (ชื่อตัวละครยาวสุด 16 ตัว · ห้ามตัดกลางชื่อ) — แถบล่าสุด 2 ชื่อบรรทัดเดียวข้างชิปแฟน
   แถบบาง = แถวใต้มินิแมพ/ปุ่มกลมบน (--hz-tr-b) กลางจอ ไม่ทับปุ่ม Menu/Chat · ระหว่างแถบบางขึ้น ซ่อนแถบล่าสุด (ชื่อเดียวกันอยู่ในแถบบางแล้ว) */
html.touch-ui #chr-livethin { top: calc(var(--hz-tr-b, 96px) + 4px); left: calc(var(--hz-tl-r, 240px) + 8px); transform: translateY(-6px);
  max-width: calc(100vw - var(--hz-tl-r, 240px) - 16px - var(--ls-w, 210px)); }   /* เริ่มหลังการ์ดตัวละคร จบก่อนชิปแฟน (ไม่ทับ) · --ls-w = ความกว้างชิปจริง (cheer-live.js) */
html.touch-ui #chr-livethin.on { transform: none; }
html.touch-ui #chr-livethin .lt-what { font-size: var(--fs-sm, 14px); }
html.touch-ui #chr-livethin .lt-who { font-size: var(--fs-title, 20px); }
html.chr-thin-on #chr-liveside .ls-recent { visibility: hidden; }
#chr-liveside { flex-direction: row-reverse; align-items: flex-start; max-width: 70vw; top: calc(var(--hz-tr-b, 96px) + 1px); }   /* ชิดใต้มินิแมพ — ไม่ลงไปทับแถวบนของปุ่มสกิล */
#chr-liveside .ls-recent { flex-direction: row; gap: 4px; }
/* คอม (ไม่ใช่จอสัมผัส): --hz-tr-b = 0 (มินิแมพ + ปุ่ม "หาปาร์ตี้" #pf-dock ลอยอิสระ ไม่อยู่ในโซนบนขวา) → ชิปแฟนเคยลอยทับมินิแมพ (ด่าน hud 1920 · hud-cheer-1114) — ลงมาใต้ปุ่มหาปาร์ตี้ (top 176 + ~32) */
html:not(.touch-ui) #chr-liveside { top: 216px; }
#chr-liveside .ls-recent li:nth-child(n+3) { display: none; }
#chr-liveside .ls-fans { position: relative; }
/* กางแผงไปทางซ้ายของชิป (ไม่ลงไปทับปุ่มยา/สกิลมุมขวา) · ระหว่างกาง ซ่อนแถบล่าสุด */
#chr-liveside .ls-fans ol { position: absolute; right: calc(100% + 6px); top: 0; margin: 0; white-space: nowrap; }
#chr-liveside .ls-fans.open ~ .ls-recent { visibility: hidden; }
#chr-liveside .ls-recent li, #chr-liveside ol li b, #chr-liveside .ls-chip b { max-width: none; text-overflow: clip; }
/* จอสัมผัส: ป้ายใหญ่อยู่ช่องระหว่างการ์ดตัวละครกับชิปแฟน (ไม่ทับชิป/ปุ่มขวา) · ชื่อเต็มขึ้นบรรทัดใหม่ได้ ไม่ตัดกลางชื่อ */
html.touch-ui #chr-liveb { left: calc(var(--hz-tl-r, 240px) + 8px); transform: translateY(-10px); top: calc(var(--hz-tr-b, 96px) + 4px);
  max-width: calc(100vw - var(--hz-tl-r, 240px) - 16px - var(--ls-w, 210px)); }
html.touch-ui #chr-liveb.on { transform: none; }
html.touch-ui #chr-liveb.out { transform: translateY(-6px); }
html.touch-ui #chr-liveb .lb-card { padding: 8px 16px 8px 8px; gap: 10px; }
html.touch-ui #chr-liveb .lb-art { width: 56px; height: 56px; }
html.touch-ui #chr-liveb .lb-who { font-size: calc(var(--fs-hero, 24px) * 1.15); display: block; -webkit-line-clamp: unset; overflow: visible; white-space: normal; text-overflow: clip; }   /* ชื่ออังกฤษหลายคำขึ้นบรรทัดใหม่ที่ช่องว่าง (เดิม nowrap จากกฎจอเตี้ย → ล้นการ์ดทับชิป) */
#chr-liveb .lb-who { overflow-wrap: normal; word-break: keep-all; }

/* รอบ 2 (13 พ.ย.): จอสัมผัสช่องแคบ (667) — แถบบางสองบรรทัด (ชื่อเต็ม + รายละเอียดเล็ก) · ป้ายใหญ่ไม่มีภาพประกอบ ตัวชื่อไม่ใหญ่เกินช่อง · แผงแฟนไม่มีหน่วยแต้ม (ไม่ทับการ์ดตัวละคร) */
html.touch-ui #chr-livethin .lt-bar { border-radius: 18px; padding: 3px 14px 3px 6px; }
html.touch-ui #chr-livethin .lt-tx { flex-direction: column; align-items: flex-start; gap: 0; }
html.touch-ui #chr-livethin .lt-what { font-size: var(--fs-xs, 12px); }
html.touch-ui #chr-liveside .ls-u { display: none; }
html.touch-ui #chr-liveside .ls-fans ol { max-width: calc(100vw - var(--hz-tl-r, 240px) - var(--ls-w, 210px) - 24px); }
@media (max-width: 720px) {
  html.touch-ui #chr-liveb .lb-art { display: none; }
  html.touch-ui #chr-liveb .lb-card { padding: 6px 14px; }
  html.touch-ui #chr-liveb .lb-who { font-size: var(--fs-hero, 24px); }
}

/* คอม (รอบ 2): แถบล่าสุดเดิมกองใต้ชิปแล้วทับมินิแมพ → ใช้แถวเดียวกับชิปเหมือนจอสัมผัส (ชิปชิดขวาสุด · แถบล่าสุดทางซ้าย · แผงกางไปทางซ้าย)
   ตัวอักษรขึ้นอีกขั้น — ภาพสตรีมย่อเหลือ ~720p ตัว 12px จะเหลือ ~11px อ่านไม่ออก */
@media (hover: hover) and (min-width: 1000px) {
  #chr-liveside .ls-recent li { font-size: var(--fs-body, 15px); padding: 3px 12px; background: #2a1f10d9; }
  #chr-liveside { top: 6px; }
  #chr-liveside .ls-chip { font-size: var(--fs-body, 16px); }
  #chr-liveside ol li { font-size: var(--fs-body, 16px); }
  #chr-liveside.sz-l .ls-recent li { font-size: var(--fs-name, 17px); }
}

#windows .chr-onscr { display: block; margin: 4px 2px 0; font-size: var(--fs-sm, 14px); font-weight: 700; color: #2f6f73; }   /* ก่อนกดมอบ: รู้ก่อนว่าชื่อขึ้นจออินฟลู (13 พ.ย.) */

/* ───── BRIEF-S3 + รอบ 4 (13 พ.ย.): ป้ายช่องบนเวที (แสดงอย่างเดียว) + ปุ่ม/แผ่นกระดานแฟน ───── */
/* มุมขวาบนของเวที: ปุ่มแฟนตัวยง */
#windows .chr-tr { position: absolute; z-index: 4; right: 8px; top: 8px; display: flex; align-items: center; gap: 6px; max-width: 62%; }
#windows .chr-fanb { display: inline-flex; align-items: center; gap: 5px; min-width: 0; min-height: var(--btn-h, 44px); padding: 0 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(#fff8e2, #f6dfa4); box-shadow: inset 0 0 0 1.5px #d9b65e, 0 2px 6px #0003; color: var(--lb-ink, #493820); font: 800 var(--fs-sm, 14px)/1 var(--font-head, sans-serif); }
#windows .chr-fanb:hover { filter: brightness(1.05); }
#windows .chr-fanb i { font-style: normal; flex: none; }
#windows .chr-fanb span { flex: none; white-space: nowrap; }
#windows .chr-fanb .fb-s { display: none; }
#windows .chr-fanb b { min-width: 0; max-width: 9em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 700; color: #2f6f73; }
/* ป้ายช่อง: ป้ายผ้าเข้าชุดแผ่นชื่อ — หัวป้ายสีตามแพลตฟอร์ม (โทนอุ่นของเกม ไม่ใช่สีแบรนด์ตรง ๆ) + ช่องไอคอนกลมขนาดคงที่ + เนื้อครีมขอบทอง
   ไม่ใช่ปุ่ม (รอบ 4: ไม่มีทางออกนอกเกม) · กว้างตามชื่อ สูงสุด 82% ของแถวแล้วตัด … · มือถือไม่พอที่ = ปัดข้าง (ขอบขวาจาง) · คอม = ขึ้นบรรทัดใหม่ */
#windows .chr-plate .chr-chs { align-self: stretch; display: flex; justify-content: safe center; gap: 6px; margin-top: 5px; padding: 1px 16px 2px 1px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 16px), transparent); }
#windows .chr-plate .chr-chs::-webkit-scrollbar { display: none; }
#windows .chr-plate .chr-chm { --pf: #2f6f73; --pf2: #24575a; flex: 0 0 auto; max-width: 82%; display: flex; align-items: stretch; min-width: 0; border-radius: 12px; overflow: hidden; text-align: left;
  background: linear-gradient(#fffdf4, #f8ebc8); box-shadow: inset 0 0 0 1.5px #dcbf78, 0 1px 0 #c9a85c, 0 2px 4px #5a3a1026; color: var(--lb-ink, #493820); }
#windows .chr-chm.pf-youtube { --pf: #cf4a3c; --pf2: #a8362c; }
#windows .chr-chm.pf-tiktok { --pf: #3a3340; --pf2: #231e28; }
#windows .chr-chm.pf-facebook { --pf: #3f73bd; --pf2: #2f5896; }
#windows .chr-chm.pf-twitch { --pf: #7d5cc0; --pf2: #5f4399; }
#windows .chr-chi { flex: none; display: grid; place-items: center; width: 42px; padding-left: 4px; box-shadow: inset 4px 0 0 var(--pf); }   /* แถบสีแพลตฟอร์มซ้ายป้าย + เหรียญไอคอน (ภาพ CH_ART หรือ SVG สำรอง) */
#windows .chr-plate .chr-chi .chr-chic { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 1px 1.5px #5a3a1055); }
#windows .chr-plate .chr-chi svg.chr-chic { padding: 4px; box-sizing: border-box; border-radius: 50%; background: #fff6df; }
#windows .chr-plate .chr-chm .chr-chn { justify-content: center; padding: 4px 12px 4px 8px; line-height: 1.15; }
#windows .chr-plate .chr-chm .chr-chn small { display: block; font-size: var(--fs-xs, 12px); font-weight: 700; color: var(--pf2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#windows .chr-plate .chr-chm .chr-chn b { display: block; font: 800 var(--fs-sm, 14px)/1.2 var(--font-head, sans-serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; justify-content: flex-start; text-align: left; }
#windows .chr-plate .chr-chs.n1 .chr-chm { max-width: 100%; }
#windows .chr-plate .chr-chs.n1 .chr-chn b { font-size: var(--fs-body, 16px); }
/* แผ่นกระดานแฟน (ทับในหน้าต่าง) — หัวภาพโคม + มงกุฎ · แถวมีเหรียญ/หน้าตัวละคร/ป้ายแฟนคลับ */
#windows .chr-fans { position: absolute; inset: 0; z-index: 19; display: grid; place-items: center; padding: 10px; background: #2a1d0c66; border-radius: inherit; }
#windows .chr-fans-in { display: flex; flex-direction: column; gap: 8px; width: min(820px, 100%); max-height: 100%; box-sizing: border-box; padding: 0 14px 12px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(#fffdf6, #fbf0d4); box-shadow: inset 0 0 0 1.5px #e3cf9e, 0 8px 24px #0004; color: var(--lb-ink, #493820); font-size: var(--fs-body, 16px); }
#windows .chr-fans-in > header { display: flex; align-items: center; gap: 8px; margin: 0 -14px; padding: 8px 10px 8px 14px; background: linear-gradient(#2f6f73e6, #24575af2), var(--chr-banner) 50% 30% / cover; box-shadow: inset 0 -2px 0 #e8b64a; }
#windows .chr-fans-in > header b { flex: 1; min-width: 0; font: 800 var(--fs-title, 20px)/1.2 var(--font-head, sans-serif); color: #fff6df; text-shadow: 0 1px 2px #0006; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#windows .chr-fcup { flex: none; width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 2px 2px #0005); }
#windows .chr-fans-b { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 12px; min-height: 0; overflow: auto; }
#windows .chr-fans h4 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 4px; font: 800 var(--fs-body, 16px)/1.2 var(--font-head, sans-serif); color: #2f6f73; }
#windows .chr-fans h4 small { font-weight: 400; font-size: var(--fs-xs, 12px); color: #7a6a4a; }
#windows .chr-fans ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
#windows .chr-fweek ol { grid-template-rows: repeat(5, auto); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 8px; }
#windows .chr-fans li { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 3px 10px 3px 5px; border-radius: 999px; background: #fffdf6; box-shadow: inset 0 0 0 1px #ece0c2; font-size: var(--fs-sm, 14px); }
#windows .chr-fans li b { flex: 0 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#windows .chr-fans li em { flex: none; margin-left: auto; font-style: normal; font-weight: 800; color: #6a5230; }
#windows .chr-fans li em small { font-weight: 400; font-size: var(--fs-xs, 12px); color: #8a7550; }
#windows .chr-fans li .chr-rn { flex: none; width: 26px; text-align: center; font-weight: 800; color: #7a6540; }
#windows .chr-fmd { flex: none; width: 26px; height: 26px; object-fit: contain; }
#windows .chr-fans .rk-face, #windows .chr-fans .rk-face img { flex: none; width: 30px; height: 30px; border-radius: 50%; }
#windows .chr-fans .rk-face { background: #f3e3b4; box-shadow: 0 0 0 1.5px #dcbf78; }
#windows .chr-fans .chr-fanon { background: #d9cfb8 url(assets/ui/cheer/silhouette.webp) 50% 18% / 150% auto no-repeat; opacity: .75; }
#windows .chr-fans li.t1 { background: linear-gradient(90deg, #fff0b8, #fffdf6 70%); box-shadow: inset 0 0 0 1.5px #e2c25a; }
#windows .chr-fans li.t2 { background: linear-gradient(90deg, #eef0f2, #fffdf6 70%); }
#windows .chr-fans li.t3 { background: linear-gradient(90deg, #f6dfc8, #fffdf6 70%); }
#windows .chr-fans li.me { box-shadow: inset 0 0 0 2px #2f6f73; }
#windows .chr-fans li.chr-fnone { color: #7a6a4a; background: none; box-shadow: none; grid-column: 1 / -1; padding-left: 8px; }
/* ป้ายแฟนคลับ 3 ขั้น (ทองแดง · เงิน · ทอง) — หัวใจบนเหรียญติดริบบิ้น วาดเอง */
.chr-fbg { flex: none; display: inline-grid; font-style: normal; line-height: 1; vertical-align: -4px; }
.chr-fbg svg { width: 20px; height: 20px; }
.chr-fbg .rb { fill: #2f6f73; } .chr-fbg .ht { fill: #fff6df; } .chr-fbg .sp { fill: #fff6df; stroke: #0003; stroke-width: .5; }
.chr-fbg .ds { fill: #c98a52; stroke: #8e5a2e; stroke-width: 1.2; }
.chr-fbg.b2 .ds { fill: #b9c2cc; stroke: #7d8894; } .chr-fbg.b2 .rb { fill: #5f4399; }
.chr-fbg.b3 .ds { fill: #e8b64a; stroke: #b07f1e; } .chr-fbg.b3 .rb { fill: #cf4a3c; }
#windows .chr-fans-in > footer { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
#windows .chr-fmine { flex: 1 1 200px; font-size: var(--fs-sm, 14px); }
#windows .chr-fans-in > footer > small { flex: 1 1 100%; font-size: var(--fs-xs, 12px); line-height: 1.35; color: #8a7550; }
#windows .chr-fleg { margin-right: 6px; color: #6a5230; }
#windows .chr-fleg .chr-fbg { vertical-align: -3px; margin-right: 2px; }
#windows .chr-fleg .chr-fbg svg { width: 16px; height: 16px; }
/* แท็บมอบ: คำเตือนฉบับสั้น (จอเตี้ย — ต้องเห็นครบไม่ต้องเลื่อน) / ฉบับเต็ม (คอม) */
#windows .chr-wshort { display: none; }
#windows .chr-fig { top: 56px; }   /* รอบ 4: ภาพตัวละครจัตุรัส (ปีก/หมวก/อาวุธเต็ม) เริ่มใต้แถวชิปออนไลน์/ปุ่มแฟน — ไม่ถูกปุ่มทับ */
@media (max-height: 520px) {
  #windows .chr-fig { top: 6px; }   /* จอเตี้ย: ตัวละครอยู่กลางเวที กว้างไม่ถึงชิปสองมุม (ภาพกว้าง = สูง ≤ ~110px ของเวที ≥ 300px) */
  #windows .chr-tr { right: 5px; top: 5px; }
  /* จอเตี้ย: ปุ่มแฟนตัวยงแบบย่อ (ถ้วย + "แฟน" สองบรรทัด กว้าง ~50px) — ไม่ยื่นเข้ามาทับมุมบนของภาพตัวละคร (ปีก/หมวก) */
  #windows .chr-fanb { flex-direction: column; justify-content: center; gap: 1px; width: 50px; min-height: 48px; padding: 2px 0; border-radius: 14px; font-size: var(--fs-xs, 12px); }
  #windows .chr-fanb b, #windows .chr-fanb .fb-l, #windows .chr-fanb .fb-go { display: none; }
  #windows .chr-fanb .fb-s { display: block; }
  #windows .chr-plate .chr-chs { gap: 4px; margin-top: 2px; }
  #windows .chr-chi { width: 34px; }
  #windows .chr-plate .chr-chi .chr-chic { width: 28px; height: 28px; }
  #windows .chr-plate .chr-chm .chr-chn { padding: 2px 9px 2px 6px; line-height: 1.1; }
  #windows .chr-plate .chr-chm .chr-chn b, #windows .chr-plate .chr-chs.n1 .chr-chn b { font-size: var(--fs-xs, 12px); }
  #windows .chr-fans { padding: 4px; }
  #windows .chr-fans-in { padding: 0 10px 5px; gap: 4px; }
  #windows .chr-fans-in > header { margin: 0 -10px; padding: 2px 6px 2px 10px; }
  #windows .chr-fans-in > header b { font-size: var(--fs-body, 16px); }
  #windows .chr-fcup { width: 26px; height: 26px; }
  #windows .chr-fans li { padding: 1px 8px 1px 3px; font-size: var(--fs-xs, 12px); gap: 4px; }
  #windows .chr-fans .rk-face, #windows .chr-fans .rk-face img { width: 22px; height: 22px; }
  #windows .chr-fmd { width: 20px; height: 20px; } #windows .chr-fans li .chr-rn { width: 20px; }
  .chr-fbg svg { width: 16px; height: 16px; }
  #windows .chr-fans h4 { margin-bottom: 2px; font-size: var(--fs-sm, 14px); }
  #windows .chr-fans-in > footer > small { line-height: 1.2; }
  /* แท็บมอบพอดีจอไม่ต้องเลื่อน: คำเตือนสั้นบรรทัดเดียว + ระยะห่างแคบลง */
  #windows .chr-wshort { display: inline; } #windows .chr-wfull { display: none; }
  #windows .tab-give .chr-act { gap: 4px; }
  #windows .chr-onscr { margin: 0 2px; font-size: var(--fs-xs, 12px); line-height: 1.2; }
  #windows .tab-give .chr-warn { line-height: 1.2; }
}
/* จอเตี้ย+แคบ (667): ชื่อชั้นอังกฤษไม่ล้นปุ่ม · แถวจำนวน+ซ่อนชื่ออยู่บรรทัดเดียว · ตัดบรรทัดอธิบายชั้น (ปุ่มชั้นบอกชื่อแล้ว) */
@media (max-height: 520px) and (max-width: 720px) {
  #windows .chr-tb img { width: 28px; height: 28px; }
  #windows .chr-tb span { flex: 1 1 0; }
  #windows .chr-tb small.chr-tbs { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  #windows .tab-give .chr-row2 { flex-wrap: nowrap; gap: 4px 8px; }
  #windows .tab-give .chr-num { width: 72px; }
  #windows .tab-give .chr-anon small { display: none; }
  #windows .tab-give .chr-tline { display: none; }
  #windows .tab-give .chr-go { --bh: 46px; }
}
/* คอม (เมาส์ ปัดข้างไม่ถนัด): ป้ายช่องขึ้นบรรทัดใหม่แทนการปัด · 3 ช่อง = 2 แถว → ยกตัวละครพ้นแผ่นชื่อ */
@media (hover: hover) and (pointer: fine) and (min-height: 521px) {
  #windows .chr-plate .chr-chs { flex-wrap: wrap; justify-content: center; overflow: visible; padding-right: 1px; -webkit-mask-image: none; mask-image: none; }
  #windows .chr-plate .chr-chm { max-width: 100%; }
  #windows .chr-scene.chs3 .chr-fig { bottom: 160px; }
}
/* คอม/จอสูง: 3 อันดับของสัปดาห์ค้างบนเวที (ซ้ายของตัวละคร — ตัวละคร+แท่นขยับไปขวา ไม่ถูกทับ) */
#windows .chr-top3 { position: absolute; z-index: 4; left: 8px; top: 50px; width: 148px; box-sizing: border-box; display: none; flex-direction: column; gap: 4px; padding: 7px 7px 6px; border-radius: 14px;
  background: linear-gradient(#fffdf6f2, #fbf0d4f2); box-shadow: inset 0 0 0 1.5px #e3cf9e, 0 3px 8px #0004; color: var(--lb-ink, #493820); }
#windows .chr-top3 h5 { margin: 0; font: 800 var(--fs-xs, 12px)/1.2 var(--font-head, sans-serif); color: #2f6f73; text-align: center; }
#windows .chr-top3 ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
#windows .chr-top3 li { display: flex; align-items: center; gap: 4px; min-width: 0; padding: 2px 4px 2px 2px; border-radius: 10px; background: #fffdf6; box-shadow: inset 0 0 0 1px #ece0c2; }
#windows .chr-top3 li.me { box-shadow: inset 0 0 0 2px #2f6f73; }
#windows .chr-top3 .chr-fmd { width: 20px; height: 20px; }
#windows .chr-top3 .rk-face, #windows .chr-top3 .rk-face img { flex: none; width: 28px; height: 28px; border-radius: 50%; }
#windows .chr-top3 .rk-face { background: #f3e3b4; box-shadow: 0 0 0 1.5px #dcbf78; }
#windows .chr-top3 .chr-fanon { background: #d9cfb8 url(assets/ui/cheer/silhouette.webp) 50% 18% / 150% auto no-repeat; opacity: .75; }
#windows .chr-top3 li span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
#windows .chr-top3 li b { display: flex; align-items: center; gap: 2px; min-width: 0; font-size: var(--fs-xs, 12px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#windows .chr-top3 li b .chr-fbg svg { width: 14px; height: 14px; }
#windows .chr-top3 li small { font-size: var(--fs-xs, 12px); color: #7a6540; }
#windows .chr-t3all { min-height: 30px; border: 0; border-radius: 999px; cursor: pointer; background: #2f6f73; color: #fff6df; font: 800 var(--fs-xs, 12px)/1 var(--font-head, sans-serif); }
#windows .chr-t3all:hover { filter: brightness(1.08); }
html.touch-ui #windows .chr-t3all { min-height: var(--btn-h, 44px); }
@media (min-height: 521px) {
  #windows .chr-top3 { display: flex; }
  /* 15 พ.ย. เจ้าของ: เวทีอยู่กลางเสมอ — แผงแฟนตัวยงบังขอบได้นิดหน่อยไม่เป็นไร (เดิม left:150px ดันตัวละครไปขวา) */
  #windows .chr-scene.has-t3 .chr-fanb b { display: none; }   /* ชื่ออันดับ 1 อยู่ในแผงแล้ว */
}

/* ══ บัตรครีเอเตอร์ + สถานะครีเอเตอร์ (ใบ creator-onboard-1114 · client/creator-pass.js · cheer-window.js creatorCard) ══
   หน้ายืนยัน = role dialog ลูกตรง <body> (ui-root liftAsk ยกชั้น Popup) · กว้าง S ของกฎกลาง · เนื้อเลื่อนในตัว · ปุ่ม ≥ 44/48px */
#windows .chr-crt { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; padding: 12px; border-radius: 14px; background: #eef7f4; box-shadow: inset 0 0 0 1.5px #9cc8bd; color: var(--lb-ink, #493820); }
#windows .chr-crt.off { background: #fbefe9; box-shadow: inset 0 0 0 1.5px #e3b3a3; }
#windows .chr-crt-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--fs-name, 18px); }
#windows .chr-crt small { font-size: var(--fs-sm, 14px); color: #5d6b66; }
#windows .chr-crt .chr-web { flex: 1 1 auto; }
html[data-theme="dark"] #windows .chr-crt { background: #24332f; color: #f1e6cc; } html[data-theme="dark"] #windows .chr-crt.off { background: #3a2a25; }
.crp-wrap { position: fixed; inset: 0; z-index: var(--z-popup, 300); display: flex; align-items: center; justify-content: center; padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); background: #1d150b8c; }
/* หน้ายืนยันบัตรครีเอเตอร์ (creator-pass.js · creator-ux-1115): หัว = เป็นครีเอเตอร์ของช่องไหน + ได้อะไร · ข้อตกลง 5 ข้อหัวสั้น · ปุ่มหลัก "ยอมรับ" อยู่ล่างเสมอ (ไม่มีช่องติ๊กที่ต้องเลื่อนหา)
   มือถือแนวนอน = กว้างขึ้น ข้อตกลง 2 คอลัมน์ ให้เห็นเกือบครบโดยไม่เลื่อน */
.crp { width: min(92vw, 520px); max-width: 100%; max-height: 100%; display: flex; flex-direction: column; border-radius: 18px; background: linear-gradient(#fffaf0, #f6e9c8); box-shadow: inset 0 0 0 2px #e8b64a, 0 8px 24px #0006; color: #493820; overflow: hidden; }
.crp-h { display: flex; align-items: center; gap: 12px; padding: 12px 10px 10px 14px; background: linear-gradient(#fdf1d2, #f8e4b4); border-bottom: 1px solid #e3cf9f; }
.crp-h img { width: 56px; height: 56px; flex: none; }
.crp-h > div { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.crp-h b { font-size: var(--fs-title, 20px); line-height: 1.25; } .crp-h b em { font-style: normal; color: #2f6f73; }
@media (max-width: 520px) { .crp-h b em { display: block; } }   /* แนวตั้ง: ชื่อช่องขึ้นบรรทัดของตัวเอง ไม่ตัดกลางชื่อ */
.crp-h small { font-size: var(--fs-sm, 14px); color: #6b5a3a; font-weight: 700; }
.crp-x { width: var(--btn-h, 44px); height: var(--btn-h, 44px); flex: none; align-self: flex-start; border-radius: 50%; border: 1px solid #d9c79e; background: #fffdf6; font-size: var(--fs-title, 20px); line-height: 1; }
.crp-b { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-body, 16px); }
.crp-lead { margin: 0; font-size: var(--fs-sm, 14px); font-weight: 700; color: #8a6a2c; }
.crp-t { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 6px; }
.crp-t li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 12px; background: #fffdf6; border: 1px solid #ece0c2; }
.crp-t li:first-child { background: #eef7f4; border-color: #9cc8bd; }
.crp-t i { font-style: normal; font-size: var(--fs-name, 18px); line-height: 1.3; flex: none; }
.crp-t span { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .crp-t b { font-size: var(--fs-body, 16px); line-height: 1.3; } .crp-t small { font-size: var(--fs-sm, 14px); line-height: 1.4; color: #6b5a3a; }
.crp-ver { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; font-size: var(--fs-xs, 12px); color: #8b7a58; }
.crp-link { font-size: var(--fs-sm, 14px); color: #2f6f73; font-weight: 700; }
.crp-f { display: flex; gap: 8px; padding: 10px 14px 12px; border-top: 1px solid #e3cf9f; }
.crp-btn { flex: 1; min-height: var(--btn-h, 44px); border-radius: 12px; border: 1px solid #d9c79e; background: #fffdf6; font-size: var(--fs-body, 16px); font-weight: 700; color: #6b5a3a; }
.crp-btn.main { flex: 2; min-height: var(--btn-h-main, 52px); font-size: var(--fs-btn-main, 18px); background: #2f6f73; border-color: #24585b; color: #fff; box-shadow: 0 3px 0 #1d4a4d; }
.crp-btn:disabled { opacity: 0.6; }
html.touch-ui .crp-btn, html.touch-ui .crp-x { min-height: var(--btn-h-touch, 48px); }
html.touch-ui .crp-btn.main { min-height: var(--btn-h-main, 52px); }
@media (max-height: 460px) {
  .crp-h { padding: 8px 10px 8px 12px; } .crp-h img { width: 44px; height: 44px; }
  .crp-b { padding: 8px 12px; gap: 6px; } .crp-t li { padding: 6px 8px; } .crp-f { padding: 8px 12px 10px; }
}
@media (max-height: 460px) and (min-width: 640px) {
  .crp { width: min(96vw, 800px); }
  .crp-t { grid-template-columns: 1fr 1fr; }
  .crp-t li:first-child { grid-column: 1 / -1; }
}
html[data-theme="dark"] .crp { background: #2e2a22; color: #f1e6cc; } html[data-theme="dark"] .crp-t li, html[data-theme="dark"] .crp-btn:not(.main), html[data-theme="dark"] .crp-x { background: #3a3326; color: #f1e6cc; } html[data-theme="dark"] .crp-t small { color: #d8c9a4; }

/* ── ช่องของฉัน 4 แท็บย่อย · โชว์ไลฟ์ (ใบ creator-live-1114 · cheer-window.js clTab) — กรอบ .twf เดิม · ตัวเลขใหญ่อ่านออกในจอสตรีมที่ถูกย่อ · ไม่มีเงินบาทบนแท็บโชว์ ── */
#windows .chr-follow-slot:empty, #windows .cl-slot:empty { display: none; }   /* ที่ว่างให้ทีม B (เดินตาม/วาร์ป · ตั้งค่ารับคนตาม) */
#windows .cl { display: flex; flex-direction: column; gap: 10px; min-height: 100%; color: var(--lb-ink, #493820); }
#windows .cl-subs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#windows .cl-subs button { display: inline-flex; align-items: center; gap: 6px; min-height: var(--btn-h, 44px); padding: 0 14px; border-radius: 12px; border: 1.5px solid #e3cf9e; background: #fffdf6; color: var(--lb-ink, #493820);
  font: 700 var(--fs-body, 16px)/1 var(--font-head, sans-serif); cursor: pointer; }
#windows .cl-subs button.on { background: #2f6f73; border-color: #2f6f73; color: #fff; box-shadow: 0 2px 0 #1f4f52; }
#windows .cl-subs button i { font-style: normal; }
#windows .cl-safe { margin-left: auto; padding: 6px 12px; border-radius: 12px; border: 1.5px solid #e3cf9e; background: #fffdf6; font-size: var(--fs-sm, 14px); font-weight: 700; color: #2f6f73; }
#windows .cl-livebar { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 16px; color: #fff; background: linear-gradient(90deg, #5a1f2c, #7a2b35 55%, #4a2030); box-shadow: inset 0 0 0 1.5px #c9576655, 0 2px 0 #3a141c; }
#windows .cl-livebar:not(.on) { background: linear-gradient(90deg, #4a5658, #5d6a6b); box-shadow: inset 0 0 0 1.5px #ffffff33; }
#windows .cl-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: #e0413f; font: 800 var(--fs-name, 18px)/1 var(--font-head, sans-serif); letter-spacing: .5px; box-shadow: 0 0 12px #ff5a5a88; white-space: nowrap; }
#windows .cl-pill i { width: 12px; height: 12px; border-radius: 50%; background: #fff; animation: cl-blink 1.6s ease-in-out infinite; }
#windows .cl-pill.off { background: #ffffff2a; box-shadow: none; font-size: var(--fs-body, 16px); }
#windows .cl-pill.off i { background: #c8d0d0; animation: none; }
@keyframes cl-blink { 50% { opacity: .35; } }
#windows .cl-up { font: 800 var(--fs-hero, 24px)/1 var(--font-head, sans-serif); font-variant-numeric: tabular-nums; }
#windows .cl-ch { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font: 700 var(--fs-title, 20px)/1.1 var(--font-head, sans-serif); overflow: hidden; }
#windows .cl-ch b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#windows .cl-chic { width: 26px; height: 26px; flex: none; }
#windows .cl-btn { margin-left: auto; min-height: var(--btn-h, 44px); padding: 0 16px; border-radius: 12px; border: 1.5px solid #ffffff66; background: #ffffff1f; color: #fff; font: 700 var(--fs-body, 16px)/1 var(--font-head, sans-serif); cursor: pointer; white-space: nowrap; }
#windows .cl-btn.go { background: linear-gradient(#ffd977, #e8b64a); color: #5a3a08; border-color: #fff4d6; box-shadow: 0 2px 0 #b98a24; }
#windows .cl-stats { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 10px; }
#windows .cl-stat { position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px; border-radius: 16px; background: #fffdf6; box-shadow: inset 0 0 0 1.5px #ecd9a8, 0 2px 0 #e3cf9e88; }
#windows .cl-stat small { font-size: var(--fs-sm, 14px); font-weight: 700; color: #6d5a36; }
#windows .cl-stat b { display: flex; align-items: center; gap: 6px; font: 800 calc(var(--fs-hero, 24px) * 1.55)/1.05 var(--font-head, sans-serif); font-variant-numeric: tabular-nums; color: #3e3120; white-space: nowrap; }
#windows .cl-stat b small { font-size: var(--fs-title, 20px); color: #9a8762; }
#windows .cl-stat b img { width: 40px; height: 40px; }
#windows .cl-stat em { font-style: normal; font-size: var(--fs-sm, 14px); font-weight: 700; color: #2f6f73; }
#windows .cl-stat.gold { background: linear-gradient(#fff4cf, #f8df95); box-shadow: inset 0 0 0 2px #e8b64a, 0 2px 0 #c9993a; }
#windows .cl-stat.gold b { font-size: calc(var(--fs-hero, 24px) * 1.8); color: #8a5a06; }
#windows .cl-stat.gold em { color: #7a6a2a; }
#windows .cl-sic { position: absolute; top: 8px; right: 10px; font-style: normal; font-size: var(--fs-hero, 24px); }
#windows .cl-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 10px; align-items: start; }
#windows .cl-box { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 16px; background: #fffdf6; box-shadow: inset 0 0 0 1.5px #e3cf9e; min-width: 0; }
#windows .cl-box > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
#windows .cl-box > header b { font: 800 var(--fs-title, 20px)/1.2 var(--font-head, sans-serif); }
#windows .cl-box > header small { font-size: var(--fs-sm, 14px); color: #7a6a4a; }
#windows .cl-box > header em { margin-left: auto; font: 800 var(--fs-title, 20px)/1 var(--font-head, sans-serif); font-style: normal; color: #2f6f73; }
#windows .cl-band { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: linear-gradient(#fff4cf, #fbe6a6); box-shadow: inset 0 0 0 1.5px #e8b64a; }
#windows .cl-band.ok { background: linear-gradient(#e6f6ea, #c9ecd2); box-shadow: inset 0 0 0 1.5px #5aa86e; }
#windows .cl-pp { flex: none; font: 800 var(--fs-title, 20px)/1 var(--font-head, sans-serif); color: #8a5a06; }
#windows .cl-pp s { color: #a99470; font-size: var(--fs-body, 16px); }
#windows .cl-band small { font-size: var(--fs-sm, 14px); font-weight: 700; color: #6d5a1a; }
#windows .cl-band .cl-bar { flex: 1 1 60px; }
#windows .cl-bar { display: block; height: 10px; border-radius: 999px; background: #efe3c4; overflow: hidden; }
#windows .cl-bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4f9a9c, #2f6f73); }
#windows .cl-band .cl-bar > i { background: linear-gradient(90deg, #ffd977, #e8a92a); }
#windows .cl-ql { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
#windows .cl-q { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 12px; background: #fffdf6; box-shadow: inset 0 0 0 1.5px #ece0c2; }
#windows .cl-q.ok { background: #eef8f0; box-shadow: inset 0 0 0 1.5px #a9d6b3; }
#windows .cl-qi { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #f3ead2; font-style: normal; font-size: var(--fs-name, 18px); }
#windows .cl-q.ok .cl-qi { background: #d6eedc; }
#windows .cl-qt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#windows .cl-qt b { font: 700 var(--fs-body, 16px)/1.25 var(--font-head, sans-serif); }
#windows .cl-qt small { font-size: var(--fs-xs, 12px); color: #7a6a4a; }
#windows .cl-qt .cl-bar { height: 6px; margin-top: 2px; }
#windows .cl-who { color: #2f6f73 !important; overflow-wrap: anywhere; }
#windows .cl-qn { flex: none; font: 800 var(--fs-name, 18px)/1 var(--font-head, sans-serif); font-style: normal; font-variant-numeric: tabular-nums; color: #3e3120; }
#windows .cl-q.ok .cl-qn { color: #2f8a4a; }
#windows .cl-foot { margin: 0; font-size: var(--fs-xs, 12px); color: #7a6a4a; }
#windows .cl-rl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
#windows .cl-rl li { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 8px; border-radius: 12px; background: #fffdf6; box-shadow: inset 0 0 0 1.5px #ece0c2; }
#windows .cl-rl li.new { background: linear-gradient(90deg, #fff3c8, #fffdf6); box-shadow: inset 0 0 0 2px #e8b64a; }
#windows .cl-rart { flex: none; width: 40px; height: 40px; display: grid; place-items: center; font-style: normal; font-size: var(--fs-title, 20px); object-fit: contain; }
#windows .cl-rl span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#windows .cl-rl b { font: 800 var(--fs-name, 18px)/1.2 var(--font-head, sans-serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#windows .cl-rl small { font-size: var(--fs-xs, 12px); color: #7a6a4a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#windows .cl-rl em { flex: none; font: 800 var(--fs-title, 20px)/1 var(--font-head, sans-serif); font-style: normal; color: #a8700c; font-variant-numeric: tabular-nums; }
#windows .cl-rl li.fan em, #windows .cl-fan { color: #2a8f8a; font-weight: 800; }
#windows .cl-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
#windows .cl-top span { display: flex; flex-direction: column; align-items: center; padding: 6px 4px; border-radius: 12px; background: #fff8e2; box-shadow: inset 0 0 0 1.5px #ecd9a8; min-width: 0; }
#windows .cl-top i { font-style: normal; }
#windows .cl-top b { font: 700 var(--fs-sm, 14px)/1.2 var(--font-head, sans-serif); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#windows .cl-top small { font-size: var(--fs-xs, 12px); color: #7a6a4a; }
#windows .cl-empty { padding: 12px 4px; text-align: center; }
#windows .cl-qpage { display: flex; flex-direction: column; gap: 10px; }
#windows .cl-week { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
#windows .cl-week li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 12px; background: #fffdf6; box-shadow: inset 0 0 0 1.5px #ece0c2; }
#windows .cl-week li.ok { background: #eef8f0; box-shadow: inset 0 0 0 1.5px #5aa86e; }
#windows .cl-week li.now { box-shadow: inset 0 0 0 2px #2f6f73; }
#windows .cl-week small { font-size: var(--fs-xs, 12px); color: #7a6a4a; }
#windows .cl-week b { font: 800 var(--fs-name, 18px)/1 var(--font-head, sans-serif); }
#windows .cl-week em { font-style: normal; font-size: var(--fs-xs, 12px); font-weight: 700; color: #2f8a4a; }
#windows .cl-rules { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-sm, 14px); color: #5d4c2e; line-height: 1.45; }
#windows .cl-warnlive { margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; background: #fff0e0; box-shadow: inset 0 0 0 1.5px #e9b27a; font-size: var(--fs-sm, 14px); font-weight: 700; color: #8a4a12; }
#windows .cl-fanbox { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 10px; border-radius: 12px; background: #eef8f6; box-shadow: inset 0 0 0 1.5px #9fd2cc; }
#windows .cl-fanh { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; }
#windows .cl-fanh b { font: 700 var(--fs-body, 16px)/1.2 var(--font-head, sans-serif); }
#windows .cl-fanh small, #windows .cl-fan0 { font-size: var(--fs-xs, 12px); color: #4f6f6c; }
#windows .cl-fan0 { flex-basis: 100%; }
#windows .cl-fanbtn { border-color: #9fd2cc; color: #1f6b66; }
#windows .cl-fanbtn.arm { background: #2a8f8a; color: #fff; border-color: #2a8f8a; }

/* จอเตี้ย (มือถือแนวนอน 844×390): แท็บย่อยเหลือไอคอนแถวเดียวกับแถบ LIVE · ซ้าย = ภารกิจ · ขวา = แต้มวันนี้ + คนตาม/ปาร์ตี้ + เชียร์ล่าสุด · ซ่อน Top 3/คำอธิบายย่อย */
@media (max-height: 520px) {
  #windows .cl { gap: 6px; }
  #windows .cl-subs { gap: 6px; flex-wrap: nowrap; }
  #windows .cl-subs button { width: var(--btn-h, 44px); padding: 0; justify-content: center; }
  #windows .cl-subs button span, #windows .cl-safe { display: none; }
  #windows .cl.sub-show { display: grid; grid-template-columns: auto minmax(0, .8fr) minmax(0, 1fr); grid-template-areas: "nav bar bar" "q q s" "q q r"; grid-template-rows: auto auto 1fr; gap: 6px; align-items: start; }
  #windows .cl.sub-show .cl-show, #windows .cl.sub-show .cl-cols { display: contents; }
  #windows .cl.sub-show .cl-subs { grid-area: nav; align-self: center; }
  #windows .cl.sub-show .cl-livebar { grid-area: bar; padding: 4px 6px; gap: 8px; border-radius: 12px; }
  #windows .cl.sub-show .cl-quest { grid-area: q; }
  #windows .cl.sub-show .cl-stats { grid-area: s; grid-template-columns: 1fr 1fr; gap: 6px; }
  #windows .cl.sub-show .cl-recent { grid-area: r; }
  #windows .cl-stat.gold { grid-column: 1 / -1; }
  #windows .cl-stat:nth-child(2), #windows .cl-sic, #windows .cl-stat em, #windows .cl-top, #windows .cl-foot, #windows .cl-show .cl-box > header small, #windows .cl-show .cl-qt small, #windows .cl-rl small { display: none; }
  #windows .cl-stat { padding: 4px 10px; border-radius: 12px; }
  #windows .cl-stat b { font-size: calc(var(--fs-hero, 24px) * 1.05); }
  #windows .cl-stat.gold b { font-size: calc(var(--fs-hero, 24px) * 1.2); }
  #windows .cl-stat b img { width: 28px; height: 28px; }
  #windows .cl-pill { padding: 4px 10px; font-size: var(--fs-sm, 14px); }
  #windows .cl-up, #windows .cl-ch { font-size: var(--fs-body, 16px); }
  #windows .cl-btn { min-height: var(--btn-h, 44px); padding: 0 10px; font-size: var(--fs-sm, 14px); }
  #windows .cl-box { padding: 6px 8px; gap: 6px; border-radius: 12px; }
  #windows .cl-box > header b { font-size: var(--fs-body, 16px); }
  #windows .cl-band { padding: 4px 8px; gap: 6px; }
  #windows .cl-band small { font-size: var(--fs-xs, 12px); }
  #windows .cl-pp { font-size: var(--fs-body, 16px); }
  #windows .cl-q { padding: 4px 8px; gap: 8px; }
  #windows .cl-qi { width: 30px; height: 30px; }
  #windows .cl-qt b { font-size: var(--fs-sm, 14px); }
  #windows .cl-qn { font-size: var(--fs-body, 16px); }
  #windows .cl-rl li { padding: 3px 10px 3px 6px; }
  #windows .cl-rart { width: 30px; height: 30px; }
  #windows .cl-rl b { font-size: var(--fs-body, 16px); }
  #windows .cl-rl em { font-size: var(--fs-name, 18px); }
}

/* คนเชียร์ใหม่ระหว่างเปิดหน้าโชว์ไลฟ์: ชื่อใหญ่ในแถบ LIVE แทนป้ายลอย (ไม่ทับหัวหน้าต่าง/แท็บ · หัวหน้า 14 พ.ย.) */
#windows .cl-flash { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 2px 14px 2px 4px; border-radius: 14px; background: linear-gradient(90deg, #fff4cf, #f8df95); color: #493820;
  box-shadow: inset 0 0 0 2px #e8b64a, 0 0 18px #ffd97799; animation: cl-pop .45s cubic-bezier(.2, 1.4, .4, 1) 1; }
#windows .cl-flash.fan { background: linear-gradient(90deg, #e6f7f4, #c2ebe4); box-shadow: inset 0 0 0 2px #5fb8ae, 0 0 18px #8fe0d699; }
#windows .cl-fart { flex: none; width: 52px; height: 52px; display: grid; place-items: center; object-fit: contain; font-style: normal; font-size: var(--fs-hero, 24px); }
#windows .cl-flash > span { display: flex; flex-direction: column; min-width: 0; }
#windows .cl-flash small { font: 700 var(--fs-sm, 14px)/1.1 var(--font-head, sans-serif); color: #2f6f73; }
#windows .cl-flash b { font: 900 calc(var(--fs-hero, 24px) * 1.25)/1.1 var(--font-head, sans-serif); color: #8a4f00; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#windows .cl-flash em { margin-left: auto; flex: none; font: 800 var(--fs-title, 20px)/1 var(--font-head, sans-serif); font-style: normal; color: #493820; white-space: nowrap; }
@keyframes cl-pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
/* หน้าต่างแต้มเชียร์เปิดอยู่: แถบคนเชียร์ล่าสุด/แฟนตัวยง (ลอยใต้มินิแมพ) ซ่อน — ข้อมูลเดียวกันอยู่ในหน้าต่าง · ป้ายใหญ่/แถบบาง (แท็บอื่น) ย้ายลงล่างกลางจอ ย่อเล็ก ไม่บังแท็บ/ปุ่มหัวหน้าต่าง */
html:has(#windows [data-win="cheer"]:not([hidden])) #chr-liveside { display: none; }
html:has(#windows [data-win="cheer"]:not([hidden])) #chr-liveb, html:has(#windows [data-win="cheer"]:not([hidden])) #chr-livethin { top: auto; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 96px); transform: translate(-50%, 0) scale(.82); transform-origin: bottom center; }
@media (max-height: 520px) {
  #windows .cl-flash { gap: 6px; padding: 0 8px 0 2px; border-radius: 10px; }
  #windows .cl-fart { width: 34px; height: 34px; font-size: var(--fs-name, 18px); }
  #windows .cl-flash small { display: none; }
  #windows .cl-flash b { font-size: var(--fs-name, 18px); }
  #windows .cl-flash em { font-size: var(--fs-sm, 14px); }
  html:has(#windows [data-win="cheer"]:not([hidden])) #chr-liveb, html:has(#windows [data-win="cheer"]:not([hidden])) #chr-livethin { bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); transform: translate(-50%, 0) scale(.7); }
}
html[data-theme="dark"] .crp-h { background: #3a3326; } html[data-theme="dark"] .crp-h small, html[data-theme="dark"] .crp-lead { color: #d8c9a4; } html[data-theme="dark"] .crp-t li:first-child { background: #24332f; } html[data-theme="dark"] .crp-h b em { color: #8fd0c4; }
#windows .cl-welcome { margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; background: #eef8f0; box-shadow: inset 0 0 0 1.5px #5aa86e; font: 700 var(--fs-body, 16px)/1.3 var(--font-head, sans-serif); color: #2f6a3e; }   /* creator-ux-1115: ยืนยันเป็นครีเอเตอร์ในหน้าต่าง (แทนป้ายลอยทับแถบแท็บ) */
