/* ============================================================
 * AX88 Slot - ax88slot.click
 * Core base stylesheet (prefix: w3f78-)
 * Mobile-first, max-width 430px viewport
 * Palette: #BF360C | #FF5722 | #E65100 | #BC8F8F | #34495E
 * ============================================================ */

:root {
  --w3f78-primary: #FF5722;
  --w3f78-deep: #BF360C;
  --w3f78-flame: #E65100;
  --w3f78-soft: #BC8F8F;
  --w3f78-ink: #34495E;
  --w3f78-bg: #1a0f0c;
  --w3f78-bg-alt: #2a1612;
  --w3f78-surface: #34495E;
  --w3f78-text: #fff5f2;
  --w3f78-muted: #d8b4a8;
  --w3f78-gold: #ffd27d;
  --w3f78-radius: 14px;
  --w3f78-shadow: 0 8px 24px rgba(0,0,0,.45);
  --w3f78-max: 430px;
  --w3f78-header-h: 60px;
  --w3f78-bottom-h: 62px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, system-ui, sans-serif;
  background: radial-gradient(circle at 20% 0%, #3a1a12 0%, var(--w3f78-bg) 55%);
  color: var(--w3f78-text);
  line-height: 1.5rem;
  font-size: 15px;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--w3f78-gold); text-decoration: none; }
a:hover { color: var(--w3f78-primary); }
img { max-width: 100%; display: block; }

.w3f78-wrapper {
  width: 100%;
  max-width: var(--w3f78-max);
  margin: 0 auto;
  position: relative;
}

/* ---------- Header ---------- */
.w3f78-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--w3f78-header-h);
  background: linear-gradient(90deg, var(--w3f78-deep), var(--w3f78-flame));
  border-bottom: 2px solid var(--w3f78-gold);
  z-index: 1000;
  box-shadow: 0 4px 18px rgba(0,0,0,.5);
}
.w3f78-header-inner {
  max-width: var(--w3f78-max);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}
.w3f78-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .3px;
}
.w3f78-brand img { width: 28px; height: 28px; border-radius: 6px; }
.w3f78-brand small { display:block; font-size: 10px; font-weight: 500; color: var(--w3f78-gold); }
.w3f78-header-actions { display: flex; align-items: center; gap: 8px; }
.w3f78-hamburger {
  background: rgba(0,0,0,.25);
  border: 0;
  color: #fff;
  width: 38px; height: 38px;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.w3f78-btn {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  font-family: inherit;
}
.w3f78-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.w3f78-btn-primary {
  background: linear-gradient(180deg, var(--w3f78-gold), #f59e0b);
  color: #3a1a0a;
  box-shadow: 0 4px 12px rgba(255,210,125,.35);
}
.w3f78-btn-ghost {
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
}
.w3f78-btn-block { display:block; width:100%; padding: 14px; font-size: 15px; }
.w3f78-btn-lg { padding: 12px 22px; font-size: 15px; }

/* ---------- Mobile menu drawer ---------- */
.w3f78-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease;
  z-index: 9998;
}
.w3f78-overlay-show { opacity: 1; visibility: visible; }
.w3f78-mobile-menu {
  position: fixed;
  top: 0; right: -85%;
  width: 80%; max-width: 320px;
  height: 100%;
  background: linear-gradient(180deg, #2a1612, #1a0f0c);
  padding: 80px 18px 30px;
  z-index: 9999;
  transition: right .3s ease;
  overflow-y: auto;
  border-left: 1px solid rgba(255,210,125,.25);
}
.w3f78-menu-open { right: 0; }
.w3f78-mobile-menu h4 {
  color: var(--w3f78-gold);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 18px 0 8px;
}
.w3f78-mobile-menu a {
  display: block;
  padding: 12px 12px;
  border-radius: 10px;
  color: var(--w3f78-text);
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.w3f78-mobile-menu a:hover { background: rgba(255,87,34,.18); color:#fff; }
.w3f78-menu-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,.12); border:0; color:#fff;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 18px; cursor: pointer;
}

/* ---------- Page container ---------- */
.w3f78-main {
  padding-top: calc(var(--w3f78-header-h) + 6px);
  padding-bottom: calc(var(--w3f78-bottom-h) + 24px);
}
.w3f78-section {
  padding: 18px 14px;
}
.w3f78-section-alt {
  background: linear-gradient(180deg, rgba(52,73,94,.35), rgba(0,0,0,0));
}
.w3f78-section-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  display: flex; align-items: center; gap: 8px;
}
.w3f78-section-title i { color: var(--w3f78-primary); }
.w3f78-section-sub {
  color: var(--w3f78-muted);
  font-size: 13px;
  margin-bottom: 14px;
}

/* ---------- Hero / slider ---------- */
.w3f78-hero {
  position: relative;
  margin: 6px 0 0;
  overflow: hidden;
  border-radius: 0;
}
.w3f78-slides { position: relative; }
.w3f78-slide {
  display: none;
  position: relative;
  min-height: 220px;
  padding: 26px 18px;
  background-size: cover;
  background-position: center;
}
.w3f78-slide::before {
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(26,15,12,.92) 0%, rgba(26,15,12,.45) 70%, rgba(26,15,12,.1) 100%);
}
.w3f78-slide-active { display: block; animation: w3f78-fade .6s ease; }
@keyframes w3f78-fade { from { opacity:0; } to { opacity:1; } }
.w3f78-slide-content {
  position: relative;
  z-index: 2;
  max-width: 88%;
}
.w3f78-slide-tag {
  display: inline-block;
  background: var(--w3f78-primary);
  color:#fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  letter-spacing: .5px;
}
.w3f78-slide-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.w3f78-slide-title span { color: var(--w3f78-gold); }
.w3f78-slide-desc {
  font-size: 13px;
  color: var(--w3f78-muted);
  margin-bottom: 14px;
}
.w3f78-hero-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.4);
  color:#fff; border:0;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  z-index: 3;
  display:flex; align-items:center; justify-content:center;
}
.w3f78-hero-prev { left: 8px; }
.w3f78-hero-next { right: 8px; }
.w3f78-dots {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center;
  gap: 6px;
  z-index: 3;
}
.w3f78-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border:0; cursor:pointer; padding:0;
}
.w3f78-dot-active { background: var(--w3f78-gold); width: 22px; border-radius: 4px; }

/* ---------- Marquee strip ---------- */
.w3f78-marquee {
  background: linear-gradient(90deg, var(--w3f78-deep), var(--w3f78-flame));
  color: #fff;
  font-size: 12px;
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(255,210,125,.25);
  border-bottom: 1px solid rgba(255,210,125,.25);
}
.w3f78-marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: w3f78-marq 22s linear infinite;
  font-weight: 600;
}
@keyframes w3f78-marq { to { transform: translateX(-100%); } }

/* ---------- Filter tabs ---------- */
.w3f78-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 14px 6px;
  scrollbar-width: none;
}
.w3f78-filter::-webkit-scrollbar { display: none; }
.w3f78-filter-tab {
  flex: 0 0 auto;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--w3f78-muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.w3f78-filter-tab-active {
  background: linear-gradient(180deg, var(--w3f78-primary), var(--w3f78-flame));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(255,87,34,.4);
}

/* ---------- Game grid & cards ---------- */
.w3f78-game-group { margin-bottom: 8px; }
.w3f78-group-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 16px 14px 8px;
}
.w3f78-group-head h2 {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.w3f78-group-head h2 i { color: var(--w3f78-primary); }
.w3f78-group-link {
  font-size: 12px;
  color: var(--w3f78-gold);
  font-weight: 600;
}
.w3f78-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 14px;
}
.w3f78-card {
  background: linear-gradient(180deg, #2a1612, #1a0f0c);
  border-radius: var(--w3f78-radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  position: relative;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  text-align: center;
}
.w3f78-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--w3f78-shadow);
  border-color: var(--w3f78-primary);
}
.w3f78-card-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: #000;
}
.w3f78-card-name {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 4px;
  color: var(--w3f78-text);
  line-height: 1.25;
  min-height: 30px;
}
.w3f78-card-hot {
  position: absolute;
  top: 4px; left: 4px;
  background: var(--w3f78-primary);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}

/* ---------- Feature / promo banner ---------- */
.w3f78-promo-banner {
  margin: 14px;
  padding: 16px;
  border-radius: var(--w3f78-radius);
  background: linear-gradient(120deg, #BF360C 0%, #FF5722 60%, #E65100 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--w3f78-shadow);
}
.w3f78-promo-banner::after {
  content:"\f005";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: -10px; bottom: -16px;
  font-size: 110px;
  color: rgba(255,255,255,.12);
}
.w3f78-promo-banner h3 { font-size: 18px; margin-bottom: 4px; font-weight: 800; }
.w3f78-promo-banner p { font-size: 12px; margin-bottom: 10px; opacity: .92; }

/* ---------- Feature list ---------- */
.w3f78-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 14px;
}
.w3f78-feature {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
}
.w3f78-feature i {
  font-size: 26px;
  color: var(--w3f78-primary);
  margin-bottom: 6px;
}
.w3f78-feature h4 { font-size: 13px; color:#fff; margin-bottom: 4px; }
.w3f78-feature p { font-size: 11px; color: var(--w3f78-muted); line-height: 1.35; }

/* ---------- SEO article ---------- */
.w3f78-article {
  padding: 18px 16px;
  color: var(--w3f78-text);
}
.w3f78-article h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 18px 0 8px;
  color: var(--w3f78-gold);
}
.w3f78-article h2:first-child { margin-top: 0; }
.w3f78-article h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 14px 0 6px;
  color: #fff;
}
.w3f78-article p {
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--w3f78-muted);
  line-height: 1.65;
}
.w3f78-article p strong, .w3f78-article a strong { color: var(--w3f78-primary); }
.w3f78-article ul {
  padding-left: 20px;
  margin-bottom: 10px;
}
.w3f78-article li {
  font-size: 13.5px;
  color: var(--w3f78-muted);
  margin-bottom: 4px;
  line-height: 1.55;
}

/* ---------- FAQ ---------- */
.w3f78-faq-item {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.w3f78-faq-item h3 {
  font-size: 14px;
  color: var(--w3f78-gold);
  margin-bottom: 4px;
  font-weight: 700;
}
.w3f78-faq-item p {
  font-size: 13px;
  color: var(--w3f78-muted);
  line-height: 1.55;
}

/* ---------- Steps ---------- */
.w3f78-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0 14px;
}
.w3f78-step {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(255,255,255,.05);
  border-radius: 12px;
  padding: 12px;
  border-left: 3px solid var(--w3f78-primary);
}
.w3f78-step-num {
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--w3f78-gold), #f59e0b);
  color: #3a1a0a;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 14px;
}
.w3f78-step-body h4 { font-size: 14px; color:#fff; margin-bottom: 3px; }
.w3f78-step-body p { font-size: 12.5px; color: var(--w3f78-muted); }

/* ---------- Footer ---------- */
.w3f78-footer {
  background: linear-gradient(180deg, #1a0f0c, #0d0705);
  padding: 24px 16px calc(var(--w3f78-bottom-h) + 30px);
  border-top: 2px solid var(--w3f78-deep);
  color: var(--w3f78-muted);
}
.w3f78-footer-brand {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.w3f78-footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.w3f78-footer-brand strong { color: #fff; font-size: 16px; }
.w3f78-footer p { font-size: 12.5px; line-height: 1.6; margin-bottom: 14px; }
.w3f78-footer h4 {
  color: var(--w3f78-gold);
  font-size: 13px;
  text-transform: uppercase;
  margin: 14px 0 8px;
  letter-spacing: .5px;
}
.w3f78-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  margin-bottom: 14px;
}
.w3f78-footer-links a {
  color: var(--w3f78-muted);
  font-size: 12px;
}
.w3f78-footer-links a:hover { color: var(--w3f78-primary); }
.w3f78-footer-promos {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 10px 0 14px;
}
.w3f78-footer-promos .w3f78-btn { font-size: 12px; padding: 8px 12px; }
.w3f78-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 12px;
  font-size: 11px;
  color: #9b7b75;
  text-align: center;
}

/* ---------- Mobile bottom navigation ---------- */
.w3f78-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--w3f78-bottom-h);
  background: linear-gradient(180deg, #2a1612, #100806);
  border-top: 2px solid var(--w3f78-gold);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0,0,0,.5);
}
.w3f78-bottom-btn {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--w3f78-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  position: relative;
  transition: color .2s ease, transform .15s ease;
}
.w3f78-bottom-btn i,
.w3f78-bottom-btn .material-icons-outlined {
  font-size: 22px;
}
.w3f78-bottom-btn:active { transform: scale(.92); }
.w3f78-bottom-btn:hover { color: var(--w3f78-primary); }
.w3f78-bottom-btn-promo {
  color: var(--w3f78-gold);
}
.w3f78-bottom-btn-promo i {
  background: linear-gradient(180deg, var(--w3f78-primary), var(--w3f78-flame));
  color:#fff;
  width: 38px; height: 38px;
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  font-size: 18px;
  margin-top: -18px;
  box-shadow: 0 4px 10px rgba(255,87,34,.5);
  border: 2px solid var(--w3f78-gold);
}
.w3f78-bottom-btn-current { color: var(--w3f78-primary); }
.w3f78-bottom-btn-current::before {
  content:"";
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 3px;
  background: var(--w3f78-primary);
  border-radius: 0 0 4px 4px;
}

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .w3f78-bottom-nav { display: none; }
  .w3f78-hamburger { display: none; }
  .w3f78-wrapper { max-width: 720px; }
  .w3f78-header-inner { max-width: 720px; }
  .w3f78-main { padding-bottom: 30px; }
  .w3f78-footer { padding-bottom: 30px; }
  .w3f78-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 768px) {
  .w3f78-main { padding-bottom: calc(var(--w3f78-bottom-h) + 20px); }
}

@media (max-width: 360px) {
  .w3f78-grid { grid-template-columns: repeat(2, 1fr); }
  .w3f78-slide-title { font-size: 22px; }
}
