/* ==========================================================================
   BETFLIK4U — Bootstrap 5 static clone
   Theme layer on top of Bootstrap 5.3
   ========================================================================== */

:root {
  --bf-dark: #0a0a0a;
  --bf-panel: rgba(0, 0, 0, .54);
  --bf-purple: #6e00af;
  --bf-purple-1: #6b01a9;
  --bf-purple-2: #2f004a;
  --bf-purple-3: #3f0068;
  --bf-purple-4: #1c002c;
  --bf-gold: #ffe267;
  --bf-red: #ab1516;
  --bf-green: #04c41e;
  --bf-grad: linear-gradient(180deg, #6b01a9 0%, #2f004a 100%);
  --bf-grad-soft: linear-gradient(180deg, #3f0068 0%, #1c002c 100%);
  --bf-container: 1140px;
}

/* ---------- base ---------- */

body {
  background-color: var(--bf-dark);
  background-image: url("../img/bg-body.webp");
  background-repeat: repeat;
  background-size: 38%;
  background-attachment: scroll;
  color: #fff;
  font-family: "Kanit", "Noto Sans Thai", sans-serif;
  font-weight: 300;
  padding-bottom: 64px; /* room for the fixed bottom bar */
}

a { text-decoration: none; }
img { max-width: 100%; height: auto; }

.bf-container {
  max-width: var(--bf-container);
  margin-inline: auto;
  padding-inline: 10px;
  width: 100%;
}

/* Panels that sit over the tiled background */
.bf-panel { background-color: var(--bf-panel); }

/* Opaque content blocks, container-width, inside a section */
.bf-block { padding: 10px; }
.bf-block--dark      { background-color: #141414; }
.bf-block--ranktitle { background-color: #170024; }
.bf-block--games     { background-color: #0c0d0d; }

.bf-gold { color: var(--bf-gold); }

.bf-title {
  color: var(--bf-gold);
  font-size: 33px;
  font-weight: 200;
  line-height: 1.3;
}

.bf-lead {
  font-size: 14px;
  font-weight: 300;
  color: #fff;
}

/* Purple gradient bar used as a section heading */
.bf-bar-title {
  background: var(--bf-grad);
  border-radius: 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  padding: 12px 16px;
  text-align: center;
}

/* ---------- header ---------- */

.bf-header-top {
  background-color: #000;
  background-image: url("../img/bg-header.webp");
  background-size: cover;
  background-position: 50% 50%;
  position: relative;
}
.bf-header-top > .bf-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: .75;
  pointer-events: none;
}
.bf-header-top > .bf-container { position: relative; z-index: 1; }

.bf-banking-badge { max-width: 260px; }

.bf-logo { max-width: 260px; }

.bf-btn-register {
  background: var(--bf-grad);
  border: 0;
  border-radius: 50px;
  color: #fff;
  font-size: 25px;
  font-weight: 500;
  padding: 10px 26px;
  line-height: 1.2;
  white-space: nowrap;
  transition: filter .2s ease;
}
.bf-btn-register:hover { color: #fff; filter: brightness(1.2); }

/* main nav strip */
.bf-nav {
  background: var(--bf-grad);
  padding: 10px 0;
}
.bf-nav-btn {
  background-color: #000;
  border: 0;
  border-radius: 5px;
  color: #fff;
  display: block;
  font-size: 17px;
  font-weight: 500;
  padding: 8px 5px;
  text-align: center;
  transition: background-color .2s ease;
}
.bf-nav-btn:hover { background-color: #2a2a2a; color: #fff; }
.bf-nav-btn.is-active { background-color: var(--bf-red); }
.bf-nav-btn.is-active:hover { background-color: #c81b1c; }

/* info strip */
.bf-infobar {
  background-color: var(--bf-purple);
  font-size: 13px;
  padding: 6px 0;
}
.bf-infobar a { color: #fff; }
.bf-infobar img { height: 14px; width: auto; }

/* mobile-only header extras */
.bf-strip-light {
  background: linear-gradient(180deg, #fff 0%, #cacaca 100%);
  padding: 6px 0;
}
.bf-strip-green {
  background-color: var(--bf-green);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  padding: 4px 0;
  text-align: center;
}
.bf-btn-flat {
  background: var(--bf-grad);
  border: 0;
  border-radius: 0;
  color: #fff;
  display: block;
  font-size: 16px;
  font-weight: 500;
  padding: 10px 5px;
  text-align: center;
}
.bf-btn-flat:hover { color: #fff; filter: brightness(1.2); }

/* marquee (news ticker) */
.bf-marquee {
  background: var(--bf-grad-soft);
  overflow: hidden;
  padding: 6px 0;
}
.bf-marquee__track {
  display: inline-flex;
  gap: 3rem;
  white-space: nowrap;
  will-change: transform;
  animation: bf-marquee 30s linear infinite;
}
.bf-marquee__item { font-size: 13px; }
@keyframes bf-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- continuous logo / card ticker ---------- */

/* The track holds two identical copies of the item list and slides by
   -50%, so the loop is seamless. Percentages on `transform` resolve
   against the element's own width, which requires the track to have a
   real width -- hence fixed px item widths rather than percentages. */
.bf-ticker { overflow: hidden; }
.bf-ticker__track {
  display: flex;
  width: max-content;
  animation: bf-marquee var(--bf-ticker-speed, 30s) linear infinite;
}
.bf-ticker:hover .bf-ticker__track { animation-play-state: paused; }
.bf-ticker__item {
  flex: 0 0 auto;
  padding-inline: 5px;
  width: var(--bf-item-w, 200px);
}
.bf-ticker__item img { display: block; width: 100%; }

.bf-ticker--brands  { --bf-item-w: 90px; }
.bf-ticker--winners { --bf-item-w: 278px; }
.bf-ticker--slips   { --bf-item-w: 272px; }

@media (max-width: 1199.98px) {
  .bf-ticker--winners { --bf-item-w: 230px; }
  .bf-ticker--slips   { --bf-item-w: 220px; }
}
@media (max-width: 767.98px) {
  .bf-ticker--brands  { --bf-item-w: 80px; }
  .bf-ticker--winners { --bf-item-w: 165px; }
  .bf-ticker--slips   { --bf-item-w: 150px; }
}

/* ---------- article / copy block ---------- */

.bf-article-box {
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 6px;
  height: 100%;
  padding: 18px;
}
.bf-article-box h2 {
  color: var(--bf-gold);
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}
.bf-article-box p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
  text-align: center;
  margin-bottom: 0;
}

.bf-video {
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 6px;
  overflow: hidden;
  width: 100%;
}
.bf-video iframe { border: 0; height: 100%; width: 100%; }

/* ---------- ranking ---------- */

.bf-ranking-title {
  color: #fff;
  font-size: 46px;
  font-weight: 600;
  line-height: 1;
  border-left: 6px solid var(--bf-gold);
  padding-left: 14px;
}
.bf-ranking-sub {
  color: var(--bf-gold);
  font-size: 20px;
  font-weight: 400;
}

.bf-rank-head { display: flex; gap: 8px; margin-bottom: 12px; }
.bf-rank-head span {
  background: var(--bf-grad);
  border-radius: 30px;
  flex: 1 1 25%;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 5px;
  text-align: center;
}

.bf-rank-row {
  align-items: center;
  background: var(--bf-grad);
  border-radius: 20px;
  display: flex;
  margin-bottom: 10px;
  padding: 10px 0;
}
.bf-rank-row.is-top { border: 2px solid var(--bf-gold); padding: 4px 0; }
.bf-rank-row > div {
  flex: 1 1 25%;
  text-align: center;
  min-width: 0;
}
.bf-rank-row .bf-rank-pos { font-size: 22px; font-weight: 600; }
.bf-rank-row .bf-rank-pos img { max-height: 44px; width: auto; }
.bf-rank-row .bf-rank-user { font-size: 21px; font-weight: 400; }
.bf-rank-row .bf-rank-amount { font-size: 22px; font-weight: 400; }
.bf-rank-row .bf-rank-prize { font-size: 17px; font-weight: 400; }

@media (max-width: 575.98px) {
  .bf-ranking-title { font-size: 32px; }
  .bf-ranking-sub { font-size: 15px; }
  .bf-rank-head span { font-size: 12px; }
  .bf-rank-row .bf-rank-user,
  .bf-rank-row .bf-rank-amount { font-size: 15px; }
  .bf-rank-row .bf-rank-prize { font-size: 13px; }
  .bf-rank-row .bf-rank-pos { font-size: 17px; }
  .bf-rank-row .bf-rank-pos img { max-height: 32px; }
}

/* ---------- reviews (stacked slider) ---------- */

.bf-reviews {
  position: relative;
  height: 190px;
}
.bf-review {
  align-items: center;
  background: var(--bf-grad);
  border-radius: 20px;
  display: flex;
  gap: 14px;
  left: 0;
  opacity: 0;
  padding: 14px 18px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) scale(.82);
  transition: all .6s cubic-bezier(.4, 0, .2, 1);
  z-index: 1;
}
.bf-review.is-current { opacity: 1; transform: translateY(-50%) scale(1); z-index: 3; }
.bf-review.is-before  { opacity: .45; transform: translateY(-110%) scale(.82); z-index: 2; }
.bf-review.is-after   { opacity: .45; transform: translateY(10%) scale(.82); z-index: 2; }
.bf-review__avatar { font-size: 44px; line-height: 1; color: #fff; }
.bf-review__name { font-size: 15px; font-weight: 500; }
.bf-review__text { font-size: 14px; font-weight: 300; }
.bf-review__date { font-size: 13px; font-weight: 300; opacity: .85; margin-bottom: 0; }

/* ---------- stars ---------- */

.bf-stars { display: flex; gap: 10px; justify-content: center; }
.bf-stars i {
  color: var(--bf-gold);
  font-size: 34px;
  animation: bf-star-pulse 2.4s ease-in-out infinite;
}
.bf-stars i:nth-child(2) { animation-delay: .15s; }
.bf-stars i:nth-child(3) { animation-delay: .30s; }
.bf-stars i:nth-child(4) { animation-delay: .45s; }
.bf-stars i:nth-child(5) { animation-delay: .60s; }
@keyframes bf-star-pulse {
  0%, 70%, 100% { transform: scale(1); }
  80%           { transform: scale(1.25) rotate(-8deg); }
}

/* ---------- game grid ---------- */

.bf-game-card {
  border-radius: 6px;
  display: block;
  overflow: hidden;
  position: relative;
}
.bf-game-card img {
  display: block;
  transition: transform .35s ease;
  width: 100%;
}
.bf-game-card::after {
  background: rgba(107, 1, 169, .45);
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity .35s ease;
}
.bf-game-card:hover img { transform: scale(1.06); }
.bf-game-card:hover::after { opacity: 1; }

/* ---------- blog cards ---------- */

.bf-post { height: 100%; }
.bf-post img { border-radius: 4px; width: 100%; }
.bf-post__title {
  color: #fff;
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  margin-top: 10px;
}
.bf-post__title:hover { color: var(--bf-gold); }
.bf-post__excerpt { font-size: 13px; font-weight: 300; opacity: .8; margin: 4px 0 8px; }
.bf-post__more { color: #fff; font-size: 14px; font-weight: 500; }
.bf-post__more:hover { color: var(--bf-gold); }

/* ---------- footer ---------- */

.bf-footer { background-color: #000; }
.bf-footer h3 {
  color: var(--bf-gold);
  font-size: 16px;
  font-weight: 500;
}
.bf-footer p { font-size: 13px; font-weight: 300; line-height: 1.9; }
.bf-footer ul { list-style: none; margin: 0; padding: 0; }
.bf-footer ul a {
  color: #fff;
  display: inline-block;
  font-size: 14px;
  font-weight: 300;
  padding: 5px 0;
}
.bf-footer ul a:hover { color: var(--bf-gold); }
.bf-footer .bf-copyright { font-size: 12px; font-weight: 300; opacity: .75; }

/* ---------- fixed chrome ---------- */

.bf-social-rail {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1030;
}
.bf-social-rail a { display: block; line-height: 0; }
.bf-social-rail img { width: 34px; }

.bf-float-telegram {
  bottom: 76px;
  position: fixed;
  right: 16px;
  width: 54px;
  z-index: 1030;
}

.bf-bottom-bar {
  background: var(--bf-grad);
  bottom: 0;
  left: 0;
  position: fixed;
  right: 0;
  z-index: 1040;
}
.bf-bottom-bar a {
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  font-size: 13px;
  gap: 2px;
  justify-content: center;
  padding: 8px 2px;
}
.bf-bottom-bar a:last-child { border-right: 0; }
.bf-bottom-bar a i { font-size: 19px; }
.bf-bottom-bar a.is-active { background: var(--bf-red); }

/* ---------- contact popup ---------- */

.bf-popup-toggle {
  align-items: center;
  background: var(--bf-grad);
  border: 0;
  border-radius: 8px 0 0 8px;
  bottom: 150px;
  color: #fff;
  display: flex;
  height: 46px;
  justify-content: center;
  position: fixed;
  right: 0;
  width: 30px;
  z-index: 1035;
}

.bf-popup {
  background: #14001f;
  border: 1px solid rgba(255, 226, 103, .35);
  border-radius: 14px;
  bottom: 150px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .6);
  display: none;
  padding: 16px;
  position: fixed;
  right: 16px;
  width: 290px;
  z-index: 1045;
}
.bf-popup.is-open { display: block; }
.bf-popup__close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  position: absolute;
  right: 10px;
  top: 6px;
}
.bf-popup__avatar { border-radius: 50%; width: 46px; }
.bf-popup__name { font-size: 15px; font-weight: 500; }
.bf-popup__status { font-size: 12px; font-weight: 300; opacity: .8; }
.bf-popup__dot {
  background: #35d64a;
  border-radius: 50%;
  display: inline-block;
  height: 8px;
  margin-left: 4px;
  width: 8px;
}
.bf-popup__body { font-size: 13px; font-weight: 300; min-height: 42px; }
.bf-popup__badge {
  background: rgba(255, 226, 103, .12);
  border-radius: 20px;
  color: var(--bf-gold);
  display: inline-block;
  font-size: 11px;
  margin-bottom: 10px;
  padding: 3px 10px;
}
.bf-popup__btn {
  align-items: center;
  border-radius: 10px;
  color: #fff;
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  padding: 8px 12px;
}
.bf-popup__btn:hover { color: #fff; filter: brightness(1.15); }
.bf-popup__btn img { width: 26px; }
.bf-popup__btn--line { background: #06c755; }
.bf-popup__btn--telegram { background: #2aabee; }
.bf-popup__btn strong { display: block; font-size: 14px; font-weight: 500; line-height: 1.2; }
.bf-popup__btn small { font-size: 11px; opacity: .9; }

/* ---------- misc ---------- */

.bf-blink { animation: bf-blink 1.2s steps(2, start) infinite; }
@keyframes bf-blink { to { visibility: hidden; } }

@media (max-width: 767.98px) {
  .bf-title { font-size: 22px; }
  .bf-bar-title { font-size: 15px; }
  .bf-logo { max-width: 190px; }
  .bf-btn-register { font-size: 16px; padding: 8px 16px; }
  .bf-social-rail img { width: 28px; }
}
