/* ============================================
   GoGaming - Main Stylesheet
   Responsive, Modern Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&display=swap');

:root {
  --color-primary: #00c853;
  --color-primary-dark: #00a843;
  --color-accent: #00ff88;
  --color-accent-hover: #00cc6a;
  --color-dark: #0f1412;
  --color-darker: #0a0e0c;
  --color-text: #e8f5e9;
  --color-text-muted: #a5d6a7;
  --color-border: #1b2e1f;
  --color-success: #2e7d32;
  --color-danger: #c62828;
  --color-neon-green: #00ff88;
  --color-neon-green-glow: rgba(0, 255, 136, 0.35);
  --font-main: 'Kanit', sans-serif;
  --font-heading: 'Kanit', sans-serif;
  --shadow: 0 4px 20px rgba(0,0,0,0.25);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--color-darker);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========== Top header — พื้นดำ + โลโก้รูป + ปุ่มธีมเขียว ========== */
.top-header {
  --th-green: var(--color-primary);
  --th-green-hi: var(--color-accent);
  background: #000000;
  border-bottom: 1px solid rgba(120, 120, 128, 0.55);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  font-family: var(--font-main);
}

.top-header a {
  text-decoration: none;
}

.top-header__inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .top-header__inner {
    padding: 0 1.5rem;
  }
}

.top-header__bar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem 1rem;
  min-height: 3.25rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(130, 130, 138, 0.72);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.top-header__col {
  display: flex !important;
  align-items: center;
  min-width: 0;
}

.top-header__col--left {
  justify-content: flex-start;
}

.top-header__col--center {
  justify-content: center;
}

.top-header__col--right {
  justify-content: flex-end;
}

.top-header__btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

/* เข้าสู่ระบบ — สีสไตล์เดิม (พื้นเข้ม ตัวเขียว ขอบเขียว) ขอบมน 50px */
.top-header__btn--ghost {
  border-radius: 50px;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  color: var(--th-green-hi) !important;
  background: #0f1a12 !important;
  border: 1px solid rgba(0, 255, 136, 0.22);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.top-header__btn--ghost:hover {
  color: #fff !important;
  background: #152a1a !important;
  border-color: rgba(0, 255, 136, 0.45);
  transform: scale(1.05);
  box-shadow:
    0 0 20px var(--color-neon-green-glow),
    0 0 36px rgba(0, 255, 136, 0.15);
}

/* สมัครสมาชิก — แคปซูล ไล่สีเขียว */
.top-header__btn--solid {
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #0a0e0c !important;
  background: linear-gradient(180deg, var(--th-green-hi) 0%, var(--th-green) 52%, var(--color-primary-dark) 100%) !important;
  border: none;
  box-shadow:
    0 2px 14px rgba(0, 200, 83, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.top-header__btn--solid:hover {
  filter: brightness(1.08);
  transform: scale(1.05);
  box-shadow:
    0 0 24px rgba(0, 255, 136, 0.45),
    0 4px 20px rgba(0, 200, 83, 0.35);
}

@media (min-width: 640px) {
  .top-header__btn--ghost,
  .top-header__btn--solid {
    font-size: 0.9375rem;
  }

  .top-header__btn--ghost {
    padding: 0.5rem 1.25rem;
  }

  .top-header__btn--solid {
    padding: 0.5rem 1.5rem;
  }
}

.top-header__brand {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.top-header__logo {
  display: block;
  height: 42px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.top-header__brand:hover .top-header__logo {
  filter: brightness(1.08);
  transform: scale(1.02);
}

@media (min-width: 640px) {
  .top-header__logo {
    height: 46px;
    max-width: 160px;
  }
}

.top-header__nav-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0 0.65rem;
  border-top: none;
  background: #000000;
  position: relative;
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.top-header__toggle {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  pointer-events: none !important;
}

.top-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  cursor: pointer;
}

.top-header__burger span {
  display: block;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

#top-header-menu:checked ~ .top-header__burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#top-header-menu:checked ~ .top-header__burger span:nth-child(2) {
  opacity: 0;
}

#top-header-menu:checked ~ .top-header__burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.top-header__nav {
  display: flex;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.top-header__menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.top-header__menu-link {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff !important;
  border-radius: 0.375rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.top-header__menu-link:hover {
  color: var(--color-accent) !important;
  background: rgba(0, 255, 136, 0.1);
}

.top-header__menu-link--on {
  color: var(--color-accent) !important;
  background: rgba(0, 200, 83, 0.22);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 136, 0.12);
}

.top-header__menu-link--on:hover {
  color: #fff !important;
  background: rgba(0, 200, 83, 0.32);
}

/* เมนูมือถือ header — แถวปุ่ม 4 รายการ (ซ่อนบนเดสก์ท็อป) */
.top-header__nav-mobile {
  display: none;
  width: 100%;
}

.top-header__mobile-pills {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.top-header__mobile-pills li {
  flex: 1;
  min-width: 0;
}

.top-header__mobile-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  width: 100%;
  padding: 0.45rem 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: var(--color-accent) !important;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  box-sizing: border-box;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.top-header__mobile-pill:hover {
  color: #fff !important;
  background: rgba(0, 255, 136, 0.12);
  border-color: rgba(0, 255, 136, 0.35);
}

.top-header__mobile-pill--on {
  color: #fff !important;
  background: rgba(0, 200, 83, 0.28);
  border-color: rgba(0, 255, 136, 0.45);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 136, 0.15);
}

@media (min-width: 640px) and (max-width: 992px) {
  .top-header__mobile-pill {
    font-size: 0.85rem;
    padding: 0.5rem 0.4rem;
    min-height: 2.85rem;
  }
}

@media (min-width: 993px) {
  .top-header__nav-mobile {
    display: none !important;
  }

  .top-header__burger {
    display: none !important;
  }

  .top-header__nav {
    position: static !important;
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible !important;
  }
}

@media (max-width: 992px) {
  .top-header__nav-wrap {
    justify-content: stretch;
    flex-direction: column;
    gap: 0;
    padding-top: 0.45rem;
    padding-bottom: 0.55rem;
  }

  .top-header__nav-mobile {
    display: block;
  }

  .top-header__burger {
    display: none !important;
  }

  .top-header__nav {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .top-header__bar {
    gap: 0.35rem;
    min-height: 3rem;
    padding: 0.45rem 0;
  }

  .top-header__btn--ghost,
  .top-header__btn--solid {
    font-size: 0.8rem;
    padding: 0.42rem 0.75rem;
  }

  .top-header__logo {
    height: 34px;
    max-width: 120px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-darker);
}

.btn-accent:hover {
  background: var(--color-accent-hover);
  color: var(--color-darker);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-darker);
}

/* ========== Main Content ========== */
.main-content {
  flex: 1;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 1.5rem;
  text-align: center;
}

.main-content .section {
  text-align: center;
}

.main-content .form-box,
.main-content .form-group,
.main-content .contact-line,
.main-content .toc {
  text-align: left;
}

.main-content .card-grid {
  justify-content: center;
}

.main-content .card-body {
  text-align: center;
}

.main-content .section-title {
  border-left: none;
  padding-left: 0;
  text-align: center;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--color-accent);
  font-weight: 700;
}

.section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-text);
  border-left: 4px solid var(--color-accent);
  padding-left: 1rem;
}

.section-title-center {
  text-align: center;
  border-left: none;
  padding-left: 0;
  margin-left: 0;
}

.section-title-center::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: var(--color-accent);
  margin: 0 auto 0.5rem;
  border-radius: 2px;
}

/* หน้าแรก - เนื้อหา 5 หัวข้อ H2 */
/* กรอบเนื้อหาแบบเลื่อนอ่านได้ */
.content-scroll-wrap {
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-dark);
}
.content-scroll-wrap::-webkit-scrollbar {
  width: 8px;
}
.content-scroll-wrap::-webkit-scrollbar-track {
  background: var(--color-darker);
  border-radius: 4px;
}
.content-scroll-wrap::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}

.content-blocks {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  text-align: left;
  padding: 1.5rem;
}

.content-block-item {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-border);
}

.content-block-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.content-block-item .content-h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 1rem;
  border-left: 4px solid var(--color-accent);
  padding-left: 1rem;
}

.content-body {
  color: var(--color-text);
  line-height: 1.75;
}

.content-body p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.content-body p:last-child {
  margin-bottom: 0;
}

/* โลโก้ในหน้าต่างๆ */
.page-logo-wrap {
  margin-bottom: 1.25rem;
  text-align: center;
}

.page-logo {
  display: inline-block;
  height: auto;
  max-width: 200px;
  margin: 0 auto;
}

/* Footer โลโก้ */
.footer-logo-title {
  margin-bottom: 0.5rem;
}

.footer-logo-link {
  display: inline-block;
}

.footer-logo {
  display: block;
  height: auto;
}

/* ========== หน้าแรก: แบนเนอร์รูปเดียวเต็มความกว้าง ========== */
.main-content > .home-hero {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -1.5rem;
  margin-bottom: 2rem;
  padding: 0;
  line-height: 0;
}

.main-content > .home-hero picture {
  display: block;
  width: 100%;
  line-height: 0;
}

.home-hero-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  vertical-align: top;
}

/* หัวข้อหลัก + คำนำ (แทงหวยออนไลน์) */
.home-intro {
  max-width: 720px;
  margin: 0 auto 1.25rem;
  padding: 0 1rem;
  text-align: center;
}

.home-intro-inner {
  margin: 0 auto;
}

.home-page-h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-accent);
  letter-spacing: 0.02em;
}

.home-intro-lead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

@media (min-width: 768px) {
  .home-intro {
    margin-bottom: 1.5rem;
  }

  .home-intro-lead {
    font-size: 0.95rem;
  }
}

/* ========== หน้าแรก: แบนเนอร์หวย 6 ช่อง — มือถือ 2 คอลัมน์, เดสก์ท็อป 3 คอลัมน์ ========== */
.main-content > .home-lottery-promo {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem 0 0.25rem;
  box-sizing: border-box;
  background: var(--color-darker);
}

.home-lottery-promo-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .home-lottery-promo-inner {
    padding: 0 1.5rem;
  }
}

.home-lottery-promo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.65rem, 2vw, 1rem);
  align-items: stretch;
}

@media (min-width: 768px) {
  .home-lottery-promo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.home-lottery-promo-item {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
  border: 1px solid rgba(0, 255, 136, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-lottery-promo-item:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 136, 0.32);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.home-lottery-promo-item:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.home-lottery-promo-item picture {
  display: block;
  width: 100%;
}

.home-lottery-promo-item img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 768 / 287;
  object-fit: cover;
  vertical-align: top;
}

/* ========== หน้าแรก: เกมแนะนำ 6 รูป แถวเดียว ========== */
.main-content > .home-featured-games {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 0;
  padding: 0.75rem 0 1rem;
  box-sizing: border-box;
  background: var(--color-darker);
}

/* เส้นซ้าย–ขวาเท่ากับ .top-header__inner (ปุ่ม header) */
.home-featured-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .home-featured-inner {
    padding: 0 1.5rem;
  }
}

.home-featured-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.home-featured-item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
  border: 1px solid rgba(0, 255, 136, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-featured-item:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 136, 0.28);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.home-featured-item:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.home-featured-item img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
  vertical-align: top;
}

@media (max-width: 900px) {
  .home-featured-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 6px;
  }

  .home-featured-item {
    flex: 0 0 calc((100% - 100px) / 6);
    min-width: 72px;
    max-width: none;
  }
}

/* ========== หน้าแรก: JACKPOT ใต้เกมแนะนำ (ธีมชนะรางวัล) ========== */
.main-content > .home-jackpot {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 0;
  padding: 2.35rem 0 2.65rem;
  box-sizing: border-box;
  overflow: hidden;
  background: var(--color-darker);
  border-top: none;
  border-bottom: none;
}

.home-jackpot-bg,
.home-jackpot-confetti {
  display: none;
}

.home-jackpot-inner {
  position: relative;
  z-index: 1;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
  text-align: center;
}

@media (min-width: 640px) {
  .home-jackpot-inner {
    padding: 0 1.5rem;
  }
}

.home-jackpot-head {
  position: relative;
  margin-bottom: 0.85rem;
}

.home-jackpot-stars {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-55%);
  display: flex;
  justify-content: space-between;
  max-width: min(520px, 92vw);
  margin: 0 auto;
  pointer-events: none;
  padding: 0 0.25rem;
}

.home-jackpot-star {
  font-size: clamp(2rem, 8vw, 3.25rem);
  line-height: 1;
  color: #ffc107;
  text-shadow:
    0 0 20px rgba(255, 193, 7, 0.9),
    0 4px 0 #b8860b,
    0 6px 8px rgba(0, 0, 0, 0.45);
  animation: home-jackpot-star-pulse 1.6s ease-in-out infinite;
}

.home-jackpot-star--r {
  animation-delay: 0.35s;
}

@keyframes home-jackpot-star-pulse {
  0%,
  100% {
    transform: scale(1) rotate(-6deg);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.08) rotate(6deg);
    filter: brightness(1.2);
  }
}

.home-jackpot-crown {
  position: absolute;
  left: 50%;
  top: -0.15em;
  transform: translateX(18%);
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  line-height: 1;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
  z-index: 3;
  animation: home-jackpot-crown-bob 2.2s ease-in-out infinite;
}

@keyframes home-jackpot-crown-bob {
  0%,
  100% {
    transform: translateX(18%) translateY(0);
  }
  50% {
    transform: translateX(18%) translateY(-4px);
  }
}

.home-jackpot-marquee {
  margin: 0;
  padding: 0.35em 0 0.2em;
  font-size: clamp(2.15rem, 9.5vw, 3.55rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.06em;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Thai', sans-serif;
}

.home-jackpot-marquee__track {
  display: inline-flex;
  gap: 0.07em;
  justify-content: center;
  flex-wrap: wrap;
}

.jp-L {
  position: relative;
  display: inline-block;
  color: #ffe566;
  text-transform: uppercase;
  text-shadow:
    1px 1px 0 #9b1c1c,
    2px 2px 0 #7a1515,
    3px 3px 0 #5c1010,
    4px 4px 0 #450c0c,
    0 0 24px rgba(255, 220, 100, 0.55);
  animation: home-jackpot-letter-pop 2.5s ease-in-out infinite;
}

.jp-L::before {
  content: '';
  position: absolute;
  inset: 12% 10% 28% 10%;
  border-radius: 4px;
  background-image: radial-gradient(circle 1.5px at 20% 35%, #fff 98%, transparent),
    radial-gradient(circle 1.5px at 55% 25%, rgba(255, 255, 255, 0.95) 98%, transparent),
    radial-gradient(circle 1.5px at 78% 55%, #fff 98%, transparent),
    radial-gradient(circle 1.5px at 35% 70%, rgba(255, 255, 255, 0.85) 98%, transparent),
    radial-gradient(circle 1.5px at 65% 78%, rgba(255, 255, 255, 0.9) 98%, transparent);
  opacity: 0.85;
  pointer-events: none;
  mix-blend-mode: overlay;
  animation: home-jackpot-bulbs-twinkle 0.9s steps(2, end) infinite;
}

.jp-L:nth-child(2) {
  animation-delay: 0.08s;
}
.jp-L:nth-child(3) {
  animation-delay: 0.16s;
}
.jp-L:nth-child(4) {
  animation-delay: 0.24s;
}
.jp-L:nth-child(5) {
  animation-delay: 0.32s;
}
.jp-L:nth-child(6) {
  animation-delay: 0.4s;
}
.jp-L:nth-child(7) {
  animation-delay: 0.48s;
}

@keyframes home-jackpot-letter-pop {
  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
  50% {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.08);
  }
}

@keyframes home-jackpot-bulbs-twinkle {
  0% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.7;
  }
}

.home-jackpot-tagline {
  margin: 0.55rem 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
}

.home-jackpot-tagline__pink {
  font-family: 'Brush Script MT', 'Segoe Script', 'Apple Chancery', cursive;
  font-size: clamp(1.22rem, 4.2vw, 1.72rem);
  color: #ff7eb3;
  text-shadow:
    0 0 16px rgba(255, 100, 180, 0.75),
    0 2px 4px rgba(0, 0, 0, 0.35);
}

.home-jackpot-tagline__blue {
  font-size: clamp(1.12rem, 3.8vw, 1.58rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #4fc3f7;
  text-transform: uppercase;
  text-shadow:
    1px 1px 0 #1565c0,
    2px 2px 0 #0d47a1,
    0 0 20px rgba(79, 195, 247, 0.55);
}

.home-jackpot-pill-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.35rem 0 1.5rem;
  gap: 0;
}

.home-jackpot-ribbon {
  flex-shrink: 0;
  width: clamp(22px, 5vw, 32px);
  height: clamp(56px, 14vw, 76px);
  z-index: 0;
}

.home-jackpot-ribbon--l {
  margin-right: -10px;
  background: linear-gradient(180deg, #ff8fb8 0%, #e91e63 45%, #ad1457 100%);
  border-radius: 4px 70% 70% 4px / 4px 45% 45% 4px;
  box-shadow: 3px 2px 10px rgba(0, 0, 0, 0.35);
  transform: rotate(-3deg);
}

.home-jackpot-ribbon--r {
  margin-left: -10px;
  background: linear-gradient(180deg, #ff8fb8 0%, #e91e63 45%, #ad1457 100%);
  border-radius: 70% 4px 4px 70% / 45% 4px 4px 45%;
  box-shadow: -3px 2px 10px rgba(0, 0, 0, 0.35);
  transform: rotate(3deg);
}

.home-jackpot-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.12em;
  padding: 0.65rem 1.5rem 0.72rem;
  min-width: min(100%, 360px);
  background: linear-gradient(180deg, #5e35b1 0%, #4527a0 40%, #311b92 100%);
  border: 4px solid #d4af37;
  border-radius: 999px;
  box-shadow:
    0 0 0 2px rgba(100, 60, 180, 0.5),
    0 8px 28px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.home-jackpot-pill__sym,
.home-jackpot-pill__num {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Thai', sans-serif;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fff;
  font-size: clamp(1.28rem, 4.8vw, 1.95rem);
  line-height: 1.1;
  letter-spacing: 0.035em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.home-jackpot-pill__num {
  display: inline-block;
  animation: home-jackpot-pill-num 2.3s ease-in-out infinite;
}

@keyframes home-jackpot-pill-num {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.home-jackpot-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 300px);
  padding: 0.85rem 2rem;
  margin-top: 0.35rem;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 999px;
  border: 2px solid rgba(0, 255, 136, 0.45);
  background: linear-gradient(180deg, #00e676 0%, #00c853 35%, #009624 100%);
  box-shadow:
    0 4px 0 #006b2e,
    0 8px 24px rgba(0, 200, 83, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.home-jackpot-cta:hover {
  color: #fff !important;
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow:
    0 5px 0 #006b2e,
    0 12px 28px rgba(0, 255, 136, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.home-jackpot-cta:active {
  transform: translateY(1px);
  box-shadow:
    0 2px 0 #006b2e,
    0 4px 16px rgba(0, 200, 83, 0.35);
}

.home-jackpot-cta:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ========== หน้าแรก: โปรโมชั่น 3 การ์ด (ริบบิ้นมุม + ปุ่มเขียว) ========== */
.main-content > .home-promo-row {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 0.5rem;
  padding: 0.5rem 0 1.75rem;
  box-sizing: border-box;
  background: var(--color-darker);
}

.main-content > .section.home-promo-row {
  padding-top: 1.25rem;
}

.main-content > .section.home-promo-row .section-title.section-title-center {
  margin-top: 0;
  margin-bottom: 1.35rem;
}

.home-promo-row__inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .home-promo-row__inner {
    padding: 0 1.5rem;
  }
}

@media (max-width: 900px) {
  .home-promo-row__inner {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

.home-promo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.35rem 1.15rem 1.5rem;
  background: var(--color-darker);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-promo-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 255, 136, 0.4);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.4),
    0 0 28px var(--color-neon-green-glow),
    0 0 0 1px rgba(0, 255, 136, 0.18);
}

.home-promo-card__ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 5.5rem;
  height: 5.5rem;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.home-promo-card__ribbon-text {
  position: absolute;
  top: 1rem;
  right: -2.15rem;
  width: 8.75rem;
  padding: 0.38rem 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #111;
  text-align: center;
  background: linear-gradient(180deg, #ffe066 0%, #f5c518 45%, #d4a017 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transform: rotate(45deg);
}

.home-promo-card__badge {
  display: inline-block;
  margin-top: 0.15rem;
  margin-bottom: 0.65rem;
  padding: 0.28rem 0.95rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #111;
  background: linear-gradient(180deg, #ffe066 0%, #f5c518 50%, #e6ac00 100%);
  border-radius: 999px;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.home-promo-card__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
  max-width: 18rem;
}

.home-promo-card__desc {
  margin: 0 0 1.15rem;
  flex: 1 1 auto;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  max-width: 20rem;
}

.home-promo-card__cta,
.promo-page-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 16rem;
  padding: 0.72rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 999px;
  border: 2px solid rgba(0, 255, 136, 0.45);
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-primary) 40%, var(--color-primary-dark) 100%);
  box-shadow:
    0 3px 0 #0d4d24,
    0 6px 20px rgba(0, 200, 83, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition:
    transform 0.15s ease,
    filter 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.home-promo-card__cta:hover,
.promo-page-card__cta:hover {
  color: #fff !important;
  filter: brightness(1.05);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow:
    0 4px 0 #0d4d24,
    0 0 32px var(--color-neon-green-glow),
    0 10px 28px rgba(0, 200, 83, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.home-promo-card__cta:active,
.promo-page-card__cta:active {
  transform: translateY(0);
  border-color: rgba(0, 255, 136, 0.35);
  box-shadow:
    0 2px 0 #0d4d24,
    0 4px 14px rgba(0, 200, 83, 0.35);
}

.home-promo-card__cta:focus-visible,
.promo-page-card__cta:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ========== หน้าแรก: 3 ขั้นตอนเริ่มเล่น (ใต้แบนเนอร์) — ไม่มีกรอบ สีพื้นเดียวกับหน้า ========== */
.main-content > .home-steps {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--color-darker);
  padding: 1.75rem 1rem 2.25rem;
  margin-bottom: 0.5rem;
  box-sizing: border-box;
  border: none;
  box-shadow: none;
  outline: none;
}

.home-steps-inner {
  max-width: 1100px;
  margin: 0 auto;
  background: transparent;
  border: none;
  box-shadow: none;
}

.home-steps-title {
  text-align: center;
  font-size: clamp(1.05rem, 3.8vw, 1.45rem);
  font-weight: 600;
  color: #fff;
  margin: 0 0 1.65rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.home-steps-brand {
  color: var(--color-accent);
  font-weight: 800;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.35);
}

.home-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .home-steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

.home-steps-card {
  background: linear-gradient(160deg, #111916 0%, #0a0e0c 55%, #080b09 100%);
  border: 1px solid rgba(0, 255, 136, 0.14);
  border-radius: var(--radius);
  padding: 1.4rem 1.15rem 1.5rem;
  text-align: center;
  box-shadow:
    0 4px 28px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(0, 255, 136, 0.06);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.home-steps-card:hover {
  border-color: rgba(0, 255, 136, 0.28);
  box-shadow:
    0 6px 32px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(0, 255, 136, 0.1);
}

.home-steps-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #00ff88 0%, #00c853 52%, #00a843 100%);
  color: #0a0e0c;
  font-weight: 800;
  font-size: 1.125rem;
  margin: 0 0 0.95rem;
  box-shadow: 0 2px 14px rgba(0, 200, 83, 0.45);
}

.home-steps-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.home-steps-card-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  margin: 0;
}

.home-steps-cta-wrap {
  text-align: center;
  margin-top: 1.75rem;
}

.home-steps-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.85rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0a0e0c !important;
  text-decoration: none;
  border-radius: 9999px;
  background: linear-gradient(180deg, #00ff88 0%, #00c853 52%, #00a843 100%);
  box-shadow:
    0 3px 18px rgba(0, 200, 83, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.home-steps-cta:hover {
  filter: brightness(1.08);
  transform: scale(1.03);
  color: #050705 !important;
  box-shadow:
    0 0 26px rgba(0, 255, 136, 0.45),
    0 5px 22px rgba(0, 200, 83, 0.35);
}

/* ========== ตรวจหวย — โซนบนเขียว (การ์ดฮีโร่ + แถบขวา) + โซนล่างรางวัลอื่น ========== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.page-gov-lottery {
  overflow-x: hidden;
}

body.page-gov-lottery .main-content {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  background: var(--color-darker);
}

.gov-lottery-screen {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
  padding: 0;
  background: var(--color-darker);
  text-align: left;
}

.gov-lottery-top-zone {
  padding: 1.25rem max(0.75rem, env(safe-area-inset-left, 0px)) 1.75rem
    max(0.75rem, env(safe-area-inset-right, 0px));
  padding-top: max(1.25rem, env(safe-area-inset-top, 0px));
  background: var(--color-darker);
  background-image: repeating-linear-gradient(
    -42deg,
    transparent,
    transparent 14px,
    rgba(255, 255, 255, 0.018) 14px,
    rgba(255, 255, 255, 0.018) 15px
  );
}

.gov-lottery-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(0.85rem, 2.5vw, 1.25rem);
  align-items: start;
  max-width: 1152px;
  margin: 0 auto;
}

.gov-lottery-top-grid--hero-only {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 900px) {
  .gov-lottery-top-grid {
    grid-template-columns: 1fr;
  }
}

.gov-lottery-hero-mount {
  min-width: 0;
}

.gov-lottery-extended-zone {
  background: var(--color-darker);
  padding: 1.35rem max(0.75rem, env(safe-area-inset-left, 0px)) 2.25rem
    max(0.75rem, env(safe-area-inset-right, 0px));
  scroll-margin-top: 5.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gov-lottery-extended-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gov-lottery-extended-inner > * {
  width: 100%;
}

.gov-lottery-extended-inner .gl-prize-section__head {
  text-align: center;
}

.gov-lottery-extended-inner .gl-partial-note {
  text-align: center;
}

/* ระบบใส่เลขตรวจ — ลำดับที่ 2 หลังฮีโร่ ก่อนรางวัลขยาย */
.gov-lottery-check-zone {
  background: var(--color-darker);
  background-image: repeating-linear-gradient(
    -42deg,
    transparent,
    transparent 14px,
    rgba(255, 255, 255, 0.018) 14px,
    rgba(255, 255, 255, 0.018) 15px
  );
  padding: 1.5rem max(0.75rem, env(safe-area-inset-left, 0px)) 2rem
    max(0.75rem, env(safe-area-inset-right, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gov-lottery-check-zone__inner {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gov-lottery-check-zone__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  font-weight: 700;
  color: var(--color-accent);
  text-align: center;
  line-height: 1.35;
  width: 100%;
}

.gov-lottery-check-zone .gov-lottery-side-panel {
  width: 100%;
  max-width: min(28rem, 100%);
  margin-left: auto;
  margin-right: auto;
}

.gov-lottery-field-label {
  display: block;
  width: 100%;
  text-align: center;
  margin: 0 0 0.4rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #2e2e2e;
  line-height: 1.3;
}

.gov-lottery-field-label:not(:first-of-type) {
  margin-top: 0.95rem;
}

.gov-lottery-check-zone .gov-lottery-input-wrap {
  width: 100%;
}

.gov-lottery-check-zone .gov-lottery-tools-row--stack {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  margin-bottom: 0.75rem;
}

.gov-lottery-check-zone .gov-lottery-tools-row__select {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.gov-lottery-check-zone .gov-lottery-tools-row__actions {
  justify-content: center;
  width: 100%;
  flex-wrap: wrap;
}

.gov-lottery-check-zone .gov-lottery-chips {
  justify-content: center;
}

.gov-lottery-check-zone .gov-lottery-check-msg {
  text-align: center;
}

.gov-lottery-check-zone .gov-lottery-side-heading {
  text-align: center;
  width: 100%;
}

.gov-lottery-history-strip--centered {
  justify-content: center;
}

.gl-extended-stack {
  width: 100%;
}

.gov-lottery-fetch {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0 0 0.65rem;
  min-height: 1.2em;
}

.gov-lottery-fetch--error {
  color: var(--color-danger);
}

.gov-lottery-page-title {
  text-align: center;
  color: var(--color-text);
  font-size: clamp(1.05rem, 2.8vw, 1.45rem);
  font-weight: 700;
  margin: 0 auto 1.2rem;
  max-width: 42rem;
  line-height: 1.45;
}

.gov-lottery-page-title--on-dark {
  color: var(--color-accent);
  text-shadow: none;
}

.gl-hero-card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.38);
  background: #fff;
}

.gl-hero-card__head {
  background: #00c853;
  padding: 1rem 1.15rem 1.05rem;
  text-align: center;
  color: #fff;
}

.gl-hero-card__title {
  margin: 0 0 0.35rem;
  font-size: clamp(0.92rem, 2.2vw, 1.06rem);
  font-weight: 700;
  line-height: 1.35;
}

.gl-hero-card__date {
  margin: 0;
  font-size: 0.86rem;
  opacity: 0.95;
}

.gl-hero-card__body {
  padding: 1.1rem 0.95rem 1.2rem;
}

.gl-hero-p1 {
  background: #e8e8e8;
  border: 1px solid #c4c4c4;
  border-radius: 10px;
  padding: 1rem 0.85rem;
  text-align: center;
  margin-bottom: 0.8rem;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.06);
}

.gl-hero-p1__num {
  margin: 0;
  font-size: clamp(1.55rem, 5vw, 2.05rem);
  font-weight: 800;
  color: #000;
  letter-spacing: 0.07em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.gl-hero-p1__lbl {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #555;
}

.gl-hero-subgrid {
  display: grid;
  grid-template-columns: 1fr minmax(4.75rem, auto);
  gap: 0.6rem;
  margin-bottom: 0.95rem;
}

.gl-hero-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.gl-hero-box {
  background: #ececec;
  border: 1px solid #c8c8c8;
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  text-align: center;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.gl-hero-box__nums {
  font-weight: 800;
  font-size: 0.95rem;
  color: #000;
  font-variant-numeric: tabular-nums;
}

.gl-hero-box span {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.7rem;
  color: #666;
}

.gl-hero-box--back2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.gl-hero-back2__num {
  font-size: 1.55rem;
  font-weight: 800;
  color: #000;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.gl-hero-more-btn {
  display: block;
  width: 100%;
  padding: 0.68rem 1rem;
  border: none;
  border-radius: 8px;
  background: #00c853;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(0, 200, 83, 0.35);
  transition: filter 0.15s ease, transform 0.1s ease;
}

.gl-hero-more-btn:hover {
  filter: brightness(1.06);
}

.gl-hero-more-btn:active {
  transform: scale(0.99);
}

@media (max-width: 576px) {
  .gl-hero-subgrid {
    grid-template-columns: 1fr;
  }

  .gl-hero-box--back2 {
    min-height: auto;
    padding: 0.75rem;
  }
}

.gov-lottery-side-panel--on-dark {
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.28);
}

/* คอลัมน์ที่ 2: ตรวจเลข + งวดก่อนหน้า (เลย์เอาต์ตามแบบรูป) */
.gov-lottery-side-panel--check-ui {
  padding: 1.05rem 1rem 1.2rem;
}

.gov-lottery-input-wrap {
  position: relative;
  margin-bottom: 0.65rem;
}

.gov-lottery-side-input--hero {
  display: block;
  width: 100%;
  padding: 0.78rem 2.65rem 0.78rem 1rem;
  margin: 0;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: #f0f0f0;
  font-size: 1rem;
  box-sizing: border-box;
  font-family: inherit;
  color: #1a1a1a;
}

.gov-lottery-side-input--hero::placeholder {
  color: #888;
}

.gov-lottery-side-input--hero:focus {
  outline: none;
  border-color: #00c853;
  box-shadow: 0 0 0 2px rgba(0, 200, 83, 0.22);
}

.gov-lottery-input-icon {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9e9e9e;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.gov-lottery-tools-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.65rem;
  margin-bottom: 0.7rem;
}

.gov-lottery-tools-row__select {
  flex: 1 1 50%;
  min-width: min(100%, 13rem);
}

.gov-lottery-tools-row__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  flex: 1 1 auto;
}

.gov-lottery-select--draw {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #d8d8d8;
  background: #f0f0f0;
  font-size: 0.82rem;
  font-family: inherit;
  color: #333;
}

.gov-lottery-btn--tool {
  padding: 0.5rem 0.82rem;
  font-size: 0.76rem;
  border-radius: 8px;
  white-space: nowrap;
}

@media (max-width: 540px) {
  .gov-lottery-tools-row__select {
    flex: 1 1 100%;
    min-width: 0;
  }

  .gov-lottery-tools-row__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

.gl-light-inner {
  max-width: 100%;
}

.gl-prize-row {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.gl-prize-row--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gl-prize-row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .gl-prize-row--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gl-prize-row--2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .gl-prize-row--4 {
    grid-template-columns: 1fr;
  }
}

.gl-card {
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  padding: 1rem 0.85rem 1.05rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.gl-card--row1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 9.5rem;
  justify-content: flex-start;
}

.gl-card--row1 .gl-card__caption {
  margin-top: auto;
  width: 100%;
}

.gl-card--wide {
  padding: 1.1rem 1rem 1.15rem;
}

.gl-card--row2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 10rem;
}

.gl-card--row2 .gl-card__caption {
  margin-top: auto;
  width: 100%;
}

.gl-card--nums-first .gl-inline-boxes {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.gl-card__title--below {
  margin: 0 0 0.45rem;
}

.gl-card__title {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #00c853;
}

.gl-card__big {
  font-size: clamp(1.45rem, 4.5vw, 2rem);
  font-weight: 800;
  color: #000;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  line-height: 1.2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gl-card--row1 .gl-card__big {
  min-height: 2.75rem;
}

.gl-card__big--sm {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
}

.gl-card__nums {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 800;
  color: #000;
  font-variant-numeric: tabular-nums;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-height: 2.75rem;
}

.gl-card__nums span + span {
  margin-left: 0;
}

.gl-card__caption {
  margin: 0.55rem 0 0;
  font-size: 0.75rem;
  color: #666;
  line-height: 1.4;
}

.gl-inline-boxes {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.55rem;
  margin: 0.15rem 0 0.4rem;
  width: 100%;
  justify-content: flex-start;
}

.gl-inline-boxes--wrap {
  flex-wrap: wrap;
}

.gl-inline-boxes--center {
  justify-content: center;
}

.gl-num-cell {
  flex: 0 1 auto;
  min-width: 5.5rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  padding: 0.55rem 0.5rem;
  background: #fff;
  border: 1px solid #c8c8c8;
  border-radius: 6px;
  color: #000;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.gl-inline-boxes--wrap .gl-num-cell {
  min-width: 5.25rem;
}

.gl-num-cell--empty {
  color: #999;
  font-weight: 500;
}

.gl-prize-section {
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  padding: 1.1rem 0.95rem 1.2rem;
  margin-bottom: 1.15rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
}

.gl-prize-section__head {
  margin-bottom: 0.65rem;
  text-align: left;
}

.gl-prize-section__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #00c853;
}

.gl-prize-section__caption {
  margin: 0.3rem 0 0;
  font-size: 0.76rem;
  color: #666;
}

.gl-num-grid {
  display: grid;
  gap: 0.4rem;
}

.gl-num-grid--10 {
  grid-template-columns: repeat(10, minmax(0, 1fr));
}

.gl-num-grid--dense .gl-num-tile {
  font-size: 0.72rem;
  padding: 0.35rem 0.2rem;
}

.gl-num-grid--fifth .gl-num-tile {
  font-size: 0.7rem;
  padding: 0.32rem 0.15rem;
}

.gl-num-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  border: 1px solid #c8c8c8;
  border-radius: 6px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #000;
  min-height: 2rem;
}

@media (max-width: 1100px) {
  .gl-num-grid--10 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .gl-num-grid--10 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .gl-num-grid--10 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gl-num-tile {
    font-size: 0.65rem;
    min-height: 1.75rem;
  }
}

.gl-partial-note {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.45;
}

.gov-lottery-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.95rem;
  border: none;
  border-radius: 8px;
  background: #00c853;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.82rem;
  font-family: inherit;
  transition: filter 0.15s ease, transform 0.12s ease;
}

.gov-lottery-btn:hover {
  filter: brightness(1.06);
}

.gov-lottery-btn:active {
  transform: scale(0.98);
}

.gov-lottery-btn--block {
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
}

.gov-lottery-btn--outline {
  background: transparent;
  color: #00c853;
  border: 2px solid #00c853;
}

.gov-lottery-btn--outline:hover {
  background: rgba(0, 200, 83, 0.12);
}

.gov-lottery-side-panel {
  background: #fff;
  border: 1px solid #c8c8c8;
  border-radius: 14px;
  padding: 1rem 1rem 1.15rem;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.3);
}

.gov-lottery-side-input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: #f0f0f0;
  font-size: 1rem;
  box-sizing: border-box;
  margin-bottom: 0.65rem;
  font-family: inherit;
}

.gov-lottery-select {
  flex: 1 1 140px;
  min-width: 0;
  padding: 0.52rem 0.65rem;
  border-radius: 10px;
  border: 1px solid #d8d8d8;
  background: #f0f0f0;
  font-size: 0.82rem;
  font-family: inherit;
  color: #333;
}

.gov-lottery-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-height: 0;
  margin-bottom: 0.5rem;
}

.gov-lottery-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1a1a;
  padding: 0.2rem 0.35rem 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.gov-lottery-chip button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.2rem;
  color: #666;
}

.gov-lottery-check-msg {
  min-height: 1.2em;
  font-size: 0.82rem;
  margin: 0 0 0.85rem;
  color: #444;
  white-space: pre-line;
}

.gov-lottery-check-msg--ok {
  color: #1b5e20;
  font-weight: 600;
}

.gov-lottery-check-msg--warn {
  color: #e65100;
}

.gov-lottery-check-msg--muted {
  color: #757575;
}

.gov-lottery-side-heading {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1a1a;
}

.gov-lottery-history-strip {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.gov-lottery-mini-card {
  flex: 0 0 min(216px, 85vw);
  max-width: 85vw;
  background: #fff;
  border-radius: 12px;
  padding: 0.65rem 0.7rem 0.75rem;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: left;
  color: #1a1a1a;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gov-lottery-mini-card:hover,
.gov-lottery-mini-card:focus-visible {
  border-color: #00c853;
  outline: none;
  box-shadow: 0 4px 16px rgba(0, 200, 83, 0.2);
}

.gov-lottery-mini-card__title {
  margin: 0 0 0.45rem;
  padding: 0;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111;
}

.gov-lottery-mini-card__head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.gov-lottery-mini-card__dot {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
  padding: 0.15rem;
}

.gov-lottery-mini-card__date-line {
  flex: 1;
  min-width: 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: #333;
  line-height: 1.25;
}

.gov-lottery-mini-card__body {
  font-size: 0.72rem;
}

.gov-lottery-mini-prize {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: #f0f0f0;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  padding: 0.35rem 0.45rem;
  margin-bottom: 0.4rem;
  text-align: center;
}

.gov-lottery-mini-prize span {
  display: block;
  font-size: 0.6rem;
  color: #666;
}

.gov-lottery-mini-prize strong {
  font-size: 0.95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.gov-lottery-mini-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.35rem;
  align-items: stretch;
}

.gov-lottery-mini-row > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  text-align: center;
  background: #f0f0f0;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 0.3rem 0.35rem;
}

.gov-lottery-mini-row span {
  display: block;
  font-size: 0.55rem;
  color: #666;
}

.gov-lottery-mini-row em {
  font-style: normal;
  font-weight: 700;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}

.gov-lottery-mini-back2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  text-align: center;
}

.gov-lottery-mini-back2 strong {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
}

.gov-lottery-faq-below {
  padding: 1.5rem max(0.75rem, env(safe-area-inset-left, 0px)) 2rem
    max(0.75rem, env(safe-area-inset-right, 0px));
  max-width: 720px;
  margin: 0 auto;
  color: var(--color-text);
  background: var(--color-darker);
}

.gov-lottery-faq-below .section-title {
  color: var(--color-accent);
  border-left-color: var(--color-accent);
}

@media (pointer: coarse) {
  .gov-lottery-btn--tool {
    min-height: 44px;
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }

  .gl-hero-more-btn {
    min-height: 48px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .gl-card--row1 {
    min-height: auto;
  }

  .gl-card--row2 {
    min-height: auto;
  }

  .gov-lottery-top-zone {
    padding-top: 0.65rem;
    padding-bottom: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gov-lottery-extended-zone {
    scroll-behavior: auto;
  }
}

/* ========== หน้าอัตราจ่าย — ธีมเขียวเดียวกับปุ่ม header ========== */
body.page-payout-rates {
  background: var(--color-darker);
}

.payout-rates-screen {
  padding: 1.25rem max(0.75rem, env(safe-area-inset-left, 0px)) 2.5rem
    max(0.75rem, env(safe-area-inset-right, 0px));
  background: linear-gradient(180deg, #0a0e0c 0%, #0f1a12 42%, var(--color-darker) 100%);
  color: var(--color-text);
  min-height: 50vh;
}

.payout-rates-inner {
  max-width: 720px;
  margin: 0 auto;
}

.payout-rates-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  color: var(--color-accent);
  text-align: center;
  letter-spacing: 0.02em;
  text-shadow: 0 0 24px var(--color-neon-green-glow);
}

.payout-rates-lead {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  text-align: center;
}

.payout-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  background: #0f1a12;
  border: 1px solid rgba(0, 255, 136, 0.22);
  border-radius: 10px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.2);
}

.payout-info-banner__icon {
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 0.1rem;
}

.payout-info-banner__text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.payout-info-banner__brand {
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: 0.04em;
}

.payout-card {
  margin-bottom: 1.5rem;
  background: rgba(15, 26, 18, 0.92);
  border-radius: 14px;
  border: 1px solid rgba(0, 255, 136, 0.14);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 200, 83, 0.06);
  overflow: hidden;
}

.payout-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1rem 0.85rem;
}

.payout-card__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #0f1a12;
  border: 1px solid rgba(0, 255, 136, 0.15);
}

.payout-card__icon svg {
  display: block;
}

.payout-card__head-text {
  min-width: 0;
}

.payout-card__title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1.25;
}

.payout-card__sub {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.35;
}

.payout-card__clock {
  flex-shrink: 0;
  color: var(--color-accent);
  opacity: 0.95;
}

.payout-card__note {
  margin: 0 0 0.85rem;
  padding: 0 1rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--color-text-muted);
}

.payout-card__head + .payout-card__note {
  margin-top: -0.2rem;
}

.payout-card__icon--chart svg {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--color-accent);
}

.payout-card__icon--text-badge {
  padding: 0 0.15rem;
}

.payout-icon-fallback {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: 0.03em;
  line-height: 1;
}

.payout-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0.35rem 0.35rem;
}

.payout-table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.payout-table__caption {
  caption-side: top;
  text-align: left;
  padding: 0 0.5rem 0.55rem;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.35;
}

.payout-table-follow {
  padding: 0 0.35rem;
  margin-top: 0.15rem;
}

.payout-table-blurb {
  margin: 0 0 1rem;
  font-size: 0.84rem;
  line-height: 1.68;
  color: rgba(230, 240, 232, 0.9);
}

.payout-table-blurb strong {
  color: var(--color-neon-green);
  font-weight: 800;
}

.payout-table-cta-wrap {
  text-align: center;
  margin: 0 0 1.65rem;
}

.payout-table-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 0.68rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #06130c;
  background: linear-gradient(180deg, #39ff9c 0%, #00c853 100%);
  border: 1px solid rgba(0, 255, 136, 0.55);
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 255, 136, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.payout-table-cta:hover {
  color: #041209;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 255, 136, 0.4);
}

.payout-table thead th {
  text-align: left;
  padding: 0.55rem 0.65rem;
  font-weight: 700;
  color: var(--color-accent);
  background: rgba(21, 42, 26, 0.75);
  border-bottom: 1px solid rgba(0, 255, 136, 0.18);
}

.payout-table tbody td {
  padding: 0.55rem 0.65rem;
  color: var(--color-text);
  border-bottom: 1px solid rgba(27, 46, 31, 0.9);
  vertical-align: middle;
}

.payout-table tbody tr:last-child td {
  border-bottom: none;
}

.payout-table tbody tr:nth-child(even) td {
  background: rgba(0, 200, 83, 0.04);
}

.payout-table__rate {
  font-weight: 800;
  color: var(--color-neon-green);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.payout-rates-foot {
  margin: 2rem 0 0;
  text-align: center;
}

/* ใช้ร่วมกับ .top-header__btn--ghost — เฉพาะระยะห่าง/จัดกึ่ง */
.payout-rates-back.top-header__btn {
  text-decoration: none;
}

@media (max-width: 420px) {
  .payout-table {
    font-size: 0.74rem;
  }

  .payout-table thead th,
  .payout-table tbody td {
    padding: 0.45rem 0.45rem;
  }
}

/* ========== สล็อต / คาสิโนสด ใต้แบนเนอร์ (แบบรายการแนวตั้ง ชิดซ้าย) ========== */
.slots-under-banner {
  background: var(--color-darker);
  padding: 1rem 1.25rem 1.25rem;
  margin-bottom: 1rem;
}

.slots-under-banner + .slots-under-banner {
  margin-top: 0;
}

.slots-under-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.slots-list-layout {
  max-width: 380px;
  margin-left: 0;
  margin-right: auto;
}

/* แถวการ์ด 6 ช่อง - ระยะกระชับ ไม่ห่างเกินไป */
.game-cards-row.game-cards-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}

/* แถว 6 รูปแบบง่าย (รูป + จำนวนคนเข้าเล่น + ชื่อ) */
/* สล็อต + คาสิโน: รูปแนวสี่เหลี่ยมผืนผ้า (แนวนอน) */
.slots-simple-row .slots-list-img {
  aspect-ratio: 16/9;
}

@media (max-width: 1200px) {
  .game-cards-row.game-cards-6 {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
}

@media (max-width: 576px) {
  .game-cards-row.game-cards-6 {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}

.slots-two-cols .slots-header-full {
  margin-bottom: 1rem;
  width: 100%;
}

.slots-two-cols-wrap {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 1rem;
  align-items: start;
}

.slots-col-1 {
  min-width: 0;
}

.slots-item-large .slots-list-img {
  aspect-ratio: 3/4;
  min-height: 320px;
}

.slots-grid-2rows {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 0.75rem;
}

.slots-grid-2rows .slots-list-item .slots-list-img {
  aspect-ratio: 1;
}

@media (max-width: 992px) {
  .slots-two-cols-wrap {
    grid-template-columns: 1fr;
  }

  .slots-item-large .slots-list-img {
    min-height: 240px;
    aspect-ratio: 4/3;
  }

  .slots-grid-2rows {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, auto);
  }
}

@media (max-width: 480px) {
  .slots-grid-2rows {
    grid-template-columns: 1fr;
  }
}

.slots-header {
  margin-bottom: 0.5rem;
}

.slots-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.slots-title-icon {
  font-size: 1.25em;
}

.slots-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.slots-list-item {
  display: block;
  background: var(--color-dark);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.slots-list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 136, 0.15);
  border-color: rgba(0, 255, 136, 0.25);
}

.slots-list-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-darker);
}

.slots-list-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Badge แสดงจำนวนคนเล่น มุมซ้ายบน (จุดสีเขียว + ตัวเลขขาว) */
.slots-player-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.45rem;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  z-index: 2;
}

.slots-player-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

.slots-player-num {
  color: #fff;
  line-height: 1;
}

/* Badge แสดงเปอร์เซ็นแตก (RTP) มุมขวาบน - ไอคอนเพชรทอง + ตัวเลข */
.slots-rtp-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.45rem;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fbbf24;
  z-index: 2;
}

.slots-rtp-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23fbbf24"><path d="M12 2L15 9l7 1-5 5 1 7-6-3-6 3 1-7-5-5 7-1z"/></svg>') no-repeat center;
  background-size: contain;
}

.slots-list-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.6rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.slots-list-play {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-neon-green);
}

/* ชื่อเกม - ตัวใหญ่เด่น (แบบการ์ดสล็อต) */
.slots-simple-row .slots-list-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.slots-list-name {
  display: block;
  font-size: 0.9rem;
  color: var(--color-neon-green);
  line-height: 1.3;
}

@media (max-width: 480px) {
  .slots-under-banner {
    padding: 1rem;
  }

  .slots-list-layout {
    max-width: 100%;
  }
}

/* ========== Card Grid ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* บทความหน้าแรก / หน้า article — แสดง 3 การ์ดพอดีบนจอกว้าง */
.card-grid--articles-3 {
  max-width: 1152px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 900px) {
  .card-grid--articles-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.articles-intro {
  margin: -0.35rem auto 1.1rem;
  max-width: 36rem;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--color-text-muted);
}

.card {
  background: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--color-darker);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card-img > picture {
  position: absolute;
  inset: 0;
  display: block;
}

.card-img > picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card-img > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* เซกชันที่อยู่ล่างหน้าแรก — ลดงานวาดก่อนเลื่อนถึง (ไม่กระทบ SEO/AEO: เนื้อหายังอยู่ใน DOM) */
@supports (content-visibility: auto) {
  .perf-cv-auto {
    content-visibility: auto;
    contain-intrinsic-size: auto 520px;
  }
}

.card-img-cover {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 200px;
}

.card-img-promo-full {
  min-height: 280px;
  aspect-ratio: 3/4;
}

#promo .card-img.card-img-cover {
  min-height: 280px;
  aspect-ratio: 3/4;
}

/* ========== มินิเกม - ไอคอนแทนรูป (สล็อต, บาคาร่า, หวย, แทงบอล) ========== */
.minigame-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.minigame-card {
  background: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  text-align: center;
}

.minigame-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.minigame-card-icon {
  display: block;
  width: 64px;
  height: 64px;
  margin: 1.25rem auto 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* สล็อต - เครื่องสล็อต 3 รีล */
.minigame-icon-slot {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect x="2" y="2" width="20" height="20" rx="2" fill="%234b5563"/><rect x="5" y="5" width="4" height="14" rx="1" fill="%23f3f4f6"/><rect x="10" y="5" width="4" height="14" rx="1" fill="%23f3f4f6"/><rect x="15" y="5" width="4" height="14" rx="1" fill="%23f3f4f6"/><circle cx="7" cy="11" r="2" fill="%23dc2626"/><circle cx="12" cy="11" r="2" fill="%23dc2626"/><circle cx="17" cy="11" r="2" fill="%23dc2626"/><circle cx="21" cy="12" r="1.5" fill="%23ef4444"/></svg>');
}

/* บาคาร่า - ไพ่ */
.minigame-icon-baccarat {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect x="5" y="2" width="14" height="20" rx="2" fill="%23fef3c7" stroke="%23d97706" stroke-width="1"/><path d="M12 5l2 4-2 2-2-2 2-4z" fill="%23b45309"/><circle cx="12" cy="16" r="2.5" fill="none" stroke="%23b45309" stroke-width="1"/></svg>');
}

/* หวย - ลูกบอล 8 (สีดำ-ขาว) */
.minigame-icon-lottery {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" fill="%231f2937"/><circle cx="12" cy="12" r="8" fill="%23fff"/><circle cx="12" cy="12" r="5" fill="%231f2937"/></svg>');
}

/* แทงบอล - ลูกฟุตบอล */
.minigame-icon-soccer {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" fill="%23fff" stroke="%23374151" stroke-width="1"/><path d="M12 2v20M2 12h20" stroke="%23374151" stroke-width="1" fill="none"/><path d="M12 2a15 15 0 0 1 4 10 15 15 0 0 1-4 10 15 15 0 0 1-4-10 15 15 0 0 1 4-10z" fill="none" stroke="%23374151" stroke-width="1"/></svg>');
}

.minigame-card .card-body {
  padding: 1rem 1.25rem 1.25rem;
}

@media (max-width: 992px) {
  .minigame-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .minigame-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== หน้าแรก: การ์ดประเภทหวย 6 ชนิด ========== */
.home-lottery-types-lead {
  max-width: 42rem;
  margin: 0 auto 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.home-lottery-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.15rem;
  max-width: 1152px;
  margin: 0 auto;
}

.home-lottery-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem 1.2rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  scroll-margin-top: 6rem;
}

.home-lottery-type-card__badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-darker);
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-primary) 100%);
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.55rem;
}

.home-lottery-type-card__title {
  margin: 0 0 0.5rem;
  width: 100%;
  max-width: 100%;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.3;
  text-align: center;
}

.home-lottery-type-card__text {
  margin: 0 0 1rem;
  width: 100%;
  max-width: 100%;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--color-text);
  text-align: center;
}

.home-lottery-type-card__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
}

.home-lottery-type-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.1s ease;
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-primary) 52%, var(--color-primary-dark) 100%);
  color: var(--color-darker) !important;
  border: none;
}

.home-lottery-type-card__link:hover {
  filter: brightness(1.06);
  color: var(--color-darker) !important;
}

.home-lottery-type-card__link--secondary {
  background: transparent;
  color: var(--color-accent) !important;
  border: 2px solid var(--color-accent);
}

.home-lottery-type-card__link--secondary:hover {
  background: rgba(0, 255, 136, 0.1);
  color: var(--color-accent) !important;
}

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .card-grid-3 {
    grid-template-columns: 1fr;
  }
}

.card-body {
  padding: 1.25rem;
}

.card-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.card-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ========== ทำไมต้องเรา — การ์ดโทนเขียว กริด 3×2 / มือถือ 2×3 ========== */
.section-why-us {
  background: transparent;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.15rem);
  max-width: 1152px;
  margin: 0 auto;
}

.why-us-item {
  text-align: center;
  padding: 1.35rem 1rem 1.4rem;
  border-radius: 14px;
  background: linear-gradient(
    165deg,
    rgba(18, 32, 22, 0.96) 0%,
    rgba(12, 22, 16, 0.98) 42%,
    #080d0a 100%
  );
  border: 1px solid rgba(0, 255, 136, 0.14);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.why-us-item:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 255, 136, 0.28);
  box-shadow: 0 10px 32px rgba(0, 200, 83, 0.12);
}

.why-us-icon-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  height: 3.35rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(0, 255, 136, 0.12);
}

.why-us-pic {
  display: block;
  width: 1.55rem;
  height: 1.55rem;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* ไอคอนโทนเขียว (#00ff88) */
.why-us-pic--rate {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2300ff88" stroke-width="2" stroke-linecap="round"><circle cx="7" cy="7" r="3"/><circle cx="17" cy="17" r="3"/><path d="M17 7L7 17"/></svg>');
}

.why-us-pic--open {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2300ff88"><circle cx="6" cy="12" r="2"/><circle cx="12" cy="12" r="2"/><circle cx="18" cy="12" r="2"/></svg>');
}

.why-us-pic--variety {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2300ff88" stroke-width="1.6" stroke-linecap="round"><rect x="3" y="3" width="7" height="7" rx="1"/><rect x="14" y="3" width="7" height="7" rx="1"/><rect x="8.5" y="14" width="7" height="7" rx="1"/></svg>');
}

.why-us-pic--wallet {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2300ff88" stroke-width="1.6" stroke-linejoin="round"><path d="M4 6a2 2 0 0 1 2-2h12v4H4V6z"/><path d="M4 8h16v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8z"/><path d="M16 12h2"/></svg>');
}

.why-us-pic--support {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2300ff88" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M3 18v-6a9 9 0 0 1 18 0v6"/><path d="M21 19a2 2 0 0 1-2 2h-1v-8h1a2 2 0 0 1 2 2v4z"/><path d="M3 19a2 2 0 0 0 2 2h1v-8H5a2 2 0 0 0-2 2v4z"/></svg>');
}

.why-us-pic--lock {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2300ff88" stroke-width="1.6" stroke-linejoin="round"><rect x="5" y="11" width="14" height="10" rx="2"/><path d="M8 11V7a4 4 0 0 1 8 0v4"/></svg>');
}

.why-us-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--color-accent);
  margin: 0 0 0.45rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.why-us-desc {
  font-size: 0.86rem;
  color: var(--color-text);
  line-height: 1.5;
  margin: 0;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .why-us-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ========== รายการฝาก-ถอน (ตาราง) ========== */
.deposit-table-wrap {
  overflow: hidden;
  background: var(--color-dark);
  border-radius: var(--radius);
  position: relative;
}

.deposit-table-scroll {
  height: 420px;
  overflow: hidden;
  overflow-x: auto;
}

.deposit-table-scroll .deposit-table {
  animation: deposit-scroll 25s linear infinite;
}

@keyframes deposit-scroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.deposit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.deposit-table thead {
  background: rgba(0, 255, 136, 0.08);
}

.deposit-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
}

.deposit-table td {
  padding: 0.75rem 1rem;
  color: var(--color-text);
}

.deposit-table tbody tr {
  background: var(--color-dark);
}

.deposit-table tbody tr:nth-child(even) {
  background: rgba(15, 20, 18, 0.6);
}

.deposit-table .amt-deposit {
  color: var(--color-neon-green);
  font-weight: 600;
}

.deposit-table .amt-withdraw {
  color: #ef4444;
  font-weight: 600;
}

.deposit-type-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.deposit-type-badge.type-deposit {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.deposit-type-badge.type-withdraw {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}


/* ========== Mini Games / Formula Sections ========== */
.formula-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.formula-card {
  background: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-align: center;
  transition: border-color var(--transition);
}

.formula-card:hover {
  border-color: var(--color-accent);
}

.formula-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-darker);
}

.formula-card-img picture {
  position: absolute;
  inset: 0;
  display: block;
}

.formula-card-img picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.formula-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.formula-card-body {
  padding: 1rem 1.25rem 1.25rem;
}

.formula-card h3 {
  font-size: 1rem;
  color: var(--color-accent);
  margin: 0 0 0.5rem 0;
}

.formula-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* การ์ดสูตรที่เป็นลิงก์ไปหน้าบทความ */
.formula-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
}
.formula-card-link:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.formula-card-link .formula-card-body h3 {
  color: var(--color-accent);
}
.formula-card-link:hover .formula-card-body h3 {
  color: var(--color-neon-green);
}

/* ========== Table of Contents (Collapsible) ========== */
.toc {
  background: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}

.toc-toggle {
  width: 100%;
  padding: 1rem 1.25rem;
  text-align: left;
  background: transparent;
  color: var(--color-accent);
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}

.toc-toggle:hover {
  background: rgba(0, 255, 136, 0.1);
}

.toc-toggle::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--color-accent);
  transition: transform 0.3s ease;
  line-height: 1;
}

.toc.open .toc-toggle::after {
  transform: rotate(45deg);
}

.toc-list {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.25rem;
}

.toc.open .toc-list {
  max-height: 800px;
  padding: 0 1.25rem 1.25rem;
}

.toc-list li {
  margin-bottom: 0;
}

.toc-list a {
  color: var(--color-text);
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition), padding-left var(--transition);
}

.toc-list li:last-child a {
  border-bottom: none;
}

.toc-list a:hover {
  color: var(--color-accent);
  padding-left: 0.5rem;
}

/* ========== FAQ ========== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1rem 1.25rem;
  text-align: left;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}

.faq-question:hover {
  background: rgba(0, 255, 136, 0.1);
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--color-accent);
  transition: transform var(--transition);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.25rem 1rem;
  color: var(--color-text-muted);
  font-family: var(--font-main);
  font-size: 0.95rem;
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--color-dark);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
  padding: 2.5rem 1.5rem 1rem;
}

/* Footer แบบ 4 คอลัมน์ - ตรีมเขียวเสียว (spicy green) */
.site-footer-style {
  --footer-accent: #00ff88;
  --footer-accent-hover: #00cc6a;
  background: #0a0e0c;
  border-top: 1px solid #1b2e1f;
  padding: 2.5rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid-4 {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-brand-logo-wrap {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-brand-logo {
  display: block;
  height: 46px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.footer-col-brand .footer-brand-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 0 0 1.25rem 0;
  max-width: 320px;
}

.site-footer-style .footer-social-circles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0;
}

.site-footer-style .footer-social-circles .footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--footer-accent);
  border: none;
  transition: background 0.2s, transform 0.2s;
}

.site-footer-style .footer-social-circles .footer-social-link:hover {
  background: var(--footer-accent-hover);
  transform: scale(1.08);
}

.site-footer-style .footer-social-circles .footer-social-link {
  color: #fff;
}

.site-footer-style .footer-social-circles .footer-social-link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.site-footer-style .footer-social-circles .footer-social-link svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.site-footer-style .footer-col-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.site-footer-style .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer-style .footer-col li {
  margin-bottom: 0.5rem;
}

.site-footer-style .footer-col a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.site-footer-style .footer-col a:hover {
  color: var(--footer-accent);
}

.site-footer-style .footer-bottom {
  border-top: 1px solid #1b2e1f;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ========== แถบเมนูล่าง (มือถือ) — fixed / sticky ========== */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 992px) {
  body {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  }

  .mobile-bottom-nav {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    pointer-events: none;
  }

  .mobile-bottom-nav__bar {
    pointer-events: auto;
    margin: 0 0.5rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    background: #050505;
    border-radius: 22px 22px 16px 16px;
    box-shadow:
      0 -4px 24px rgba(0, 0, 0, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-bottom-nav__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.15rem;
    padding: 0.4rem 0.35rem 0.55rem;
    max-width: 520px;
    margin: 0 auto;
  }

  .mobile-bottom-nav__link {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.2rem;
    text-decoration: none;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 500;
    line-height: 1.15;
    text-align: center;
    padding: 0.2rem 0.1rem 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .mobile-bottom-nav__link:active {
    transform: scale(0.96);
  }

  .mobile-bottom-nav__link.is-active .mobile-bottom-nav__label {
    color: var(--color-accent);
  }

  .mobile-bottom-nav__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  }

  .mobile-bottom-nav__icon--blogs svg {
    filter: drop-shadow(0 2px 3px rgba(21, 101, 192, 0.45));
  }

  .mobile-bottom-nav__icon--img img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
  }

  .mobile-bottom-nav__label {
    color: rgba(255, 255, 255, 0.92);
    max-width: 4.2rem;
    word-break: break-word;
  }

  .footer-grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-grid-4 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-brand-logo {
    height: 40px;
    max-width: 140px;
  }

  .footer-col-brand .footer-brand-desc {
    max-width: 100%;
  }
}

.footer-time {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 1rem;
  color: var(--color-text-muted);
}
.footer-time-label {
  margin-right: 0.5rem;
}
.footer-time time {
  font-weight: 600;
  color: var(--color-accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 1rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-section a:hover {
  color: var(--color-accent);
}

/* โซเชียล - ไอคอนรูปจริง */
.footer-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-darker);
  border: 1px solid var(--color-border);
  transition: transform 0.2s, border-color 0.2s;
}
.footer-social-link:hover {
  border-color: var(--color-accent);
  transform: scale(1.08);
}
.footer-social-link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* พาร์ทเนอร์ & ธนาคาร - โลโก้รูปจริง */
.footer-bank-logo {
  height: 32px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  opacity: 0.95;
  filter: grayscale(0.2);
  transition: opacity 0.2s;
}
.footer-bank-logo:hover {
  opacity: 1;
  filter: grayscale(0);
}

/* พาร์ทเนอร์ & ธนาคาร + TAG อยู่ตรงกลาง */
.footer-center-block {
  text-align: center;
  margin-bottom: 2rem;
}
.footer-section-center {
  margin-bottom: 1.5rem;
}
.footer-section-center:last-child {
  margin-bottom: 0;
}
.footer-section-center h4 {
  margin-bottom: 0.75rem;
}
.footer-section-center .footer-partners,
.footer-section-center .footer-tags {
  justify-content: center;
}

.footer-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 0.5rem;
}

.footer-partners img {
  height: 32px;
  opacity: 0.8;
  filter: grayscale(0.5);
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tag {
  background: var(--color-darker);
  color: var(--color-text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

.tag:hover {
  background: var(--color-accent);
  color: var(--color-darker);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-sitemap a {
  margin-left: 1rem;
  color: var(--color-text-muted);
}

/* ========== Forms & Iframe ========== */
.form-box {
  background: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-box iframe {
  width: 100%;
  min-height: 320px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-darker);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-darker);
  color: var(--color-text);
  font-size: 1rem;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
}

/* ========== Message Box (PHP result) ========== */
.message-box {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-weight: 500;
  display: none;
}

.message-box.show {
  display: block;
}

.message-box.success {
  background: rgba(25, 135, 84, 0.2);
  border: 1px solid var(--color-success);
  color: #75c997;
}

.message-box.error {
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid var(--color-danger);
  color: #f5a2a2;
}

/* ========== หน้าโปรโมชั่น - รายละเอียดโปร ========== */
.promo-detail-list {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.promo-detail-two-cols {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section.promo-images .card-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.section.promo-images .card-promo-1 {
  grid-column: 1;
}

@media (max-width: 768px) {
  .promo-detail-two-cols {
    grid-template-columns: 1fr;
  }
}

.promo-detail-card {
  background: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.promo-detail-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.promo-detail-turn {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.promo-detail-desc {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.promo-detail-notice {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ========== หน้าสมัครสมาชิก (เนื้อหาสั้น + ปุ่มกลาง + การ์ดโปรเดียว) ========== */
.register-page {
  max-width: 36rem;
  margin: 0 auto;
  padding: 0 1rem 2.75rem;
  box-sizing: border-box;
  text-align: center;
}

.register-page__lead {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text);
}

.register-page__lead strong {
  color: var(--color-accent);
  font-weight: 700;
}

.register-page__sub {
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.register-page__cta-wrap {
  margin-bottom: 2rem;
}

.register-page__cta-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 280px);
  padding: 0.95rem 2.25rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 999px;
  border: 2px solid rgba(0, 255, 136, 0.5);
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-primary) 40%, var(--color-primary-dark) 100%);
  box-shadow:
    0 4px 0 #0d4d24,
    0 10px 32px rgba(0, 200, 83, 0.4),
    0 0 28px var(--color-neon-green-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.register-page__cta-main:hover {
  color: #fff !important;
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow:
    0 5px 0 #0d4d24,
    0 14px 36px rgba(0, 255, 136, 0.35),
    0 0 36px var(--color-neon-green-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.register-page__cta-main:active {
  transform: translateY(0);
}

.register-page__cta-main:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.register-page__promo-wrap {
  max-width: 22rem;
  margin: 0 auto;
  text-align: center;
}

.register-page__more {
  margin: 1.75rem 0 0;
  font-size: 0.95rem;
}

.register-page__more a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

.register-page__more a:hover {
  text-decoration: underline;
}

/* ========== หน้าโปรโมชั่น – การ์ดธีมเขียว (ริบบิ้น + ป้าย + CTA) ========== */
.promo-page {
  padding-bottom: 2rem;
}

.promo-page__grid {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .promo-page__grid {
    padding: 0 1.5rem;
  }
}

@media (max-width: 992px) {
  .promo-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .promo-page__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

.promo-page-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.35rem 1.15rem 1.5rem;
  background: var(--color-darker);
  border: 1px solid rgba(0, 255, 136, 0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.promo-page-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 255, 136, 0.4);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.4),
    0 0 28px var(--color-neon-green-glow),
    0 0 0 1px rgba(0, 255, 136, 0.18);
}

.promo-page-card__ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 5.5rem;
  height: 5.5rem;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.promo-page-card__ribbon-text {
  position: absolute;
  top: 1rem;
  right: -2.15rem;
  width: 8.75rem;
  padding: 0.38rem 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  background: linear-gradient(180deg, #69f0ae 0%, var(--color-primary) 40%, #006b3a 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transform: rotate(45deg);
}

.promo-page-card__badge {
  display: inline-block;
  margin-top: 0.15rem;
  margin-bottom: 0.65rem;
  padding: 0.28rem 0.95rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-primary) 48%, var(--color-primary-dark) 100%);
  border-radius: 999px;
  box-shadow:
    0 2px 8px rgba(0, 200, 83, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.promo-page-card__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
  max-width: 20rem;
}

.promo-page-card__turn {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1.4;
  max-width: 20rem;
}

.promo-page-card__desc {
  margin: 0 0 0.75rem;
  flex: 1 1 auto;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  max-width: 20rem;
}

.promo-page-card__notice {
  margin: 0 0 1.1rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 20rem;
}

.promo-page-card__cta {
  max-width: 17rem;
  margin-top: auto;
}

/* ========== หน้าโปรโมชั่น – โปรแบบ image blog (คอลัมน์เดียว) ========== */
.promo-blog-list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.promo-blog-item {
  background: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.promo-blog-img {
  width: 100%;
  aspect-ratio: 21/9;
  background: var(--color-darker);
  flex-shrink: 0;
  overflow: hidden;
}

.promo-blog-img-fill {
  aspect-ratio: auto;
  min-height: 0;
  height: auto;
}

.promo-blog-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.promo-blog-img-fill img {
  width: 100%;
  height: auto;
  min-height: 0;
  min-width: 0;
  object-fit: contain;
  display: block;
  vertical-align: top;
}

@media (max-width: 576px) {
  .promo-blog-list {
    grid-template-columns: 1fr;
  }
}

.promo-blog-body {
  padding: 1.25rem 1.25rem 1.5rem;
}

.promo-blog-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 0.35rem 0;
}

.promo-blog-turn {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0 0 0.5rem 0;
}

.promo-blog-desc {
  font-size: 1rem;
  color: var(--color-text);
  margin: 0 0 0.75rem 0;
}

.promo-blog-notice {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ========== Promo Image ========== */
.promo-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
}

.promo-image img {
  width: 100%;
  aspect-ratio: 3/1;
  object-fit: cover;
}

/* ========== Article Template ========== */
.article-hero {
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.article-hero picture {
  display: block;
  width: 100%;
}

.article-hero picture img,
.article-hero img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.article-lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.article-content {
  background: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.article-content p {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.article-content h2, .article-content h3 {
  margin: 1.5rem 0 0.75rem;
  color: var(--color-accent);
}

/* ========== Contact - LINE ========== */
.contact-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--color-dark);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  text-align: center;
}

.contact-line img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.btn-line {
  background: #06c755;
  color: #fff;
}

.btn-line:hover {
  background: #05a847;
  color: #fff;
}

.main-content .contact-line {
  text-align: center;
}

/* ========== Two Column Layout ========== */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .two-column {
    grid-template-columns: 1fr;
  }
}

/* ========== Responsive - เนื้อหา ========== */
@media (max-width: 768px) {
  .page-title {
    font-size: 1.5rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .formula-section {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .formula-section {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-sitemap a {
    margin: 0 0.5rem;
  }
}

/* ========== Utility ========== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }
