/* ============================================================
   one68.click - theme-0788.css
   All custom classes use prefix: g888-
   Palette: #FFD700 (gold) | #FFB74D (amber) | #1A1A1A (dark)
   Mobile-first. max-width 430px optimized.
   ============================================================ */

/* ---- Theme variables ---- */
:root {
  --g888-primary: #FFD700;
  --g888-accent: #FFB74D;
  --g888-bg: #1A1A1A;
  --g888-text: #f5f5f7;
}

/* ---- Reset ---- */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: 'Be Vietnam Pro', 'Segoe UI', Roboto, system-ui, -apple-system, Arial, sans-serif;
  background: #0f0f12;
  color: #f5f5f7;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---- Layout containers ---- */
.g888-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 14px; }
.g888-wrap { width: 100%; }

/* ---- Header ---- */
.g888-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #1a1a1a 0%, #111 100%);
  border-bottom: 1px solid rgba(255, 215, 0, 0.25);
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.g888-header-inner {
  max-width: 430px; margin: 0 auto; padding: 8px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.g888-logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; color: #FFD700; letter-spacing: 0.4px; }
.g888-logo .g888-logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #FFD700, #FFB74D);
  color: #1A1A1A; font-size: 16px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(255, 183, 77, 0.5);
}
.g888-logo small { display: block; font-size: 9px; font-weight: 500; color: #cfcfd6; letter-spacing: 1px; }

.g888-hdr-btns { display: flex; align-items: center; gap: 6px; }
.g888-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.g888-btn:active { transform: scale(0.95); }
.g888-btn-login {
  background: transparent; color: #FFD700; border: 1px solid rgba(255,215,0,0.5);
}
.g888-btn-register {
  background: linear-gradient(135deg, #FFD700, #FFB74D);
  color: #1A1A1A; box-shadow: 0 4px 14px rgba(255,183,77,0.45);
}
.g888-menu-trigger {
  display: none; width: 36px; height: 36px; border-radius: 8px;
  align-items: center; justify-content: center; background: rgba(255,255,255,0.06);
  color: #FFD700; font-size: 18px;
}

/* ---- Top nav (mobile menu / desktop secondary) ---- */
.g888-topnav { display: none; }

/* ---- Spacer for fixed header ---- */
.g888-header-spacer { height: 56px; }

/* ---- Mobile slide-in menu ---- */
.g888-menu-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 9998;
}
.g888-backdrop-show { opacity: 1; pointer-events: auto; }
.g888-mobile-menu {
  position: fixed; top: 0; right: -82%; width: 80%; max-width: 320px;
  height: 100%; background: #141416; z-index: 9999;
  transform: translateX(0); transition: right .3s ease;
  padding: 70px 18px 30px; overflow-y: auto;
  border-left: 1px solid rgba(255,215,0,0.2);
}
.g888-menu-open { right: 0; }
.g888-mobile-menu .g888-menu-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px;
  background: rgba(255,255,255,0.06); color: #FFD700; font-size: 18px; border-radius: 8px;
}
.g888-mobile-menu a {
  display: block; padding: 13px 12px; border-radius: 10px;
  font-size: 14px; color: #f0f0f3; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.g888-mobile-menu a:active { background: rgba(255,215,0,0.08); }
.g888-mobile-menu a.g888-menu-cta {
  background: linear-gradient(135deg, #FFD700, #FFB74D);
  color: #1A1A1A; font-weight: 800; text-align: center; border-bottom: none; margin-top: 12px;
}

/* ---- Hero slider ---- */
.g888-hero {
  position: relative; margin: 10px 0 16px; border-radius: 18px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.g888-hero-track { position: relative; width: 100%; height: 200px; }
.g888-hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px 18px; color: #fff;
}
.g888-hero-slide.g888-slide-active { opacity: 1; }
.g888-hero-slide::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.78) 100%);
}
.g888-hero-slide > * { position: relative; z-index: 2; }
.g888-hero-tag {
  display: inline-block; font-size: 10px; font-weight: 700; padding: 3px 9px;
  background: linear-gradient(135deg, #FFD700, #FFB74D); color: #1A1A1A;
  border-radius: 999px; margin-bottom: 7px; width: fit-content;
}
.g888-hero-slide h2, .g888-hero-slide h1 { font-size: 19px; font-weight: 800; line-height: 1.25; }
.g888-hero-slide { cursor: pointer; }
.g888-seo h1 { font-size: 18px; font-weight: 800; color: #FFD700; margin-bottom: 10px; }
.g888-hero-slide p { font-size: 12px; color: #e7e7ea; margin-top: 4px; }
.g888-hero-dots {
  position: absolute; bottom: 10px; right: 14px; z-index: 3;
  display: flex; gap: 6px;
}
.g888-hero-dot {
  width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.4);
}
.g888-hero-dot.g888-dot-active { background: #FFD700; width: 18px; border-radius: 4px; }

/* ---- Section ---- */
.g888-section { padding: 18px 0; }
.g888-section-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.g888-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 17px; font-weight: 800; color: #fff;
}
.g888-section-title i { color: #FFD700; font-size: 18px; }
.g888-section-more {
  font-size: 11px; color: #FFB74D; font-weight: 600;
}
.g888-section-sub {
  font-size: 12px; color: #b9b9c0; margin: -6px 0 12px; line-height: 1.5;
}

/* ---- Category chips ---- */
.g888-cat-row {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px;
  margin: 0 -14px; padding-left: 14px; padding-right: 14px;
  scrollbar-width: none;
}
.g888-cat-row::-webkit-scrollbar { display: none; }
.g888-cat-chip {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: #fff;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,215,0,0.18);
  white-space: nowrap;
}
.g888-cat-chip.g888-cat-active {
  background: linear-gradient(135deg, #FFD700, #FFB74D);
  color: #1A1A1A; border-color: transparent;
}

/* ---- Quick action tiles ---- */
.g888-tiles {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px;
}
.g888-tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 6px; border-radius: 14px;
  background: linear-gradient(180deg, #1d1d22, #161619);
  border: 1px solid rgba(255,255,255,0.05);
  font-size: 10.5px; font-weight: 600; color: #f0f0f3; text-align: center;
}
.g888-tile i {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,215,0,0.18), rgba(255,183,77,0.18));
  display: flex; align-items: center; justify-content: center;
  color: #FFD700; font-size: 18px;
}

/* ---- Game grid ---- */
.g888-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px;
}
.g888-card {
  position: relative; border-radius: 12px; overflow: hidden;
  background: #1a1a1d; border: 1px solid rgba(255,255,255,0.06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.g888-card:active { transform: scale(0.96); }
.g888-card-img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #222;
}
.g888-card-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 6px 7px;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.85) 100%);
}
.g888-card-name {
  font-size: 10.5px; font-weight: 700; color: #fff; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.g888-card-play {
  display: none; align-items: center; justify-content: center; gap: 4px;
  margin-top: 4px; padding: 4px 0; border-radius: 7px;
  background: linear-gradient(135deg, #FFD700, #FFB74D);
  color: #1A1A1A; font-size: 10px; font-weight: 800;
}
.g888-card:hover .g888-card-play { display: flex; }
.g888-card-tag {
  position: absolute; top: 5px; left: 5px;
  font-size: 8.5px; font-weight: 800; padding: 2px 6px; border-radius: 5px;
  background: rgba(255,215,0,0.92); color: #1A1A1A;
}

/* ---- Featured banners ---- */
.g888-feature {
  display: block; position: relative; border-radius: 16px; overflow: hidden;
  margin-bottom: 12px; box-shadow: 0 8px 22px rgba(0,0,0,0.4);
}
.g888-feature img { width: 100%; height: 130px; object-fit: cover; }
.g888-feature-body {
  position: absolute; inset: 0; padding: 14px;
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.25) 100%);
}
.g888-feature-body h3 { font-size: 16px; font-weight: 800; color: #fff; }
.g888-feature-body p { font-size: 11px; color: #e7e7ea; margin-top: 3px; max-width: 75%; }
.g888-feature-cta {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 8px;
  padding: 6px 14px; border-radius: 999px; width: fit-content;
  background: linear-gradient(135deg, #FFD700, #FFB74D);
  color: #1A1A1A; font-size: 11px; font-weight: 800;
}

/* ---- Promo CTA band ---- */
.g888-cta-band {
  margin: 16px 0; padding: 16px; border-radius: 16px; text-align: center;
  background: linear-gradient(135deg, #FFD700 0%, #FFB74D 100%);
  color: #1A1A1A; box-shadow: 0 8px 22px rgba(255,183,77,0.35);
}
.g888-cta-band h3 { font-size: 18px; font-weight: 900; }
.g888-cta-band p { font-size: 12px; margin-top: 4px; }
.g888-cta-band .g888-btn-cta {
  display: inline-block; margin-top: 10px; padding: 10px 22px; border-radius: 999px;
  background: #1A1A1A; color: #FFD700; font-size: 13px; font-weight: 800;
}

/* ---- SEO long text ---- */
.g888-seo {
  padding: 18px 0;
}
.g888-seo h2 {
  font-size: 18px; font-weight: 800; color: #FFD700; margin-bottom: 10px;
}
.g888-seo h3 {
  font-size: 14px; font-weight: 700; color: #FFB74D; margin: 14px 0 6px;
}
.g888-seo p {
  font-size: 12.5px; color: #d6d6dd; line-height: 1.7; margin-bottom: 8px;
}
.g888-seo a { color: #FFD700; text-decoration: underline; text-underline-offset: 2px; }
.g888-seo ul { padding-left: 18px; list-style: disc; }
.g888-seo li { font-size: 12px; color: #cfcfd6; margin-bottom: 5px; line-height: 1.6; }

/* ---- Inline links in SEO text ---- */
.g888-inline-links {
  display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 8px 0 0;
}
.g888-inline-links a {
  font-size: 11px; color: #FFD700; padding: 3px 8px; border-radius: 6px;
  background: rgba(255,215,0,0.08); border: 1px solid rgba(255,215,0,0.2);
}

/* ---- FAQ ---- */
.g888-faq-item {
  border-radius: 12px; overflow: hidden; margin-bottom: 8px;
  background: #1a1a1d; border: 1px solid rgba(255,255,255,0.06);
}
.g888-faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 14px; font-size: 13px; font-weight: 700; color: #fff;
}
.g888-faq-q i { color: #FFD700; transition: transform .2s ease; }
.g888-faq-open .g888-faq-q i { transform: rotate(45deg); }
.g888-faq-a {
  max-height: 0; overflow: hidden; transition: max-height .25s ease;
  padding: 0 14px; font-size: 12px; color: #cfcfd6; line-height: 1.6;
}
.g888-faq-open .g888-faq-a { max-height: 320px; padding-bottom: 13px; }

/* ---- Footer ---- */
.g888-footer {
  margin-top: 20px; padding: 22px 0 30px;
  background: #0c0c0e; border-top: 1px solid rgba(255,215,0,0.15);
}
.g888-footer-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.g888-footer h4 {
  font-size: 12px; font-weight: 800; color: #FFD700; margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.g888-footer-about {
  font-size: 11.5px; color: #cfcfd6; line-height: 1.7; margin-bottom: 16px;
}
.g888-footer-about a { color: var(--g888-primary); font-weight: 700; }
.g888-footer ul li { margin-bottom: 6px; }
.g888-footer ul li a {
  font-size: 11px; color: #b9b9c0;
}
.g888-footer ul li a:hover { color: #FFD700; }
.g888-footer-bottom {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center; font-size: 10px; color: #8a8a92;
}
.g888-footer-pay {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px;
}
.g888-footer-pay span {
  font-size: 9.5px; font-weight: 700; color: #cfcfd6; padding: 4px 9px;
  border-radius: 5px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
}

/* ---- Bottom nav ---- */
.g888-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  max-width: 430px; margin: 0 auto; height: 62px;
  display: flex; justify-content: space-around; align-items: center;
  background: rgba(20,20,22,0.96); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,215,0,0.22);
  box-shadow: 0 -4px 18px rgba(0,0,0,0.45);
}
.g888-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px; gap: 3px;
  color: #9c9ca4; font-size: 10px; font-weight: 600;
  transition: color .15s ease, transform .15s ease;
}
.g888-nav-btn i { font-size: 20px; }
.g888-nav-btn:active { transform: scale(0.92); }
.g888-nav-btn.g888-nav-active { color: #FFD700; }
.g888-nav-promo {
  position: relative;
}
.g888-nav-promo::before {
  content: ''; position: absolute; top: -12px; width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, #FFD700, #FFB74D);
  box-shadow: 0 4px 14px rgba(255,183,77,0.5);
}
.g888-nav-promo i {
  position: relative; color: #1A1A1A; font-size: 20px; line-height: 42px; height: 42px;
}

/* ---- Back to top FAB ---- */
.g888-top-btn {
  position: fixed; right: 14px; bottom: 78px; z-index: 999;
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #FFD700, #FFB74D);
  color: #1A1A1A; font-size: 16px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .15s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,0.45);
}
.g888-top-show { opacity: 1; pointer-events: auto; }
.g888-top-btn:active { transform: scale(0.9); }

/* ---- Reveal animation ---- */
.g888-reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.g888-revealed { opacity: 1; transform: translateY(0); }

/* ---- Mobile bottom padding so content isn't hidden behind nav ---- */
.g888-main { padding-bottom: 84px; }

/* ---- Desktop: hide bottom nav + menu trigger, show top nav ---- */
@media (min-width: 769px) {
  .g888-bottom-nav { display: none; }
  .g888-menu-trigger { display: none; }
  .g888-main { padding-bottom: 30px; }
  .g888-container { max-width: 960px; }
  .g888-header-inner { max-width: 960px; }
  .g888-topnav {
    display: flex; align-items: center; gap: 16px;
  }
  .g888-topnav a {
    font-size: 13px; color: #d6d6dd; font-weight: 600;
  }
  .g888-topnav a:hover { color: #FFD700; }
  .g888-grid { grid-template-columns: repeat(5, 1fr); }
  .g888-tiles { grid-template-columns: repeat(6, 1fr); }
  .g888-footer-grid { grid-template-columns: repeat(4, 1fr); }
  .g888-hero-track { height: 280px; }
  .g888-feature img { height: 180px; }
}

/* ---- Small phones fine-tune ---- */
@media (max-width: 360px) {
  .g888-grid { grid-template-columns: repeat(2, 1fr); }
  .g888-btn { padding: 7px 11px; font-size: 12px; }
  .g888-logo { font-size: 18px; }
}
