/* CROWNANO — ขึ้นโครง 5
   ต้นแบบเลย์เอาต์: twofortwocakes.com
   ธีม: ขาว + ทอง (ผู้ใช้สั่งเปลี่ยนจากดำ-แดงเลือดนก-ทอง 30 ก.ย. 2026)
   ชื่อคลาสชุดที่ 4 (ไม่ใช้ซ้ำกับงาน 1–4): frame topline crest navrow drawer ribbon seam
   plate hatch lane tag-pill shelf leaf qa reel baseline buoy ingot essay solo related */

:root {
  --paper: #ffffff;
  --cream: #fbf6ea;
  --cream-2: #f4e8c9;
  --line: #e6d3a3;
  --gold-hi: #ffe38a;
  --gold-mid: #e3b94b;
  --gold: #c9981f;
  --gold-deep: #8a6212;
  --gold-dark: #6b4a0c;
  --ink: #2a2114;
  --muted: #6e6250;
  --frame: 1140px;
  --r-img: 14px;
  --shadow: 0 6px 22px rgba(138, 98, 18, .12);
  --font: "Kanit", "Leelawadee UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.75 var(--font);
  color: var(--ink);
  background: var(--paper);
}
/* รูปพื้นหลังจากต้นแบบ twofortwocakes (ผู้ใช้สั่ง 30 ก.ย. แทนลายน้ำโลโก้)
   รูปต้นฉบับเป็นโทนมืด ถ้าแค่คลุมม่านขาวจะออกเทาหม่น → กลับสี + ย้อมทอง ให้เป็นลายเส้นทองจาง ๆ บนพื้นขาว
   ใช้เลเยอร์ fixed แทน background-attachment เพราะมือถือ iOS ไม่รองรับ */
body { background: #fffdf7; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url("/assets/img/bg-main.webp") center / cover no-repeat;
  filter: invert(1) sepia(.8) saturate(1.4) hue-rotate(-8deg) brightness(1.02);
  opacity: .55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); }
a:hover { color: var(--gold); }
p { margin: 0 0 1em; }
figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.ico { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* หัวข้อทุกระดับ = ตัวอักษรทองไล่เฉด (โทนเข้มให้อ่านชัดบนพื้นขาว) */
h1, h2, h3 {
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 .6em;
  background: linear-gradient(180deg, #c9981f 0%, #7a5510 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold-deep);
}
h1 { font-size: clamp(26px, 3.4vw, 36px); text-align: center; }
h2 { font-size: 23px; text-align: center; }
h3 { font-size: 20px; }
strong { color: var(--gold-deep); font-style: italic; }

.frame { width: min(var(--frame), 100% - 32px); margin-inline: auto; }

/* ---------------------------------------------------------------- ปุ่มทอง */
.ingot {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 100%);
  color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(138, 98, 18, .28), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: transform .2s;
}
.ingot:hover { color: var(--ink); transform: scale(.96); }
.ingot--dark { background: var(--paper); color: var(--gold-deep); border: 1.5px solid var(--gold); }
.ingot--dark:hover { color: var(--gold-deep); }
.ingot--wide { width: 100%; justify-content: flex-start; padding: 12px 20px; }
.ingot--big { font-size: 20px; padding: 14px 36px; }
.ingot--pulse { animation: pulse 1.6s ease-in-out infinite; }
.ingot--bob { animation: bob 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------------------------------------------------------------- หัวเว็บ (แถบเดียว ติดหนึบ 20/60/20) */
/* หัวเว็บโทนทองไล่เฉดแบบเดียวกับปุ่มในลิ้นชักเมนู (ผู้ใช้สั่ง 2 ต.ค.) */
.topline {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 100%);
  border-bottom: 2px solid var(--gold-deep);
  box-shadow: 0 4px 16px rgba(107, 74, 12, .28), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.topline .crest-logo img { filter: drop-shadow(0 1px 2px rgba(42, 33, 20, .35)); }
/* ปุ่มสมัครบนหัวเว็บเปลี่ยนเป็นน้ำตาลเข้มตัวทอง ไม่ให้กลืนกับพื้นทอง */
.topline .ingot { background: linear-gradient(180deg, #4a3410 0%, var(--ink) 100%); color: var(--gold-hi); box-shadow: 0 4px 12px rgba(42, 33, 20, .35); }
.topline .ingot:hover { color: #fff; }
.topline-in { display: grid; grid-template-columns: 20% 60% 20%; align-items: center; min-height: 76px; padding-inline: 12px; }
.crest { display: flex; align-items: center; justify-content: center; gap: 10px; }
.crest-logo img { width: 160px; }
.crest-menu {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--gold-deep); background: rgba(255, 255, 255, .55); color: var(--ink); cursor: pointer;
  animation: pulse 2.2s ease-in-out infinite;
}
.navrow { display: flex; justify-content: center; position: relative; }
.navrow ul { display: flex; gap: 6px; }
.navrow a { display: block; padding: 8px 16px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; transition: background .2s, color .2s, transform .2s; }
/* บนพื้นทอง: หน้าปัจจุบัน/ชี้ = แคปซูลขาวโปร่ง ตัวน้ำตาลเข้ม (สีทองจะกลืนพื้น) */
.navrow a:hover, .navrow a[aria-current="page"] { color: var(--gold-dark); background: rgba(255, 255, 255, .6); }
.navrow a:hover { transform: scale(.95); }
.burger { display: none; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; }
.burger .ico { width: 28px; height: 28px; }
.topline-cta { display: flex; justify-content: center; }

/* ---------------------------------------------------------------- ลิ้นชักเมนูข้าง */
.drawer-veil { position: fixed; inset: 0; background: rgba(42, 33, 20, .55); z-index: 60; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 61;
  width: 340px; max-width: 88vw;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: 56px 26px 30px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream-2) 100%);
  border-right: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  box-shadow: 2px 8px 23px 3px rgba(42, 33, 20, .25);
  transform: translateX(-105%); transition: transform .3s ease;
  overflow-y: auto;
}
.drawer.is-open { transform: none; }
.drawer-x { position: absolute; top: 12px; right: 12px; background: none; border: 0; color: var(--gold-deep); cursor: pointer; padding: 6px; }
.drawer-x .ico { width: 26px; height: 26px; }
.drawer-logo img { width: 210px; }
.drawer-list { display: grid; gap: 12px; width: 100%; }
.drawer-duo { display: grid; gap: 12px; width: 100%; margin-top: auto; }

/* ---------------------------------------------------------------- ผืนพื้นหลัง */
.lane { padding-block: 34px; }
.lane--band {
  position: relative;
  border-block: 2px solid var(--gold-mid);
  isolation: isolate; overflow: hidden;
  background: linear-gradient(180deg, #fdf5dd 0%, #f3e0ae 100%);
}
/* รูปแถบที่สองของต้นแบบ ทำแบบเดียวกับพื้นหลังหลัก: กลับสี + ย้อมทอง */
.lane--band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("/assets/img/bg-band.webp") center / cover no-repeat;
  filter: invert(1) sepia(.8) saturate(1.4) hue-rotate(-8deg);
  mix-blend-mode: multiply; opacity: .45;
}
.lane--full { min-height: 100vh; }

/* ---------------------------------------------------------------- ฮีโร่ */
.opener { display: grid; gap: 18px; }
.opener-banner img { width: 100%; border-radius: 10px; }

.ribbon {
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(234deg, var(--gold-mid) 0%, var(--gold) 100%);
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.ribbon-track { display: inline-flex; animation: roll 26s linear infinite; }
.ribbon-track span { padding: 8px 60px 8px 0; color: var(--ink); font-weight: 500; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
@keyframes roll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- เส้นคั่นมีข้อความ */
.seam { display: flex; align-items: center; gap: 18px; width: 82%; margin: 30px auto 18px; }
.seam::before, .seam::after { content: ""; flex: 1; height: 1.5px; background: var(--gold-mid); }
.seam h3 { margin: 0; font-size: 23px; letter-spacing: .04em; text-transform: uppercase; }

/* ---------------------------------------------------------------- บล็อกรูป 40 / ข้อความ 60 */
.plate {
  display: grid; grid-template-columns: 40% 1fr; gap: 26px; align-items: center;
  margin-top: 36px; padding: 10px; border-radius: 10px;
}
.plate-pic img { width: 100%; border-radius: var(--r-img); box-shadow: var(--shadow); }
/* รูปพื้นโปร่งใส (ตัดขอบแล้ว) ไม่ต้องมีเงา/มุมมน */
.plate-pic--bare img { border-radius: 0; box-shadow: none; max-width: 820px; margin: 0 auto; filter: drop-shadow(0 10px 18px rgba(107, 74, 12, .25)); }
.plate-copy h3 { text-align: center; }
.plate--flip { grid-template-columns: 1fr 40%; }
.plate--flip .plate-pic { order: 2; }
.plate--stack, .plate--text { grid-template-columns: 1fr; }
.plate--stack .plate-copy, .plate--text .plate-copy { text-align: center; }
.plate--text { max-width: 980px; margin-inline: auto; }
.plate--glow { background: linear-gradient(180deg, var(--cream-2) 0%, rgba(255, 255, 255, 0) 60%); border: 1px solid var(--line); padding: 22px; }

.hatch {
  height: 20px; margin: 30px 0 0;
  background: repeating-linear-gradient(-45deg, transparent 0 8px, var(--gold-mid) 8px 9px);
  opacity: .7;
}

/* ---------------------------------------------------------------- ป้ายหัวข้อแคปซูล + การ์ดบทความ */
.tag-pill {
  margin: 44px 0 26px; padding: 6px 12px;
  border-radius: 15px;
  background: linear-gradient(178deg, var(--gold-hi) 0%, var(--gold) 100%);
  text-align: center; font-size: 23px; font-weight: 600; color: var(--ink);
}
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px 30px; }
.leaf { background: var(--paper); border: 1px solid var(--line); border-radius: 17px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.leaf-pic img { width: 100%; filter: brightness(.95); transition: filter .4s; }
.leaf:hover .leaf-pic img { filter: brightness(1.05); }
.leaf-body { padding: 20px 22px 0; display: flex; flex-direction: column; flex: 1; }
.leaf-title { margin: 0 0 8px; font-size: 19px; font-weight: 600; line-height: 1.5; }
.leaf-title a { color: var(--ink); text-decoration: none; }
.leaf-title a:hover { color: var(--gold-deep); }
.leaf-text { color: var(--muted); font-size: 15px; }
.leaf-more { color: var(--gold-deep); font-weight: 600; text-decoration: none; margin-bottom: 14px; }
.leaf-date { margin-top: auto; padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ---------------------------------------------------------------- FAQ */
.qa { margin-top: 20px; }
.qa-item { border-radius: 10px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(138, 98, 18, .06); margin-bottom: 12px; }
.qa-item summary { cursor: pointer; padding: 14px 44px 14px 18px; position: relative; list-style: none; }
.qa-item summary::-webkit-details-marker { display: none; }
.qa-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 24px; }
.qa-item[open] summary::after { content: "−"; }
.qa-item summary h3 { display: inline; margin: 0; font: inherit; font-weight: 500; font-size: 17px; }
.qa-item p { padding: 0 18px 16px; margin: 0; }

/* ---------------------------------------------------------------- หน้าย่อย */
.solo-h1 { margin-top: 10px; text-transform: uppercase; }
.solo-lead { text-align: center; max-width: 820px; margin: 0 auto 30px; }
.solo-pic { display: block; margin: 0 auto; max-width: 816px; }
.solo-pic img { width: 100%; border-radius: 10px; }
.solo-pic--small { max-width: 42%; }
.solo-cta { display: flex; justify-content: center; margin: 10px 0 20px; }
.solo { text-align: center; padding-top: 12vh; }
/* รูปโปร 1 แถว 3 รูป (ผู้ใช้สั่ง 1 ต.ค.) · มือถือเรียงลงทีละรูป เพราะ 3 รูปในจอแคบเล็กจนอ่านรายละเอียดโปรไม่ออก */
.promo-stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0 auto; }
.promo-stack img { width: 100%; border-radius: 10px; box-shadow: var(--shadow); }

/* ---------------------------------------------------------------- บทความ */
.essay { max-width: 900px; }
.essay-cover img { width: 90%; margin: 0 auto 24px; border-radius: 15px; }
.essay h1 { font-size: 33px; }
.essay-meta { text-align: center; color: var(--muted); font-size: 14px; }
.essay-body { text-align: center; padding: 12px; }
.essay-body h2 { font-size: 25px; margin-top: 1.4em; }
.essay-body h3 { font-size: 23px; }
.essay-body figure img { border-radius: 12px; margin: 10px auto 20px; }
.related { margin-top: 30px; padding: 20px 24px; border-radius: 12px; background: var(--cream); border: 1px solid var(--line); }
.related-title { font-weight: 600; margin-bottom: 8px; }
.related ul { list-style: disc; padding-left: 22px; }
.related a { color: var(--gold-deep); font-style: italic; }

/* ---------------------------------------------------------------- แถบโลโก้ค่ายเกม (หน้าแรก) */
/* แบบ C (ผู้ใช้เลือก 30 ก.ย.): พื้นแถบครีมเข้าธีมขาว แต่โลโก้แต่ละใบอยู่ในการ์ดเข้มขอบทอง
   เพราะโลโก้ค่ายส่วนใหญ่ทำมาสำหรับพื้นมืด (ตัวหนังสือขาว/ทอง) — วางบนครีมตรง ๆ จะหายหลายตัว */
.reel { --show: 8; overflow: hidden; padding: 12px 0; border-radius: 12px; background: linear-gradient(180deg, #fdf5dd 0%, #f3e0ae 100%); border: 1.5px solid var(--gold); }
.reel-track { display: flex; width: max-content; animation: roll 40s linear infinite; }
.reel-track li { width: calc(min(var(--frame), 100vw - 32px) / var(--show)); padding: 0 6px; display: flex; align-items: center; justify-content: center; }
/* การ์ดเข้มอยู่ที่ .chip (ตัวห่อ) ไม่ใช่ที่ img — filter ทำโลโก้ขาวจะได้ไม่ลามไปทำพื้นการ์ดขาวด้วย */
.reel-track .chip {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 66px; padding: 10px 12px; border-radius: 12px;
  background: linear-gradient(180deg, #2a2114 0%, #1a130a 100%);
  border: 2px solid var(--gold);
  box-shadow: 0 3px 10px rgba(138, 98, 18, .18);
}
.reel-track img { width: 100%; height: 100%; object-fit: contain; }
/* โลโก้ที่ตัวหนังสือสีดำ/เทา จมกับพื้นมืด → ทำเป็นสีขาวล้วน / เพิ่มความสว่าง */
.reel-track img[src*="habanero"], .reel-track img[src*="pragmatic"], .reel-track img[src*="playstar"] { filter: brightness(0) invert(1); opacity: .92; }
.reel-track img[src*="simpleplay"] { filter: brightness(1.8); }
.reel:hover .reel-track { animation-play-state: paused; }

/* ---------------------------------------------------------------- ท้ายเว็บ */
.baseline {
  position: relative; margin-top: 40px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  border-top: 3px solid var(--gold);
}
.baseline-row { display: grid; grid-template-columns: 30% 50% 20%; gap: 18px; align-items: center; padding-block: 28px 70px; }
.baseline-logo img { width: 85%; margin: 0 auto; }
.baseline-mid { font-size: 13px; text-align: center; }
.baseline-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 6px 0 14px; }
.baseline-nav a { display: block; padding: 6px 12px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; border-radius: 4px; transition: background .3s, color .3s; }
.baseline-nav a:hover { background: var(--gold); color: #fff; }
.baseline-bank { margin: 0 auto 12px; }
.baseline-copy { font-size: 12px; color: var(--muted); }

/* ปุ่มไลน์ลอย ค้างขอบล่างจอ เด้งขึ้นลง */
.buoy {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 74px; height: 74px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #3be36b, #06a23a);
  color: #fff; text-decoration: none; font-weight: 600; font-size: 13px;
  border: 3px solid var(--gold-mid);
  box-shadow: 0 6px 18px rgba(42, 33, 20, .3);
  animation: bob 2s linear infinite;
}
.buoy:hover { color: #fff; }
.buoy .ico { width: 26px; height: 26px; }

/* ---------------------------------------------------------------- แท็บเล็ต */
@media (max-width: 1024px) {
  h2 { font-size: 20px; }
  .plate-copy, .opener-text { font-size: 15px; }
  .navrow a { padding: 10px 7px; font-size: 15px; }
  .topline-in { grid-template-columns: 22% 56% 22%; }
  .reel { --show: 6; }
  .shelf { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------------------------------- มือถือ (โลโก้ 40 / เมนู 20 / สมัคร 40) */
@media (max-width: 767px) {
  body { font-size: 15px; }
  .topline-in { grid-template-columns: 40% 20% 40%; min-height: 64px; padding-inline: 8px; }
  .crest-menu { display: none; }
  .crest-logo img { width: 130px; }
  .burger { display: block; }
  .navrow ul {
    display: none; position: fixed; left: 0; right: 0; top: 64px;
    flex-direction: column; gap: 0; background: var(--paper); border-bottom: 3px solid var(--gold);
    box-shadow: 0 10px 20px rgba(42, 33, 20, .15);
  }
  .navrow ul.is-open { display: flex; }
  .navrow a { padding: 14px; text-align: center; font-size: 16px; }
  .navrow a:hover, .navrow a[aria-current="page"] { background: var(--cream-2); color: var(--gold-deep); transform: none; }
  .ingot { padding: 8px 14px; font-size: 14px; }
  .seam { width: 100%; }
  .seam h3 { font-size: 20px; }
  .plate, .plate--flip { grid-template-columns: 1fr; gap: 16px; padding: 0; }
  .plate--flip .plate-pic { order: 0; }
  .plate--glow { padding: 16px; }
  .shelf { grid-template-columns: 1fr; }
  .reel { --show: 3; }
  .baseline-row { grid-template-columns: 1fr; text-align: center; padding-bottom: 100px; }
  .baseline-logo img { width: 55%; }
  .solo-pic--small { max-width: 100%; }
  .promo-stack { grid-template-columns: 1fr; }
  .essay-cover img { width: 100%; }
  .essay h1 { font-size: 28px; }
  .buoy { width: 62px; height: 62px; right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ปุ่มสมัครสีแดง (ผู้ใช้สั่ง 2 ต.ค.) — ทุกปุ่มที่ไป /register */
.ingot[href="/register"], .topline .ingot[href="/register"] {
  border-radius: 10px;
  background: linear-gradient(180deg, #ff4a4a 0%, #e01010 55%, #b30000 100%);
  color: #fff; font-weight: 700;
  border: 1px solid #ff7a7a;
  box-shadow: 0 0 14px rgba(255, 40, 40, .65), 0 4px 10px rgba(120, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
  text-shadow: 0 1px 1px rgba(90, 0, 0, .45);
}
.ingot[href="/register"]:hover, .topline .ingot[href="/register"]:hover { color: #fff; filter: brightness(1.08); }

/* ---------------------------------------------------------------- กริดเกมทดลองเล่น (ถอดรูปแบบจาก eazybet88 · 2 ต.ค.) */
.dg { margin: 10px 0 30px; }
.dg-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 8px; }
.dg-tab {
  padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--gold); background: var(--paper);
  color: var(--gold-deep); font: 600 15px var(--font); cursor: pointer; transition: background .2s, color .2s;
}
.dg-tab:hover { background: var(--cream-2); }
.dg-tab.is-on { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--ink); border-color: var(--gold-deep); }
.dg-pane { display: none; grid-template-columns: repeat(4, 1fr); gap: 22px 18px; margin-top: 18px; }
.dg-pane.is-on { display: grid; }
.dg-card { text-align: center; }
.dg-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 15px; box-shadow: var(--shadow); background: var(--cream-2); }
.dg-card p { margin: 8px 0 6px; font-weight: 600; color: var(--ink); font-size: 15px; line-height: 1.4; min-height: 2.8em; }
.dg-play {
  padding: 7px 22px; border: 0; border-radius: 8px; cursor: pointer; font: 700 15px var(--font); color: var(--ink);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold)); box-shadow: 0 3px 10px rgba(138, 98, 18, .3);
}
.dg-play:hover { filter: brightness(1.06); }
.dg-overlay { position: fixed; inset: 0; z-index: 9998; background: #000; }
.dg-overlay[hidden] { display: none; }
.dg-frame { width: 100%; height: 100%; border: 0; }
.dg-close {
  position: fixed; top: 10px; right: 10px; z-index: 9999; padding: 8px 16px; border: 0; border-radius: 6px;
  background: #e01010; color: #fff; font: 700 15px var(--font); cursor: pointer;
}
@media (max-width: 767px) {
  .dg-pane { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .dg-tab { padding: 7px 12px; font-size: 14px; }
}

/* เมนูมือถือแบบปุ่มทองมีไอคอน เหมือนลิ้นชักเมนู (ผู้ใช้สั่ง 2 ต.ค.) · จอคอมซ่อนไอคอน */
.nav-ico { display: none; }
@media (max-width: 767px) {
  .navrow ul {
    gap: 14px; padding: 18px 18px 22px;
    background: linear-gradient(180deg, var(--paper) 0%, var(--cream-2) 100%);
  }
  .navrow a {
    display: flex; align-items: center; justify-content: flex-start; gap: 12px;
    padding: 14px 24px; border-radius: 999px; text-align: left; font-size: 17px; font-weight: 700; color: var(--ink);
    background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 100%);
    box-shadow: 0 4px 14px rgba(138, 98, 18, .28), inset 0 1px 0 rgba(255, 255, 255, .55);
  }
  .navrow a:hover, .navrow a[aria-current="page"] {
    color: var(--ink); background: linear-gradient(180deg, #fff1b8 0%, var(--gold-mid) 100%);
    box-shadow: 0 0 0 2px var(--gold-deep), 0 4px 14px rgba(138, 98, 18, .3);
  }
  .nav-ico { display: block; width: 22px; height: 22px; }
}

/* ปุ่มสมัครขนาดตามรูปที่ผู้ใช้ส่ง (2 ต.ค.) — ตัวหนา ใหญ่ เท่ากันทุกจอ */
.topline .ingot[href="/register"], .ingot[href="/register"] {
  padding: 8px 18px; font-size: 15px; font-weight: 700; letter-spacing: .2px; border-radius: 10px;
  box-shadow: 0 0 18px rgba(255, 30, 30, .75), 0 4px 10px rgba(120, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .4);
}
@media (max-width: 767px) {
  .topline .ingot[href="/register"] { padding: 7px 13px; font-size: 14px; }
}

/* ป้ายธนาคาร/ช่องทางฝากถอน ท้ายเว็บ (ผู้ใช้ส่งแบบมา 2 ต.ค.) — HTML ล้วน ตัวหนังสือคม Google อ่านได้ */
.bank-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin: 4px auto 14px; max-width: 460px; }
.bank-tags li { padding: 6px 12px; border-radius: 6px; color: #fff; font-weight: 600; font-size: 14px; line-height: 1.3; }
.bk-promptpay { background: #0b3d91; }
.bk-truemoney { background: #e35b1d; }
.bk-kbank { background: #138f2d; }
.bk-scb { background: #4e2a84; }
.bk-ktb { background: #0a8fc7; }
.bk-bbl { background: #1a2c8f; }
.bank-tags .bk-bay { background: #ffd23f; color: #5a4100; }
.bank-tags .bk-break { flex-basis: 100%; height: 0; padding: 0; }

/* ท้ายเว็บแบบกะทัดรัด (ผู้ใช้สั่งย่อ 2 ต.ค.) */
.baseline-row { padding-block: 16px 22px; gap: 12px; align-items: center; }
.baseline-logo img { width: 100%; max-width: 190px; }
.baseline-mid { font-size: 12px; }
.baseline-mid > p:first-child { margin-bottom: 4px; }
.baseline-nav { margin: 2px 0 8px; gap: 0 2px; }
.baseline-nav a { padding: 3px 9px; font-size: 13px; }
.bank-tags { gap: 5px 6px; margin: 0 auto 8px; max-width: 380px; }
.bank-tags li { padding: 3px 8px; font-size: 12px; border-radius: 5px; }
.baseline-copy { font-size: 11px; margin: 0; }
@media (max-width: 767px) {
  .baseline-row { padding-bottom: 80px; }
  .baseline-logo img { max-width: 150px; }
}