/* ==========================================================================
   MALLY168 Exact Visual Replica Stylesheet (v900.0)
   100% Matched to Live Reference Site Architecture:
     - Fixed Hexagonal Mesh Background (#fix-bg: mally168-bg-pc.webp / mally168-bg-mobile.webp)
     - Angled Metallic Header (.header-section) with left Logo Notch, Centered
       Red Gradient "เข้าสู่ระบบ" (.primary-button: #FF0000 -> #7D1D00) &
       Amber Outline "สมัครสมาชิก" (.register-header-button: 2px solid #FFB200),
       Right Angled Trapezoid Menu, and Bottom-Right "ประกาศ :" Marquee Bar
     - Full-Width 1200x400 Hero Banner Carousel Showcase + 5 Indicator Dots
     - 3 Skewed Promo Feature Cards (เกมใหม่ | เกมกำลังแตก [purple glow] | เกมโปรด)
     - 6 Skewed Parallelogram Category Tabs (สล็อต | คาสิโน | กีฬา | ป๊อกเด้ง | หวย | ยิงปลา)
     - 5 Horizontal Game Lobby Rows with 6px Gold Pill Bar, Fire Flame GIF,
       RTP % Progress Bar, and Hover Zoom
     - Dark Metallic SEO Content Cards & Comparison Tables
     - Official #1F1F1F Footer with Silver Top Gradient Border, Centered 130px Logo,
       ค่ายเกม (Providers Grid), ช่องทางชำระเงิน (Banks Grid), แท็ก (9 SEO Pills),
       ใบอนุญาต Gambling (Curacao & Gambling Commission), Created website by MALLY168
     - Floating Right Contact Drawer (LINE, Telegram, Promotion)
     - Fixed Notched Bottom Navigation Bar (หน้าหลัก, ฝากเงิน, Elevated 3D Gamepad, ถอนเงิน, รับเงินคืน)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Noto+Sans+Thai:wght@400;500;600;700;800&display=swap');

:root {
  --theme-color-1: #2A2A2A;
  --theme-color-2: #000000;
  --theme-font-color-1: #FFFFFF;
  --theme-font-color-2: #FCFCFC;
  --primary-color-1: #FF0000;
  --primary-color-2: #7D1D00;
  --primary-font-color: #FFFFFF;
  --secondary-color-1: #FFB200;
  --secondary-color-2: #7D5700;
  --secondary-font-color: #FFFFFF;
  --gold-title: #E9B033;
  --gold-light: #F2D638;
  --container-max: 1120px;
}

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

html {
  background-color: #050508;
  color: var(--theme-font-color-1);
  font-family: 'Kanit', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  scroll-behavior: smooth;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  background-color: #050508;
  background-image: url('/images/theme/mally168-bg-pc.webp');
  background-position: center top;
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-attachment: fixed;
  color: #FFFFFF;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 76px;
  overflow-x: hidden;
}

@media (max-width: 640px) {
  body {
    background-image: url('/images/theme/mally168-bg-mobile.webp');
    background-attachment: scroll;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 14px;
}

/* ==========================================================================
   1. OFFICIAL ANGLED METALLIC HEADER + MARQUEE BAR
   ========================================================================== */
.m168-header-section {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.9);
}

.m168-header-top-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 70px;
  position: relative;
}

.m168-header-left-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px 8px 18px;
  background: linear-gradient(180deg, #323232 0%, #141414 55%, #080808 100%);
  border-bottom: 2.5px solid #B8BAC0;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
  position: relative;
}

.m168-logo-notch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.m168-logo-notch img {
  height: 62px;
  width: auto;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.85));
  transition: transform 0.2s ease;
}

.m168-logo-notch:hover img {
  transform: scale(1.05);
}

.m168-auth-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto;
}

.m168-btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 145px;
  padding: 8px 24px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--primary-color-1) 0%, var(--primary-color-2) 100%);
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid rgba(255, 110, 110, 0.5);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.38);
}

.m168-btn-login:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.m168-btn-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 145px;
  padding: 7px 24px;
  border-radius: 12px;
  background: rgba(15, 15, 15, 0.65);
  border: 2px solid var(--secondary-color-1);
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 0.96rem;
  box-shadow: 0 0 12px rgba(255, 178, 0, 0.2);
}

.m168-btn-register:hover {
  background: rgba(255, 178, 0, 0.18);
  color: var(--gold-light) !important;
  transform: translateY(-1px);
}

.m168-header-right-trapezoid {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 8px 20px 8px 28px;
  background: linear-gradient(180deg, #3E3E3E 0%, #0A0A0A 100%);
  border-left: 2.5px solid #D5D7DC;
  border-bottom: 2.5px solid #9FA1A8;
  transform: skewX(-16deg);
  margin-right: -10px;
}

.m168-header-right-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  transform: skewX(16deg);
  padding-right: 8px;
}

.m168-top-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 600;
}

.m168-top-icon-link img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.m168-top-icon-link:hover {
  color: var(--gold-light);
}

.m168-hamburger-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px 6px;
}

.m168-hamburger-bars span {
  display: block;
  width: 26px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #FF2A2A 0%, #C40000 100%);
  box-shadow: 0 0 6px rgba(255, 0, 0, 0.6);
}

/* Announcement Marquee Sub-bar */
.m168-marquee-row {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #0E0E0E 0%, #262626 25%, #121212 75%, #242424 100%);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.22);
  height: 28px;
  padding: 0 16px;
  font-size: 0.82rem;
  overflow: hidden;
}

.m168-marquee-label {
  color: var(--secondary-color-1);
  font-weight: 700;
  white-space: nowrap;
  margin-right: 12px;
  position: relative;
  z-index: 2;
}

.m168-marquee-track-wrap {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  display: flex;
  align-items: center;
}

.m168-marquee-text {
  display: inline-block;
  color: #F5F5F5;
  font-size: 0.82rem;
  white-space: nowrap;
  padding-left: 100%;
  will-change: transform;
  animation: m168-marquee-scroll 24s linear infinite;
}

.m168-marquee-track-wrap:hover .m168-marquee-text {
  animation-play-state: paused;
}

@keyframes m168-marquee-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

/* Secondary Quick Silo Navigation Bar (for SEO 17-page Silo internal linking) */
.m168-silo-subnav {
  background: rgba(14, 14, 16, 0.94);
  border-bottom: 1px solid rgba(233, 176, 51, 0.35);
  padding: 6px 0;
}

.m168-silo-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 4px 14px;
  font-size: 0.84rem;
}

.m168-silo-menu > li {
  position: relative;
}

.m168-silo-menu > li > a {
  color: #E2E4E9;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
}

.m168-silo-menu > li > a:hover,
.m168-silo-menu > li > a.active {
  color: var(--gold-light);
  background: rgba(255, 178, 0, 0.14);
}

.silo-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 235px;
  background: #1A1A1D;
  border: 1.5px solid var(--gold-title);
  border-radius: 10px;
  padding: 6px;
  list-style: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1100;
}

.has-dropdown:hover .silo-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.silo-dropdown li a {
  display: block;
  padding: 6px 10px;
  border-radius: 7px;
  color: #F2F2F2;
  font-size: 0.82rem;
  white-space: nowrap;
}

.silo-dropdown li a:hover {
  background: rgba(255, 0, 0, 0.28);
  color: var(--gold-light);
}

/* ==========================================================================
   2. HERO BANNER CAROUSEL (1200x400 + INTERACTIVE SLIDER + 5 DOTS)
   ========================================================================== */
.m168-hero-carousel {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: #080808;
  user-select: none;
  border-bottom: 1.5px solid rgba(233, 176, 51, 0.45);
}

.m168-carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  touch-action: pan-y;
}

.m168-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  display: block;
}

.m168-hero-main-slide {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 400;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.m168-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 8, 10, 0.72);
  border: 1.5px solid rgba(242, 214, 56, 0.75);
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
  transition: all 0.2s ease;
}

.m168-carousel-arrow:hover {
  background: linear-gradient(180deg, var(--primary-color-1) 0%, var(--primary-color-2) 100%);
  border-color: #FFFFFF;
  transform: translateY(-50%) scale(1.08);
}

.m168-carousel-arrow.prev {
  left: 12px;
}

.m168-carousel-arrow.next {
  right: 12px;
}

.m168-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 6;
  background: rgba(10, 6, 8, 0.65);
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.m168-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  transition: all 0.25s ease;
}

.m168-dot:hover {
  background: #FFFFFF;
  transform: scale(1.15);
}

.m168-dot.active {
  width: 26px;
  border-radius: 99px;
  background: var(--secondary-color-1);
  box-shadow: 0 0 12px rgba(255, 178, 0, 0.95);
}

/* ==========================================================================
   3. THREE PROMO FEATURE CARDS (เกมใหม่ | เกมกำลังแตก | เกมโปรด)
   ========================================================================== */
.m168-ctg-3cards-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px auto 12px;
  max-width: var(--container-max);
  padding: 0 10px;
}

.m168-ctg-card {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.m168-ctg-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 360 / 190;
  object-fit: cover;
  display: block;
}

.m168-ctg-card.is-center-glow {
  filter: drop-shadow(0px 0px 16px rgba(212, 91, 255, 0.75));
  z-index: 2;
}

.m168-ctg-card:hover {
  transform: translateY(-4px) scale(1.02);
}

/* ==========================================================================
   4. SIX SKEWED PARALLELOGRAM CATEGORY TABS
   ========================================================================== */
.m168-6tabs-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  max-width: var(--container-max);
  margin: 4px auto 20px;
  padding: 0 10px;
}

.m168-skew-tab {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 7px 14px;
  background: linear-gradient(180deg, #3A3A3A 0%, #0E0E0E 100%);
  border: 1.8px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  transform: skewX(-10deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.75);
  transition: all 0.2s ease;
}

.m168-skew-tab > * {
  transform: skewX(10deg);
}

.m168-skew-tab img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
}

.m168-skew-tab span {
  font-size: 0.94rem;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
}

.m168-skew-tab:hover,
.m168-skew-tab.active {
  background: linear-gradient(180deg, var(--primary-color-1) 0%, var(--primary-color-2) 100%);
  border-color: var(--gold-light);
  box-shadow: 0 4px 16px rgba(255, 0, 0, 0.45);
}

/* ==========================================================================
   5. GAME LOBBY ROWS (Gold Pill Header + Fire GIF + RTP Progress Bar)
   ========================================================================== */
.m168-lobby-section {
  max-width: var(--container-max);
  margin: 0 auto 24px;
  padding: 0 10px;
}

.m168-box-title-game {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.m168-box-title-game::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 26px;
  border-radius: 20px;
  background: linear-gradient(180deg, #F2D638 0%, #E9B033 100%);
  box-shadow: 0 0 10px rgba(242, 214, 56, 0.5);
}

.m168-lobby-title-text {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--gold-title);
}

.m168-lobby-count-text {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--gold-title);
}

.m168-game-grid-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.m168-game-card {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #141414;
  border: 1.5px solid #6E5828;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.8);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.m168-game-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-light);
}

.m168-fire-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 30px !important;
  height: auto !important;
  z-index: 4;
  pointer-events: none;
}

.m168-game-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
  display: block;
  transition: transform 0.28s ease;
}

.m168-game-card:hover .m168-game-thumb {
  transform: scale(1.07);
}

.m168-game-btm-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 8px 6px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.88) 32%, rgba(0, 0, 0, 0.96) 100%);
  z-index: 3;
}

.m168-rtp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 3px;
}

.m168-rtp-bar {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 4px;
}

.m168-rtp-fill {
  height: 100%;
  background: linear-gradient(90deg, #E9B033 0%, #F2D638 50%, #FF5722 100%);
  border-radius: 99px;
}

.m168-game-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: #EAEAEA;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   6. DARK METALLIC SEO CONTENT PANELS, MEDIA FRAMES, TABLES & FAQ
   ========================================================================== */
.breadcrumb-bar {
  margin: 10px 0 14px;
}

.breadcrumb-list {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  background: rgba(32, 32, 34, 0.92);
  border: 1px solid rgba(233, 176, 51, 0.55);
  border-radius: 24px;
  padding: 5px 15px;
  font-size: 0.84rem;
}

.breadcrumb-list a {
  color: var(--gold-light);
  font-weight: 600;
}

.breadcrumb-list .current {
  color: #E0E0E0;
}

.m168-bg1-card {
  background: linear-gradient(180deg, rgba(38, 38, 40, 0.95) 0%, rgba(18, 18, 20, 0.96) 100%);
  border: 1px solid rgba(233, 176, 51, 0.45);
  border-top: 2px solid #B8BAC0;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85);
  padding: 24px 26px;
  margin-bottom: 22px;
}

.m168-bg1-card.is-centered {
  text-align: center;
}

.m168-bg1-card h1 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  background: linear-gradient(180deg, #F2D638 0%, #E9B033 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 14px;
}

.m168-bg1-card h2,
.m168-split-feature-copy h2 {
  font-size: clamp(1.24rem, 2vw, 1.6rem);
  color: var(--gold-light);
  font-weight: 700;
  line-height: 1.38;
  margin-bottom: 12px;
}

.m168-bg1-card h3 {
  font-size: 1.08rem;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 8px;
}

.m168-bg1-card p,
.m168-split-feature-copy p {
  color: #E8E8E8;
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 14px;
}

.direct-answer {
  background: rgba(14, 14, 16, 0.85);
  border-left: 4px solid var(--primary-color-1);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.95rem;
  color: #FFFFFF;
  margin-bottom: 16px;
  text-align: left;
}

.kpi-pods-3grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 16px auto 6px;
  max-width: 860px;
}

.kpi-pod {
  background: linear-gradient(180deg, #2D2D30 0%, #151517 100%);
  border: 1px solid rgba(233, 176, 51, 0.55);
  border-radius: 12px;
  padding: 12px 14px;
  text-align: center;
}

.kpi-pod-val {
  display: block;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 2px;
}

.kpi-pod-lbl {
  display: block;
  font-size: 0.82rem;
  color: #E0E0E0;
}

.m168-split-feature-card {
  background: linear-gradient(180deg, rgba(38, 38, 40, 0.95) 0%, rgba(18, 18, 20, 0.96) 100%);
  border: 1px solid rgba(233, 176, 51, 0.45);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85);
  padding: 24px 26px;
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
  align-items: center;
}

.m168-split-feature-card.is-reverse {
  grid-template-columns: 1fr 250px;
}

.m168-split-feature-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--gold-title);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.8);
}

.silo-bento-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
  text-align: left;
}

.silo-pillar-card {
  background: #18181B;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.silo-pillar-card:hover {
  border-color: var(--gold-title);
}

.silo-pillar-card h3 {
  font-size: 1.05rem;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.silo-pillar-card p {
  font-size: 0.88rem;
  color: #DCDCDC;
  margin-bottom: 10px;
}

.silo-pillar-link {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--secondary-color-1);
}

.check-list {
  list-style: none;
  margin: 14px 0 18px;
  display: grid;
  gap: 10px;
  text-align: left;
}

.check-list li {
  background: #17171A;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.92rem;
}

.check-list li strong {
  color: var(--gold-light);
}

.media-frame {
  margin: 18px auto;
  max-width: 800px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #0D0D0F;
  border: 1.5px solid rgba(233, 176, 51, 0.55);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
  text-align: center;
}

.content-media-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.media-frame figcaption {
  padding: 9px 14px;
  font-size: 0.83rem;
  color: #CCCCCC;
  background: #161618;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 14px 0 18px;
  border-radius: 12px;
  border: 1px solid rgba(233, 176, 51, 0.5);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #151518;
  font-size: 0.88rem;
  text-align: left;
}

thead tr {
  background: linear-gradient(180deg, #343438 0%, #1F1F22 100%);
  color: var(--gold-light);
}

th, td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

tbody tr:hover {
  background: rgba(255, 178, 0, 0.08);
}

.howto-box {
  background: #18181B;
  border: 1px solid rgba(233, 176, 51, 0.5);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  text-align: left;
}

.howto-box h3 {
  font-size: 1.05rem;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.howto-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  counter-reset: step-counter;
}

.howto-list li {
  counter-increment: step-counter;
  background: #101012;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 12px;
  font-size: 0.85rem;
}

.howto-list li::before {
  content: "STEP " counter(step-counter);
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--secondary-color-1);
  margin-bottom: 4px;
}

.faq-bento-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
  text-align: left;
}

.mally168-faq-card {
  background: #18181B;
  border: 1px solid rgba(233, 176, 51, 0.45);
  border-radius: 12px;
  padding: 14px 16px;
}

.mally168-faq-card summary {
  cursor: pointer;
  list-style: none;
}

.mally168-faq-card summary::-webkit-details-marker {
  display: none;
}

.mally168-faq-card h3 {
  font-size: 0.95rem;
  color: var(--gold-light);
  line-height: 1.38;
  margin-bottom: 0;
}

.faq-ans {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  color: #E2E2E2;
}

.eeat-seal-bar {
  margin-top: 18px;
  background: #121214;
  border: 1px solid rgba(233, 176, 51, 0.45);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  text-align: left;
}

.eeat-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.eeat-pill {
  background: #222226;
  border: 1px solid var(--gold-title);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-light);
}

/* ==========================================================================
   7. OFFICIAL #1F1F1F FOOTER (Providers, Banks, Tags, Licenses, Created By)
   ========================================================================== */
.m168-official-footer {
  margin-top: auto;
  background: linear-gradient(to right, #8e8f95 0%, #ffffff 14%, #8e8f95 50%, #ffffff 85%, #8e8f95 100%);
  padding-top: 2px;
}

.m168-inner-footer {
  background-color: #242424;
  padding: 32px 16px 24px;
  text-align: center;
}

.m168-footer-container {
  max-width: 820px;
  margin: 0 auto;
}

.m168-footer-top-logo {
  width: 135px;
  height: auto;
  margin: 0 auto 18px;
}

.m168-footer-seo-p {
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.65;
  margin-bottom: 18px;
}

.m168-footer-gold-heading {
  font-size: 1.15rem;
  font-weight: 700;
  background: linear-gradient(180deg, #F2D638 0%, #E9B033 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 24px 0 14px;
}

/* Providers 60x60 dark rounded squares */
.m168-providers-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}

.m168-provider-tile {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #3A3A3A;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.m168-provider-tile img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Banks & TrueWallet Grid */
.m168-banks-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}

.m168-bank-tile {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
}

.m168-bank-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 9 SEO Tag Pills */
.m168-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 26px;
}

.m168-tag-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 7px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.35);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 600;
}

.m168-tag-chip:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

/* Gambling Licenses */
.m168-license-heading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.08rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 10px 0 18px;
}

.m168-verified-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #18C964;
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 800;
}

.m168-licenses-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 28px;
}

.m168-licenses-row img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

/* Created website by + Horizontal MALLY168 Logo */
.m168-created-by {
  margin: 18px 0 14px;
}

.m168-created-by span {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.m168-created-by img {
  width: 230px;
  height: auto;
  margin: 0 auto;
}

/* 17-Page Internal Silo Sitemap Links in Footer */
.m168-footer-silo-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  list-style: none;
  margin: 20px auto 10px;
  padding: 14px 10px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
}

.m168-footer-silo-links a {
  color: #CFCFCF;
}

.m168-footer-silo-links a:hover {
  color: var(--gold-light);
}

.m168-copyright-bar {
  background: linear-gradient(180deg, #2D2D2D 0%, #151515 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 15px;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 600;
  color: #FFFFFF;
}

/* ==========================================================================
   8. FLOATING RIGHT CONTACT WIDGET & NOTCHED BOTTOM NAV BAR
   ========================================================================== */
.m168-floating-contact {
  position: fixed;
  top: 56%;
  right: 0;
  transform: translateY(-50%);
  z-index: 1020;
  background: linear-gradient(180deg, rgba(62, 62, 62, 0.72) 0%, rgba(10, 10, 10, 0.82) 100%);
  backdrop-filter: blur(6px);
  border-radius: 14px 0 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-right: none;
  padding: 12px 8px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: -4px 6px 18px rgba(0, 0, 0, 0.7);
}

.m168-contact-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.72rem;
  color: #FFFFFF !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease;
}

.m168-contact-btn:hover {
  transform: scale(1.1);
}

.m168-contact-line {
  background: #06C755;
}

.m168-contact-tg {
  background: #24A1DE;
}

.m168-contact-promo {
  background: #1E1E1E;
  border: 1px solid #FF3B3A;
}

.m168-contact-promo img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Fixed Notched Bottom Navigation Bar (หน้าหลัก | ฝากเงิน | [3D Gamepad] | ถอนเงิน | รับเงินคืน) */
.m168-bottom-float-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  height: 66px;
  background: linear-gradient(180deg, #2D2D2D 0%, #0E0E0E 100%);
  border-top: 2px solid #9E9FA5;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.88);
}

.m168-bottom-float-nav ul {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  list-style: none;
  max-width: 540px;
  height: 100%;
  margin: 0 auto;
}

.m168-bottom-float-nav li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #FFFFFF;
}

.m168-bottom-float-nav li a img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.m168-bottom-center-play a {
  position: relative;
  top: -16px;
}

.m168-bottom-center-play a img {
  width: 68px !important;
  height: 68px !important;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.85));
  transition: transform 0.2s ease;
}

.m168-bottom-center-play a:hover img {
  transform: scale(1.08);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 920px) {
  .m168-6tabs-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .m168-game-grid-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .m168-split-feature-card,
  .m168-split-feature-card.is-reverse {
    grid-template-columns: 1fr;
  }
  .m168-split-feature-img-wrap {
    max-width: 280px;
    margin: 0 auto;
  }
  .silo-bento-2x2,
  .howto-list,
  .faq-bento-2col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .m168-top-icon-link {
    display: none;
  }
  .m168-header-left-panel {
    padding: 6px 10px;
  }
  .m168-logo-notch img {
    height: 48px;
  }
  .m168-btn-login,
  .m168-btn-register {
    min-width: 96px;
    padding: 6px 12px;
    font-size: 0.82rem;
    border-radius: 10px;
  }
  .m168-header-right-trapezoid {
    padding: 6px 14px 6px 18px;
  }
  .m168-ctg-3cards-wrap {
    gap: 6px;
    padding: 0 8px;
  }
  .m168-6tabs-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 4px 10px 8px;
    overflow: visible;
  }
  .m168-skew-tab {
    min-width: 0;
    width: 100%;
    justify-content: center;
    padding: 6px 8px;
    gap: 6px;
    transform: skewX(-8deg);
  }
  .m168-skew-tab > * {
    transform: skewX(8deg);
  }
  .m168-skew-tab img {
    width: 28px;
    height: 28px;
  }
  .m168-skew-tab span {
    font-size: 0.84rem;
  }
  .m168-game-grid-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .m168-bg1-card,
  .m168-split-feature-card {
    padding: 18px 14px;
  }
  .kpi-pods-3grid {
    grid-template-columns: 1fr;
  }
}
