/* ============================================================
   UFANICE clone - Bootstrap 5 theme layer
   Design tokens lifted from the reference site
   ============================================================ */

:root {
  --gold:        #f1c40f;
  --gold-light:  #ffe27a;
  --gold-pale:   #ffe9a5;
  --gold-deep:   #8a6516;
  --ink:         #1b1919;
  --ink-900:     #080808;
  --ink-800:     #0b0e11;
  --ink-700:     #111111;
  --ink-600:     #1c1c1c;

  --header-h:    72px;
  --shell:       1300px;
}

body {
  background: var(--ink);
  color: #fff;
  font-family: "Prompt", system-ui, sans-serif;
  overflow-x: hidden;
  /* leave room for the fixed bottom bar */
  padding-bottom: 62px;
}

a { text-decoration: none; }

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 16px;
}

/* Shared gold heading + underline ------------------------------------ */
.brand-title {
  color: var(--gold-pale);
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin: 0;
  text-shadow: 0 0 12px #000, 0 0 25px rgba(255, 215, 100, .7);
}

.brand-line {
  height: 2px;
  width: 100%;
  max-width: 760px;
  margin: 14px auto 0;
  background: linear-gradient(90deg,
      rgba(156, 103, 39, 0) 0%,
      rgba(225, 164, 19, .5) 32%,
      rgb(241, 196, 19) 49%,
      rgba(240, 163, 15, .5) 65%,
      rgba(253, 247, 175, 0) 100%);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  background: rgba(0, 0, 0, .9);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .7);
  backdrop-filter: blur(6px);
}

.header-inner {
  max-width: var(--shell);
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-wrap img { height: 44px; width: auto; display: block; }

.nav-desktop { display: flex; align-items: center; gap: 4px; }

.nav-item {
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
  padding: 6px 9px;
  border-radius: 6px;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: background-color .18s, border-color .18s, color .18s;
}

.nav-item:hover { color: var(--gold-light); background: rgba(241, 196, 15, .08); }

.nav-item.active {
  color: var(--gold);
  background: var(--ink-600);
  border-color: var(--gold);
}

.btn-signup {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: 0;
  border-radius: 6px;
  padding: 5px 14px;
  background: linear-gradient(180deg, #ff6666 0%, #c40000 100%);
  box-shadow: 0 0 11px rgba(255, 82, 82, .75), 0 0 22px rgba(255, 83, 83, .55);
  transition: filter .18s, transform .18s;
}

.btn-signup:hover { filter: brightness(1.1); transform: translateY(-1px); }

.nav-toggle {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  border-radius: 6px;
  width: 42px;
  height: 38px;
  font-size: 18px;
  line-height: 1;
}

/* Offcanvas (mobile menu) */
.offcanvas.ufa-menu {
  background: #0a0a0a;
  border-left: 1px solid rgba(241, 196, 15, .25);
}

.ufa-menu .offcanvas-title { color: var(--gold); font-weight: 700; }
.ufa-menu .btn-close { filter: invert(1) grayscale(1) brightness(2); }
.ufa-menu .nav-item { display: block; margin-bottom: 8px; font-size: 16px; padding: 10px 12px; }

/* ============================================================
   Hero carousel
   ============================================================ */
.hero-carousel { background: #000; }
.hero-carousel .carousel-item img { width: 100%; height: auto; display: block; }

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next { width: 8%; opacity: 0; transition: opacity .2s; }
.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next { opacity: .85; }

.hero-carousel .carousel-indicators [data-bs-target] {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, .45); border: 0; margin-inline: 4px;
}
.hero-carousel .carousel-indicators .active { background: var(--gold); }

/* ============================================================
   Hero action bar (login / register)
   ============================================================ */
.hero-action-bar {
  padding: 28px 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(245, 197, 66, .12), rgba(0, 0, 0, 0) 70%),
    linear-gradient(180deg, #0a0a0a 0%, #000 100%);
}

.hero-action-inner {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.hero-btn {
  min-width: 230px;
  padding: 12px 28px;
  font-size: 20px;
  font-weight: 800;
  border-radius: 14px;
  border: 0;
  transition: transform .18s, box-shadow .18s, filter .18s;
}

.hero-btn:hover { transform: translateY(-2px); }

.hero-btn.login {
  color: #f5c542;
  border: 2px solid transparent;
  background:
    linear-gradient(#000, #000) padding-box,
    linear-gradient(135deg, #fff1a8, #f5c542, #c99a2e, #8a6516) border-box;
}

.hero-btn.login:hover { box-shadow: 0 0 22px rgba(245, 197, 66, .45); }

.hero-btn.register {
  color: #000;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
}

.hero-btn.register:hover { box-shadow: 0 6px 26px rgba(241, 196, 15, .5); }

/* ============================================================
   Brand strip (gold band + logo slider)
   ============================================================ */
.bg-brand {
  position: relative;
  padding: 26px 0 34px;
  background: #0d0d0d;
  overflow: hidden;
}

/* the gold wedges bleeding in from both edges */
.bg-brand::before,
.bg-brand::after {
  content: "";
  position: absolute;
  top: -30%;
  width: 320px;
  height: 160%;
  background: linear-gradient(180deg, #f8d12f, #b8860b);
  pointer-events: none;
}
.bg-brand::before { left: -170px;  border-radius: 0 50% 50% 0 / 0 50% 50% 0; }
.bg-brand::after  { right: -170px; border-radius: 50% 0 0 50% / 50% 0 0 50%; }

.brand-slider { position: relative; z-index: 2; }
.brand-title-box { position: relative; z-index: 3; margin-bottom: 22px; }

.brand-viewport { overflow: hidden; margin-inline: 46px; }

.brand-track { display: flex; will-change: transform; }

.brand-card {
  flex: 0 0 auto;
  width: 196px;
  height: 184px;
  padding: 0 6px;
  perspective: 900px;
}

.brand-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .5s;
}

.brand-card:hover .brand-card-inner { transform: rotateX(180deg); }

.brand-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
}

.brand-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-face--back { transform: rotateX(180deg); }
.brand-face--back img { filter: grayscale(1); }

/* slider arrows */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, .55);
  background: rgba(255, 255, 255, .85);
  color: #000;
  font-size: 16px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.nav-btn:hover { background: #fff; }
.nav-btn--prev { left: 0; }
.nav-btn--next { right: 0; }

/* ============================================================
   Intro / article blocks
   ============================================================ */
.ufa-intro {
  background: var(--ink-900);
  padding: 32px 0 48px;
  text-align: center;
}

.ufa-intro__banner { margin-bottom: 24px; }
.ufa-intro__banner img { max-width: 100%; height: auto; display: block; margin-inline: auto; }

.ufa-intro__logo-bar { display: flex; justify-content: center; margin: 18px 0 8px; }
.ufa-intro__logo-bar img { height: 70px; width: auto; }

.ufa-intro__title {
  color: var(--gold);
  font-size: 36px;
  font-weight: 700;
  margin: 24px 0 0;
  text-shadow: 0 0 10px rgba(255, 200, 0, .4);
}

.ufa-intro__text { max-width: 1070px; margin-inline: auto; }

.ufa-intro__text p {
  font-size: 20px;
  line-height: 1.85;
  margin: 0 0 18px;
}

.text-left { text-align: left; }

/* ============================================================
   UVA call-to-action block
   ============================================================ */
.uva-banner img { width: 100%; height: auto; display: block; }

.uva-cta {
  position: relative;
  background: var(--ink-700);
  padding: 72px 24px;
  text-align: center;
  overflow: hidden;
}

.uva-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(241, 196, 15, .16), transparent 62%);
  pointer-events: none;
}

.uva-content { position: relative; z-index: 2; max-width: 700px; margin-inline: auto; }

.uva-icon-ring {
  width: 68px;
  height: 68px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: #1a1200;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 0 40px rgba(241, 196, 15, .65);
}

.uva-title {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 12px;
  color: #fff;
}

.uva-name {
  display: block;
  color: var(--gold-light);
  text-shadow: 0 0 18px rgba(241, 196, 15, .55);
}

.uva-sub {
  font-size: 15px;
  color: rgba(255, 226, 122, .72);
  margin: 0 0 28px;
}

.uva-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.uva-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-light);
  border-radius: 999px;
  background: rgba(241, 196, 15, .1);
  border: 1px solid rgba(241, 196, 15, .32);
}

.uva-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.uva-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 38px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  border: 0;
  transition: transform .18s, box-shadow .18s;
}

.uva-btn:hover { transform: translateY(-2px); }

.uva-btn--primary {
  color: #1a1200;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  box-shadow: 0 6px 30px rgba(241, 196, 15, .55);
}

.uva-btn--secondary {
  color: var(--gold-light);
  background: rgba(241, 196, 15, .08);
  border: 1px solid rgba(241, 196, 15, .42);
}

/* ============================================================
   Jackpot slider
   ============================================================ */
.jackpot-section {
  background: var(--ink-900);
  padding: 30px 0;
  position: relative;
}

.jackpot-viewport { overflow: hidden; margin-inline: 46px; }
.jackpot-track { display: flex; will-change: transform; }

.jackpot-slide {
  flex: 0 0 auto;
  width: 268px;
  height: 268px;
  margin-right: 16px;
}

.jackpot-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ============================================================
   Blog
   ============================================================ */
.ufa-blog { background: var(--ink-800); padding: 20px 0 70px; }
.ufa-blog__inner { max-width: 1160px; margin-inline: auto; padding-inline: 16px; }

.ufa-blog__title {
  color: var(--gold-pale);
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 15px;
  text-shadow: 0 0 12px #000, 0 0 25px rgba(255, 215, 100, .7);
}

.ufa-blog__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 40px;
  margin-top: 28px;
}

.ufa-blog__card {
  display: flex;
  gap: 18px;
  color: #fff;
  transition: transform .2s;
}

.ufa-blog__card:hover { transform: translateY(-3px); }

.ufa-blog__thumb {
  flex: 0 0 170px;
  height: 110px;
  overflow: hidden;
  border-radius: 6px;
  background: #000;
}

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

.ufa-blog__card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-light);
  margin: 0 0 8px;
}

.ufa-blog__text {
  font-size: 14px;
  line-height: 1.7;
  color: #cfcfcf;
  margin: 0;
}

/* ============================================================
   Footer
   ============================================================ */
.ufa-copy {
  background: var(--ink-800);
  color: #e0e0e0;
  padding: 26px 16px 20px;
  text-align: center;
}

.ufa-copy__inner { max-width: 1160px; margin-inline: auto; }
.ufa-copy__logo img { height: 62px; width: auto; margin-bottom: 14px; }
.ufa-copy__text { font-size: 14px; line-height: 1.9; margin: 0 auto; max-width: 1000px; }

.ufa-copy__partners {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 22px;
}

.ufa-copy__partners img { height: 38px; width: auto; opacity: .9; }

.ufa-copy__bottom-wrap {
  background: #000;
  height: 65px;
  display: grid;
  place-items: center;
}

.ufa-copy__bottom { margin: 0; font-size: 14px; color: #fff; }
.ufa-copy__bottom span { color: var(--gold); font-weight: 700; }

/* ============================================================
   Floating contact + fixed bottom bar + back to top
   ============================================================ */
.contact-float {
  position: fixed;
  right: 14px;
  bottom: 86px;
  width: 65px;
  height: 65px;
  z-index: 60;
  cursor: pointer;
  animation: float-bob 2.4s ease-in-out infinite;
}

.contact-float img { width: 100%; height: 100%; object-fit: contain; display: block; }

@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

.bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  background: linear-gradient(180deg, #f8d12f 0%, #f0b90b 100%);
  box-shadow: 0 -3px 8px rgba(0, 0, 0, .35);
}

.bottom-bar__inner {
  max-width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.bottom-bar__item {
  background: transparent;
  border: 0;
  color: #000;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.bottom-bar__item:hover { background: rgba(0, 0, 0, .08); }
.bottom-bar__icon { font-size: 15px; }

.back-to-top {
  position: absolute;
  right: 14px;
  top: -46px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #000;
  box-shadow: 0 0 8px rgba(0, 0, 0, .45);
  display: grid;
  place-items: center;
}

.back-to-top__arrow {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid #000;
}

/* ============================================================
   Decorative particles
   ============================================================ */
.homepage-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hp {
  position: absolute;
  bottom: -20px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(241, 196, 15, .55);
  animation: hp-rise linear infinite;
}

@keyframes hp-rise {
  0%   { transform: translateY(0) scale(1);   opacity: 0; }
  10%  { opacity: .8; }
  100% { transform: translateY(-110vh) scale(.4); opacity: 0; }
}

.home-section { position: relative; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1199.98px) {
  .brand-title, .ufa-intro__title, .ufa-blog__title { font-size: 30px; }
  .uva-title, .uva-name { font-size: 32px; }
}

@media (max-width: 991.98px) {
  .ufa-blog__grid { grid-template-columns: 1fr; }
  .ufa-intro__text p { font-size: 17px; }
  .brand-viewport, .jackpot-viewport { margin-inline: 16px; }
  .nav-btn { display: none; }
}

@media (max-width: 767.98px) {
  .brand-title, .ufa-intro__title, .ufa-blog__title { font-size: 23px; }
  .uva-title, .uva-name { font-size: 26px; }
  .uva-cta { padding: 48px 16px; }
  .hero-btn { min-width: 0; flex: 1 1 44%; font-size: 16px; padding: 10px 14px; }
  .hero-action-inner { gap: 12px; padding-inline: 16px; }
  .logo-wrap img { height: 36px; }
  .brand-card { width: 150px; height: 142px; }
  .jackpot-slide { width: 180px; height: 180px; }
  .bottom-bar__item { font-size: 12px; flex-direction: column; gap: 3px; }
  .contact-float { width: 54px; height: 54px; bottom: 78px; }
  .ufa-blog__thumb { flex-basis: 120px; height: 84px; }
  .bg-brand::before, .bg-brand::after { width: 180px; }
}

/* ============================================================
   GRANT (theme 37) additions — ส่วนที่เพิ่มจาก raw ufanice
   - hero-default: hero สำรองเมื่อเว็บยังไม่ใส่รูปสไลด์
   - brand/jackpot card: เดิมเป็นแบนเนอร์ jpg ของเว็บต้นทาง
     เปลี่ยนเป็นโลโก้ค่ายเกม (webp โปร่ง) จึงใช้ contain + พื้นการ์ดเข้ม
   - contact-float: เดิมเป็นรูป line.png ของเว็บต้นทาง → ปุ่มกลมไอคอน
   - footer-menu: เมนู footer จาก CMS (design เดิมไม่มี)
   ============================================================ */
.hero-default {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 74px 16px 66px;
  background:
    radial-gradient(circle at 50% 0%, rgba(241, 196, 15, .22), transparent 55%),
    radial-gradient(circle at 15% 90%, rgba(241, 196, 15, .10), transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(241, 196, 15, .10), transparent 45%),
    linear-gradient(180deg, #151310 0%, #000 100%);
}
.hero-default::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg,
      rgba(156, 103, 39, 0) 0%,
      rgba(225, 164, 19, .5) 32%,
      rgb(241, 196, 19) 49%,
      rgba(240, 163, 15, .5) 65%,
      rgba(253, 247, 175, 0) 100%);
}
.hero-default__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-light);
  border-radius: 999px;
  background: rgba(241, 196, 15, .1);
  border: 1px solid rgba(241, 196, 15, .35);
}
.hero-default__title {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--gold-pale);
  text-shadow: 0 0 14px #000, 0 0 30px rgba(255, 215, 100, .65);
}
.hero-default__sub {
  max-width: 760px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.8;
  color: #e6e0cd;
}
@media (max-width: 767.98px) {
  .hero-default { padding: 46px 16px 42px; }
  .hero-default__title { font-size: 30px; }
  .hero-default__sub { font-size: 15px; }
}

/* การ์ดโลโก้ค่ายเกม (brand slider) — โลโก้โปร่งบนพื้นการ์ดเข้มขอบทอง */
.brand-face {
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 30%, rgba(241, 196, 15, .14), transparent 70%),
    linear-gradient(180deg, #191713 0%, #0b0a08 100%);
  border: 1px solid rgba(241, 196, 15, .28);
}
.brand-face img { object-fit: contain; padding: 18px; }
.brand-card__name {
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-pale);
  text-align: center;
  pointer-events: none;
}

/* jackpot slider → แถวค่ายเกมแนะนำ ใช้โลโก้ contain บนพื้นเรืองทอง */
.jackpot-slide {
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 45%, rgba(241, 196, 15, .16), transparent 68%),
    linear-gradient(180deg, #14120e 0%, #080808 100%);
  border: 1px solid rgba(241, 196, 15, .22);
}
.jackpot-slide img { object-fit: contain; padding: 26px; }

/* ปุ่มลอยติดต่อ (แทนรูป line.png ของเว็บต้นทาง) */
.contact-float {
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 34px;
  color: #fff;
  background: linear-gradient(180deg, #08cf58 0%, #06b34b 100%);
  box-shadow: 0 6px 22px rgba(6, 179, 75, .55);
}

/* เมนู footer จาก CMS */
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin-top: 20px;
}
.footer-menu a {
  display: inline-block;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  border: 1px solid rgba(241, 196, 15, .32);
  border-radius: 999px;
  background: rgba(241, 196, 15, .07);
  transition: background-color .18s, color .18s;
}
.footer-menu a:hover { color: var(--gold-light); background: rgba(241, 196, 15, .16); }

/* แบนเนอร์ INTRO (websetting.intro_slides) เหนือเนื้อหา */
.grant-intro { background: var(--ink-900); padding: 28px 0 4px; }
.grant-intro .carousel-item img {
  width: 100%; height: auto; display: block;
  border-radius: 10px;
}
