/* กรอบหน้าต่างใหญ่ "แบบตู้" — คลาสกลางชุดเดียว (cheer-coupon-1112 2จ รอบ 2 · 13 พ.ย.)
   ใช้ร่วม: ตู้ระฆังโชค (#lucky-bell .lb-win · lucky-bell.css) · ตู้กาชา cap2 (.lb-win.cap2 · capsule2.css) · แต้มเชียร์ (.twf · cheer-window.js / ui-cheer.css)
   ที่มา: ย้ายตัวอักษรเดิมมาจาก lucky-bell.css (กรอบ · หัว · แท็บในหัว · ชิป · ปุ่มกลม · จอเตี้ย · จอสัมผัส) + capsule2.css (หัวเขียวเข้ม)
     selector/specificity เดิมทุกตัว — ไฟล์นี้โหลดใน <head> ก่อน lucky-bell.css/capsule2.css (สองไฟล์นั้นต่อท้าย head ตอนเปิดตู้)
     และก่อน ui-popup-polish.css (ใน body) → ลำดับชนะเท่าเดิม หน้าตู้ไม่เปลี่ยน (ภาพก่อน/หลัง design-briefs/cheer-coupon-1112 · 2จ รอบ 2)
   .twf = รากกรอบที่ไม่ใช่ #lucky-bell: ได้ตัวแปรสี --lb-* + พื้นกระดาษ + หัวเขียวแบบ cap2 · ขนาด/ตำแหน่งกรอบเป็นของหน้าต่างเจ้าของ (ไม่อยู่ที่นี่)
   แก้กฎในไฟล์นี้ = กระทบตู้ทั้งสอง + หน้าต่างเชียร์ → ถ่ายภาพเทียบทั้งสามหน้า
   REVIEW-2 เบา: ไม่ใช้ :is(#lucky-bell, .twf) แล้ว — :is() ให้ .twf หนักระดับ id โดยไม่ตั้งใจ · ตัวแปรสี = รายการ selector ธรรมดา
   · จอสัมผัส: ฝั่งตู้ = #lucky-bell เท่าเดิม (ตู้ไม่เปลี่ยน) · ฝั่งเชียร์เขียนชัดว่า "#windows .twf" ชนะ ui-cheer.css (#windows .twf … --btn-h 48)
     โดยตั้งใจ = หัวเชียร์บนจอสัมผัสใช้ปุ่ม 44 แบบตู้ (ภาพที่หัวหน้าผ่าน 13 พ.ย.) · :is(.lb-win.cap2, .twf) ข้างล่างเป็นระดับคลาส ไม่ทับอะไร คงไว้ */
#lucky-bell, .twf { --lb-navy: #14243b; --lb-navy2: #1f3a5a; --lb-teal: #2f6f73; --lb-teal2: #3f8a8d; --lb-gold: #e8b64a; --lb-gold2: #ffd96a; --lb-cream: #fff9eb;
  --lb-paper: #f7ecd2; --lb-ink: #493820; --lb-ink2: #7a6540; }
:is(.lb-win, .twf) {
  background: linear-gradient(#fffaf0, #fbf1da); border: 3px solid #d9b870; border-radius: 22px; color: var(--lb-ink); font-family: var(--font, sans-serif);
  box-shadow: 0 0 0 1px #8a6a2a55, 0 18px 60px #000a, inset 0 0 0 2px #fff7df; }

/* ── หัว: ไอคอน · ชื่อ · แท็บ · ชิป · ? · × ── */
.lb-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 14px; min-height: 66px; color: #fffdf4;
  background: url(assets/ui/luckybell/night.webp) center 30% / cover, var(--lb-navy2); border-bottom: 3px solid var(--lb-gold); }
.lb-head::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #0d1a2ae0, #0d1a2a90 55%, #0d1a2ac0); pointer-events: none; }
.lb-head > * { position: relative; }
.lb-bellic { width: 46px; height: 46px; flex: none; background: url(assets/ui/luckybell/bell.webp) center / contain no-repeat; filter: drop-shadow(0 2px 4px #0008); }
.lb-title { min-width: 0; flex: 0 1 auto; }
.lb-title b { display: block; font: 700 24px/1.1 var(--font-head, sans-serif); color: #fff3d0; text-shadow: 0 2px 0 #1a2f45, 0 3px 8px #000a; white-space: nowrap; }
.lb-title small { display: block; font-size: 13px; color: #ffe7b0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-tabs { display: flex; gap: 4px; padding: 4px; margin: 0 auto; border-radius: 999px; background: #0b162699; box-shadow: inset 0 0 0 1px #e8b64a55; }
.lb-tabs button { min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: #f3e6c4; cursor: pointer; font: 700 15px/1 var(--font, sans-serif); }
.lb-tabs button:hover { background: #ffffff14; }
.lb-tabs button.on { background: linear-gradient(#fffdf4, #f4e3b8); color: var(--lb-teal); box-shadow: 0 2px 6px #0006, inset 0 0 0 1.5px var(--lb-gold); }
.lb-cur { display: flex; align-items: center; gap: 8px; flex: none; }
.lb-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 8px; border: 0; border-radius: 999px; background: linear-gradient(#fffef8, #f4e6c3);
  box-shadow: inset 0 0 0 2px var(--lb-gold), 0 2px 6px #0005; font: 700 17px/1 var(--font-head, sans-serif); color: #2f5fa0; }
.lb-pill.chips { color: #8a5a10; }
.lb-pill.gems { cursor: pointer; padding-right: 4px; }
.lb-round { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; cursor: pointer; background: linear-gradient(#fffef8, #f0dfb6); color: #6a4a1a;
  font: 700 22px/1 var(--font-head, sans-serif); box-shadow: inset 0 0 0 2px var(--lb-gold), 0 2px 6px #0005; }
.lb-round.lb-help { font-size: 19px; color: var(--lb-teal); }

/* ── โทนหัวเขียวเข้ม (ตู้กาชา cap2 · หน้าต่างเชียร์): ไม้ teal ขอบทอง ── */
:is(.lb-win.cap2, .twf) { background: linear-gradient(#fffaf0, #f8ecd0); }
:is(.lb-win.cap2, .twf) .lb-head { background: linear-gradient(#3a8589, #2a6468); border-bottom: 3px solid #e8b64a; }
:is(.lb-win.cap2, .twf) .lb-head::before { background: linear-gradient(90deg, #1d4d5066, #1d4d5000 40%, #1d4d5044); }
:is(.lb-win.cap2, .twf) .lb-title small { color: #d8f1e6; }
:is(.lb-win.cap2, .twf) .lb-tabs { background: #1d4d5099; }

/* ── จอเตี้ย (แนวนอน ~390px สูง) ── */
@media (max-height: 520px) {
  .lb-head { min-height: 46px; gap: 8px; padding: 3px 6px 3px 10px; }
  .lb-bellic { width: 32px; height: 32px; }
  .lb-title b { font-size: 18px; }
  .lb-title small { font-size: 11.5px; }
  .lb-tabs { padding: 3px; }
  .lb-tabs button { min-height: 34px; padding: 0 11px; font-size: 14px; }
  .lb-pill { min-height: 32px; font-size: 15px; padding: 0 9px 0 6px; }
  .lb-round { width: 36px; height: 36px; font-size: 19px; }
}

/* ── จอสัมผัส: ปุ่มในหัว ≥ 44px ── */
html.touch-ui #lucky-bell .lb-head, html.touch-ui #windows .twf .lb-head { min-height: 52px; padding-block: 3px; }
html.touch-ui #lucky-bell .lb-tabs, html.touch-ui #windows .twf .lb-tabs { padding: 3px; flex: 0 1 auto; min-width: 0; }
html.touch-ui #lucky-bell .lb-tabs button, html.touch-ui #windows .twf .lb-tabs button { min-height: 44px; min-width: 44px; padding: 0 12px; white-space: nowrap; }
html.touch-ui #lucky-bell .lb-round, html.touch-ui #windows .twf .lb-round { width: 44px; height: 44px; }
html.touch-ui #lucky-bell .lb-pill.gems, html.touch-ui #windows .twf .lb-pill.gems { min-height: 44px; }
