/* ==========================================================================
   ULTRACLUB89 — BESPOKE SINGLE-COLUMN BOXED COSMIC EMERALD & METALLIC GOLD THEME
   100% Unique Architecture blended from ULTRACLUB89 Reference + 6-Category Review Hub
   (Zero 2-column yok789 sidebar, zero marquee/jackpot clones!)
   ========================================================================== */

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

:root {
  --uc-emerald: #00C243;
  --uc-emerald-dark: #00200B;
  --uc-emerald-light: #61CE70;
  --uc-mint: #B1FAC7;
  --uc-gold: #FFC400;
  --uc-gold-btn: #FFC10D;
  --uc-red: #FF0000;
  --uc-red-dark: #200000;
  --uc-electric-blue: #003BFF;
  --uc-silver: #D8D8D8;
  --uc-black: #000000;
  --uc-box-max: 1120px;
}

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

html {
  background-color: #000000;
  color: #FFFFFF;
  font-family: 'Kanit', 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.68;
  scroll-behavior: smooth;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  background-color: #000000;
  color: #FFFFFF;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: #61CE70;
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #FFC400;
}

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

/* ==========================================================================
   1. COSMIC EMERALD STARFIELD & 3D PERSPECTIVE NEON GRID STAGE
      (Replicating the exact ULTRACLUB89 reference stage background)
   ========================================================================== */
.uc89-cosmic-stage {
  position: relative;
  width: 100%;
  background-color: #010D05;
  background-image:
    /* Glowing stars / particles in upper sky */
    radial-gradient(2px 2px at 12% 8%, rgba(177, 250, 199, 0.9) 50%, transparent 100%),
    radial-gradient(2.5px 2.5px at 28% 16%, rgba(97, 206, 112, 0.85) 50%, transparent 100%),
    radial-gradient(2px 2px at 46% 11%, rgba(255, 255, 255, 0.8) 50%, transparent 100%),
    radial-gradient(3px 3px at 68% 14%, rgba(97, 206, 112, 0.9) 50%, transparent 100%),
    radial-gradient(2px 2px at 84% 9%, rgba(177, 250, 199, 0.85) 50%, transparent 100%),
    radial-gradient(2.5px 2.5px at 92% 21%, rgba(97, 206, 112, 0.8) 50%, transparent 100%),
    radial-gradient(2px 2px at 18% 26%, rgba(177, 250, 199, 0.75) 50%, transparent 100%),
    /* Horizon emerald glow */
    radial-gradient(ellipse 90% 32% at 50% 36%, rgba(97, 255, 145, 0.34) 0%, rgba(0, 194, 67, 0.14) 55%, transparent 100%),
    /* Neon laser perspective grid lines */
    linear-gradient(0deg, rgba(145, 255, 175, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145, 255, 175, 0.20) 1px, transparent 1px),
    /* Deep forest cosmic vertical gradient */
    linear-gradient(180deg, #010903 0%, #052610 24%, #165E2D 38%, #0A3819 65%, #041A0B 100%);
  background-size:
    100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%,
    100% 100%,
    72px 38px,
    72px 38px,
    100% 100%;
  padding-bottom: 44px;
  border-bottom: 2px solid #00C243;
}

.uc89-boxed-container {
  width: 100%;
  max-width: var(--uc-box-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   2. HEADER: LARGE 220px 3D CUBE LOGO (LEFT) + 5-ITEM HORIZONTAL NAV (RIGHT)
      + DUAL WHITE-BORDERED PILL CTAS ("สมัครสมาชิก" GREEN / "เข้าสู่ระบบ" RED)
   ========================================================================== */
.uc89-ref-header {
  padding-top: 18px;
}

.uc89-ref-header-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: start;
  gap: 24px;
}

.uc89-ref-brand-logo {
  display: inline-block;
  text-align: center;
}

.uc89-ref-brand-logo img {
  width: 236px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 6px 18px rgba(0, 194, 67, 0.5));
  transition: transform 0.25s ease;
}

.uc89-ref-brand-logo:hover img {
  transform: scale(1.04);
}

.uc89-ref-nav-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  padding-top: 6px;
}

.uc89-ref-main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.uc89-ref-nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 1.08rem;
  font-weight: 500;
  color: #FFFFFF !important;
  border-radius: 3px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.uc89-ref-nav-item.active,
.uc89-ref-nav-item:hover {
  background-color: rgba(72, 82, 92, 0.72);
  color: #FFFFFF !important;
}

/* Dual Centered CTA Row below Header Logo/Menu */
.uc89-ref-dual-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 14px auto 22px;
}

.uc89-cta-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 146px;
  height: 44px;
  padding: 0 26px;
  background: linear-gradient(180deg, #00C243 0%, #00200B 100%);
  border: 2px solid #FFFFFF;
  border-radius: 10px;
  color: #FFFFFF !important;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: inset 0 -2px 5px rgba(0, 0, 0, 0.55), 0 4px 16px rgba(0, 194, 67, 0.45);
}

.uc89-cta-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 146px;
  height: 44px;
  padding: 0 26px;
  background: linear-gradient(180deg, #FF0000 0%, #200000 100%);
  border: 2px solid #FFFFFF;
  border-radius: 10px;
  color: #FFFFFF !important;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: inset 0 -2px 5px rgba(0, 0, 0, 0.55), 0 4px 16px rgba(255, 0, 0, 0.42);
}

.uc89-cta-green:hover,
.uc89-cta-red:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

/* ==========================================================================
   3. BOXED PROMOTIONAL HERO BANNER CAROUSEL (Matches 220px-320px Reference Slider)
   ========================================================================== */
.uc89-hero-slider-box {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 28px;
  border-radius: 8px;
  overflow: hidden;
  background: #021207;
  border: 1px solid rgba(97, 206, 112, 0.45);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.88), 0 0 18px rgba(0, 59, 255, 0.28);
}

.uc89-slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.uc89-slide-item {
  min-width: 100%;
  flex: 0 0 100%;
  display: block;
}

.uc89-slide-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 360;
  object-fit: cover;
  display: block;
}

.uc89-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #FFFFFF;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uc89-slider-arrow:hover {
  background: #00C243;
}

.uc89-slider-arrow.prev { left: 10px; }
.uc89-slider-arrow.next { right: 10px; }

.uc89-slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 7px;
  z-index: 10;
}

.uc89-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
}

.uc89-dot.active {
  background: #000000;
  box-shadow: 0 0 0 2px #61CE70;
}

/* ==========================================================================
   4. 6-CATEGORY REVIEW HUB SHOWCASE STRIP (Blended with Metallic-Gold Frame)
      (คาสิโนสด / สล็อต / แทงบอล / บาคาร่า / หวย / ไลน์สด)
   ========================================================================== */
.uc89-6cat-hub-strip {
  max-width: 1000px;
  margin: 0 auto 26px;
}

.uc89-6cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.uc89-6cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 8px;
  background: linear-gradient(180deg, rgba(6, 30, 14, 0.92) 0%, rgba(2, 12, 5, 0.96) 100%);
  border: 2px solid #5A626A;
  border-top-color: #FFC400;
  border-bottom-color: #00C243;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.75);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.uc89-6cat-card:hover,
.uc89-6cat-card.active {
  transform: translateY(-3px);
  border-color: #FFC400;
  box-shadow: 0 8px 22px rgba(0, 194, 67, 0.45), 0 0 12px rgba(255, 196, 0, 0.35);
}

.uc89-6cat-icon {
  font-size: 1.55rem;
  line-height: 1;
  margin-bottom: 6px;
}

.uc89-6cat-card strong {
  display: block;
  font-size: 0.92rem;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.uc89-6cat-card span {
  font-size: 0.73rem;
  color: #B1FAC7;
}

/* ==========================================================================
   5. 10-COLUMN METALLIC-SILVER & GOLD-CORNER GAME GALLERY WALL
      (Exact match to step_4.png: 10 columns x 2 rows = 20 cards on Desktop,
       2 columns on Mobile directly over the glowing neon perspective grid!)
   ========================================================================== */
.uc89-gallery-wall-wrap {
  max-width: 1040px;
  margin: 0 auto 30px;
}

.uc89-gallery-10col {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 10px;
  align-items: center;
}

.uc89-gallery-tile {
  position: relative;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  background: #080E0A;
  border: 1.5px solid #9CA3AF;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.85);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

/* Staggered Masonry feel matching reference gallery */
.uc89-gallery-tile:nth-child(odd) {
  transform: translateY(-3px);
}
.uc89-gallery-tile:nth-child(even) {
  transform: translateY(3px);
}

.uc89-gallery-tile:hover {
  transform: scale(1.08) translateY(0) !important;
  z-index: 5;
  border-color: #FFC400;
  box-shadow: 0 8px 24px rgba(0, 194, 67, 0.6), 0 0 14px rgba(255, 196, 0, 0.65);
}

.uc89-gallery-tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.uc89-tile-label {
  display: block;
  padding: 4px 4px;
  background: linear-gradient(180deg, #041A0B 0%, #010903 100%);
  border-top: 1px solid rgba(255, 196, 0, 0.45);
  color: #E9E9E9;
  font-size: 0.68rem;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uc89-gallery-tile:hover .uc89-tile-label {
  color: #FFC400;
  background: #00200B;
}

/* Sub-page Silo Quick Links Bar */
.uc89-silo-pills-row {
  max-width: 1000px;
  margin: 0 auto 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.uc89-silo-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: 6px;
  background: rgba(0, 20, 8, 0.82);
  border: 1px solid rgba(97, 206, 112, 0.4);
  color: #E9E9E9 !important;
  font-size: 0.82rem;
  font-weight: 400;
}

.uc89-silo-pill:hover,
.uc89-silo-pill.active {
  background: #00C243;
  border-color: #FFFFFF;
  color: #000000 !important;
  font-weight: 600;
}

/* ==========================================================================
   6. SINGLE-COLUMN LONG-FORM SEO CONTENT CANVAS (Matches step_7.png Reference)
      - Direct cosmic green gradient backdrop with glowing H1, H2, Collapsible TOC,
        Direct Answer, Comparison Table, Media Frames, Q&A ("ตอบ :"), and
        Gold Rounded Button "กลับสู่เมนูด้านบน"
   ========================================================================== */
.uc89-article-canvas {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 32px 34px;
  background: linear-gradient(180deg, rgba(3, 24, 10, 0.86) 0%, rgba(7, 45, 20, 0.78) 50%, rgba(3, 22, 9, 0.90) 100%);
  border: 1px solid rgba(97, 206, 112, 0.42);
  border-radius: 12px;
  box-shadow: 0 0 14px rgba(0, 59, 255, 0.25), 0 12px 36px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
}

/* Breadcrumb */
.uc89-breadcrumb {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(97, 206, 112, 0.25);
}

.uc89-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: #B1FAC7;
}

.uc89-breadcrumb a {
  color: #61CE70;
}

.uc89-breadcrumb .current {
  color: #FFC400;
  font-weight: 500;
}

/* Collapsible Сารบัญ (Table of Contents) Widget */
.uc89-toc-widget {
  background: rgba(0, 12, 5, 0.78);
  border: 1px solid rgba(0, 194, 67, 0.5);
  border-radius: 8px;
  padding: 14px 20px;
  margin: 0 0 24px;
}

.uc89-toc-widget summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  color: #FFC400;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.uc89-toc-widget summary::-webkit-details-marker {
  display: none;
}

.uc89-toc-list {
  margin-top: 12px;
  padding-left: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 20px;
  font-size: 0.92rem;
}

.uc89-toc-list a {
  color: #E9E9E9;
}

.uc89-toc-list a:hover {
  color: #FFC400;
  text-decoration: underline;
}

/* Typography inside Single-Column Article */
.uc89-article-canvas h1 {
  font-size: 1.85rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.35;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.uc89-lead-intro {
  font-size: 1.02rem;
  color: #E9E9E9;
  margin-bottom: 22px;
}

/* KPI 3-Grid */
.uc89-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}

.uc89-kpi-box {
  background: rgba(0, 15, 6, 0.82);
  border: 1px solid rgba(0, 194, 67, 0.45);
  border-left: 4px solid #FFC400;
  border-radius: 8px;
  padding: 12px 16px;
}

.uc89-kpi-val {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFC400;
}

.uc89-kpi-lbl {
  font-size: 0.85rem;
  color: #D8D8D8;
}

.uc89-article-sec {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(97, 206, 112, 0.25);
}

.uc89-article-canvas h2 {
  font-size: 1.42rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 4px solid #00C243;
}

.uc89-article-canvas h3 {
  font-size: 1.14rem;
  font-weight: 600;
  color: #FFFFFF;
  margin: 16px 0 8px;
}

.uc89-article-canvas p {
  color: #E9E9E9;
  margin-bottom: 14px;
}

.direct-answer {
  background: rgba(0, 20, 8, 0.72);
  border-left: 3px solid #61CE70;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  color: #FFFFFF !important;
  font-weight: 400;
}

.uc89-bullet-list {
  list-style: none;
  margin: 14px 0 20px;
  display: grid;
  gap: 10px;
}

.uc89-bullet-list li {
  background: rgba(0, 14, 6, 0.65);
  border: 1px solid rgba(97, 206, 112, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  color: #E9E9E9;
}

.uc89-bullet-list li strong {
  color: #61CE70;
}

/* Zero CLS Media Frame (800x450) */
figure.media-frame {
  margin: 20px auto;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid rgba(0, 194, 67, 0.55);
  background: #020E05;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
}

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

figure.media-frame figcaption {
  padding: 9px 14px;
  font-size: 0.84rem;
  color: #B1FAC7;
  text-align: center;
  background: rgba(0, 10, 4, 0.92);
}

/* Silo Sub-Cards Grid */
.uc89-silo-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.uc89-silo-card {
  background: rgba(0, 16, 7, 0.82);
  border: 1px solid rgba(0, 194, 67, 0.45);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.uc89-silo-card h3 {
  margin-top: 0;
  color: #FFC400;
}

.uc89-silo-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  color: #61CE70;
}

/* Comparison Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0 22px;
  border-radius: 8px;
  border: 1px solid rgba(0, 194, 67, 0.45);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(0, 12, 5, 0.88);
  font-size: 0.92rem;
}

th, td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(97, 206, 112, 0.22);
}

th {
  background: linear-gradient(180deg, #003814 0%, #001E0A 100%);
  color: #FFC400;
  font-weight: 600;
}

/* How-To Box */
.uc89-howto-box {
  background: rgba(0, 16, 7, 0.85);
  border: 1px solid rgba(255, 196, 0, 0.45);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 20px 0;
}

.uc89-howto-box h3 {
  margin-top: 0;
  color: #FFC400;
}

.uc89-howto-list {
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: #E9E9E9;
}

/* Reference-Style Open Q&A Section ("ตอบ : ...") matching step_7.png */
.uc89-ref-faq-list {
  margin-top: 16px;
  display: grid;
  gap: 18px;
}

.uc89-ref-faq-item {
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(177, 250, 199, 0.25);
}

.uc89-ref-faq-item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 8px;
}

.uc89-ref-faq-item p {
  margin: 0;
  color: #F0F0F0;
  line-height: 1.7;
}

/* Gold Rounded Rectangle Button "กลับสู่เมนูด้านบน" matching step_7.png */
.uc89-gold-backtop-wrap {
  text-align: center;
  margin: 30px 0 6px;
}

.uc89-gold-backtop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  height: 44px;
  padding: 0 32px;
  background-color: #F5B818;
  border-radius: 8px;
  color: #FFFFFF !important;
  font-size: 0.98rem;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.uc89-gold-backtop-btn:hover {
  background-color: #FFC400;
  color: #000000 !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   7. PURE BLACK #000000 CENTERED FOOTER (Exact match to step_7.png)
   ========================================================================== */
.uc89-pure-black-footer {
  background-color: #000000;
  padding: 44px 20px 36px;
  text-align: center;
}

.uc89-footer-big-logo img {
  width: 270px;
  height: auto;
  margin: 0 auto 24px;
  filter: drop-shadow(0 6px 18px rgba(0, 194, 67, 0.38));
}

.uc89-footer-5menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-bottom: 24px;
}

.uc89-footer-5menu a {
  color: #FFFFFF !important;
  font-size: 1rem;
  font-weight: 400;
}

.uc89-footer-5menu a:hover {
  color: #FFC400 !important;
}

/* Collapsible/Compact 17-Page Silo Directory inside Footer for SEO Crawlability */
.uc89-footer-silo-links {
  max-width: 980px;
  margin: 0 auto 24px;
  padding: 14px 18px;
  background: rgba(10, 18, 12, 0.75);
  border: 1px solid rgba(0, 194, 67, 0.25);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  font-size: 0.82rem;
}

.uc89-footer-silo-links a {
  color: #9AC0A0;
}

.uc89-footer-silo-links a:hover {
  color: #FFC400;
}

/* Two-Tone Green/Black DMCA PROTECTED Badge matching step_7.png */
.uc89-dmca-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid #333333;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.uc89-dmca-left {
  background-color: #58B947;
  color: #FFFFFF;
  padding: 3px 9px;
}

.uc89-dmca-right {
  background-color: #1A1A1A;
  color: #FFFFFF;
  padding: 3px 10px;
}

.uc89-copyright {
  font-size: 0.9rem;
  color: #FFFFFF;
}

/* Circular Dark Back-to-Top Floating Button at Bottom-Right matching step_7.png */
.uc89-float-top-circle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1050;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(24, 24, 24, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #FFFFFF !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.uc89-float-top-circle:hover {
  background: #00C243;
  border-color: #FFFFFF;
}

/* Mobile 50/50 Bottom Bar ("ทางเข้าเล่น" Red | "สมัครสมาชิก" Gold) */
.uc89-mobile-bottom-5050 {
  display: none;
}

/* ==========================================================================
   8. RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  .uc89-ref-header-row {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 12px;
  }
  .uc89-ref-nav-wrap {
    align-items: center;
  }
  .uc89-ref-main-nav {
    justify-content: center;
  }
  .uc89-gallery-10col {
    grid-template-columns: repeat(5, 1fr);
  }
  .uc89-6cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767.98px) {
  .uc89-ref-brand-logo img {
    width: 210px;
  }
  .uc89-ref-nav-item {
    padding: 7px 12px;
    font-size: 0.88rem;
  }
  .uc89-ref-dual-cta {
    gap: 12px;
    margin: 10px auto 16px;
  }
  .uc89-cta-green,
  .uc89-cta-red {
    min-width: 136px;
    height: 40px;
    padding: 0 18px;
    font-size: 0.92rem;
  }
  .uc89-6cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  /* Mobile 2-Column Large Metallic-Gold Framed Gallery Cards matching step_13.png */
  .uc89-gallery-10col {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .uc89-gallery-tile:nth-child(odd),
  .uc89-gallery-tile:nth-child(even) {
    transform: none;
  }
  .uc89-article-canvas {
    padding: 18px 14px 24px;
  }
  .uc89-article-canvas h1 {
    font-size: 1.4rem;
  }
  .uc89-article-canvas h2 {
    font-size: 1.18rem;
  }
  .uc89-toc-list,
  .uc89-kpi-row,
  .uc89-silo-cards-grid {
    grid-template-columns: 1fr;
  }
  .uc89-pure-black-footer {
    padding-bottom: 76px;
  }
  .uc89-float-top-circle {
    bottom: 64px;
    right: 14px;
    width: 38px;
    height: 38px;
  }
  .uc89-mobile-bottom-5050 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1060;
    height: 48px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.9);
  }
  .uc89-mob-btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FF0000;
    color: #FFFFFF !important;
    font-size: 1.15rem;
    font-weight: 600;
  }
  .uc89-mob-btn-register {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFC400;
    color: #000000 !important;
    font-size: 1.15rem;
    font-weight: 600;
  }
}
