/* lucky-8.click layout - prefix: ve61- */
/* Root units: 62.5% base font-size for rem scaling, mobile-first <=430px */

:root {
  --ve61-orange: #FF8C00;
  --ve61-dark: #0D1117;
  --ve61-dark-2: #11161f;
  --ve61-cyan: #00E5FF;
  --ve61-pale: #AFEEEE;
  --ve61-yellow: #FFEB3B;
  --ve61-text: #E8EEF6;
  --ve61-text-dim: #9AA7B5;
  --ve61-border: rgba(255, 140, 0, 0.22);
  --ve61-grad: linear-gradient(135deg, #FF8C00 0%, #FFB347 50%, #FFEB3B 100%);
  --ve61-grad-cyan: linear-gradient(135deg, #00E5FF 0%, #AFEEEE 100%);
  --ve61-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --ve61-radius: 14px;
}

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

html { font-size: 62.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Be Vietnam", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  background: var(--ve61-dark);
  color: var(--ve61-text);
  line-height: 1.5;
  font-size: 1.5rem;
  overflow-x: hidden;
}

body.ve61-no-scroll { overflow: hidden; }

a { color: var(--ve61-cyan); text-decoration: none; }
a:hover { color: var(--ve61-yellow); }
img { max-width: 100%; display: block; }

.ve61-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 14px; }

/* ===================== HEADER ===================== */
.ve61-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ve61-border);
  transition: box-shadow .25s ease, background .25s ease;
}
.ve61-header.ve61-scrolled { background: rgba(13, 17, 23, 0.98); box-shadow: 0 4px 18px rgba(0,0,0,.55); }
.ve61-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 58px; }
.ve61-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.9rem; color: var(--ve61-orange); letter-spacing: .3px; }
.ve61-logo .ve61-logo-badge {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--ve61-grad);
  display: flex; align-items: center; justify-content: center;
  color: #0D1117; font-weight: 900; font-size: 1.6rem;
  box-shadow: 0 0 14px rgba(255,140,0,.55);
}
.ve61-logo small { display: block; font-size: 1rem; color: var(--ve61-text-dim); font-weight: 500; }
.ve61-header-actions { display: flex; align-items: center; gap: 8px; }
.ve61-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 1.35rem;
  padding: 8px 14px; border-radius: 10px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  min-height: 38px; line-height: 1;
}
.ve61-btn:active { transform: scale(.96); }
.ve61-btn-login { background: transparent; color: var(--ve61-text); border: 1px solid var(--ve61-border); }
.ve61-btn-login:hover { color: var(--ve61-yellow); border-color: var(--ve61-yellow); }
.ve61-btn-register { background: var(--ve61-grad); color: #0D1117; box-shadow: 0 4px 14px rgba(255,140,0,.45); }
.ve61-btn-register:hover { box-shadow: 0 6px 20px rgba(255,140,0,.6); }
.ve61-icon-btn {
  background: transparent; border: none; color: var(--ve61-text); cursor: pointer;
  width: 38px; height: 38px; border-radius: 8px; font-size: 2rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.ve61-icon-btn:hover { color: var(--ve61-orange); background: rgba(255,140,0,.12); }

/* ===================== MOBILE MENU ===================== */
.ve61-mobile-menu {
  position: fixed; top: 0; right: -100%; width: 84%; max-width: 340px;
  height: 100vh; z-index: 9999;
  background: var(--ve61-dark-2);
  border-left: 1px solid var(--ve61-border);
  padding: 80px 18px 30px;
  transition: right .28s ease;
  overflow-y: auto;
}
.ve61-mobile-menu.ve61-open { right: 0; box-shadow: -10px 0 30px rgba(0,0,0,.6); }
.ve61-mobile-menu h4 { color: var(--ve61-orange); font-size: 1.5rem; margin: 16px 0 8px; text-transform: uppercase; letter-spacing: .8px; }
.ve61-mobile-menu ul { list-style: none; }
.ve61-mobile-menu li { border-bottom: 1px solid rgba(255,255,255,.06); }
.ve61-mobile-menu a {
  display: block; padding: 12px 8px; color: var(--ve61-text); font-size: 1.5rem;
}
.ve61-mobile-menu a:hover { color: var(--ve61-yellow); padding-left: 14px; }
.ve61-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,.6);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}
.ve61-mobile-menu.ve61-open ~ .ve61-overlay { opacity: 1; visibility: visible; }

/* ===================== HERO ===================== */
.ve61-main { padding-top: 78px; }
@media (max-width: 768px) { .ve61-main { padding-bottom: 90px; } }

.ve61-hero { position: relative; overflow: hidden; padding: 18px 0 26px; background: radial-gradient(circle at 20% 20%, rgba(255,140,0,.18), transparent 60%), radial-gradient(circle at 80% 80%, rgba(0,229,255,.12), transparent 60%); }
.ve61-hero-track { position: relative; border-radius: var(--ve61-radius); overflow: hidden; box-shadow: var(--ve61-shadow); }
.ve61-hero-slide {
  position: relative; display: none;
  background: linear-gradient(135deg, #1a1f2b 0%, #0d1117 100%);
  border: 1px solid var(--ve61-border);
  border-radius: var(--ve61-radius);
  padding: 22px 18px;
}
.ve61-hero-slide.ve61-active { display: block; animation: ve61fade .5s ease; }
@keyframes ve61fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.ve61-hero-slide h2 { font-size: 2.3rem; line-height: 1.25; margin-bottom: 8px; color: var(--ve61-yellow); }
.ve61-hero-slide p { color: var(--ve61-text-dim); font-size: 1.4rem; margin-bottom: 14px; }
.ve61-hero-cta { display: flex; gap: 8px; flex-wrap: wrap; }
.ve61-hero-cta .ve61-btn { padding: 10px 18px; font-size: 1.4rem; }
.ve61-hero-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.ve61-hero-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.25); cursor: pointer; transition: all .2s; border: none; }
.ve61-hero-dot.ve61-active { background: var(--ve61-orange); width: 22px; border-radius: 6px; }

/* Marquee strip */
.ve61-marquee {
  background: var(--ve61-grad);
  color: #0D1117; font-weight: 700; font-size: 1.3rem;
  padding: 8px 0; overflow: hidden; white-space: nowrap;
}
.ve61-marquee span { display: inline-block; padding-left: 100%; animation: ve61scroll 22s linear infinite; }
@keyframes ve61scroll { to { transform: translateX(-100%); } }

/* ===================== SECTION ===================== */
.ve61-section { padding: 26px 0; }
.ve61-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.ve61-section-title {
  font-size: 2rem; font-weight: 800; color: var(--ve61-text);
  position: relative; padding-left: 14px;
}
.ve61-section-title::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 3px;
  background: var(--ve61-grad);
}
.ve61-section-title small { display: block; font-size: 1.2rem; font-weight: 500; color: var(--ve61-text-dim); margin-top: 2px; }
.ve61-link-more { color: var(--ve61-cyan); font-size: 1.3rem; font-weight: 600; }

/* ===================== TABS ===================== */
.ve61-tabs {
  display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 12px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.ve61-tabs::-webkit-scrollbar { display: none; }
.ve61-tab-btn {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 20px;
  background: var(--ve61-dark-2); color: var(--ve61-text-dim);
  border: 1px solid var(--ve61-border);
  font-size: 1.3rem; font-weight: 700; cursor: pointer;
  white-space: nowrap; font-family: inherit;
  transition: all .2s;
}
.ve61-tab-btn:hover { color: var(--ve61-orange); }
.ve61-tab-btn.ve61-active { background: var(--ve61-grad); color: #0D1117; border-color: transparent; }

/* ===================== GAME GRID ===================== */
.ve61-cat-section { display: none; animation: ve61fade .35s ease; }
.ve61-cat-section.ve61-active { display: block; }
.ve61-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
@media (min-width: 380px) { .ve61-grid { gap: 12px; } }
.ve61-card {
  background: var(--ve61-dark-2); border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.05);
  position: relative; cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
}
.ve61-card:hover, .ve61-card:focus-within {
  transform: translateY(-3px);
  border-color: var(--ve61-orange);
  box-shadow: 0 8px 22px rgba(255,140,0,.25);
}
.ve61-card .ve61-card-img {
  position: relative; padding-top: 130%; overflow: hidden; background: #0a0e14;
}
.ve61-card .ve61-card-img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.ve61-card:hover .ve61-card-img img { transform: scale(1.06); }
.ve61-card-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(0deg, rgba(13,17,23,.85) 0%, rgba(13,17,23,.1) 60%);
  opacity: 0; transition: opacity .22s;
}
.ve61-card:hover .ve61-card-play { opacity: 1; }
.ve61-card-play span {
  background: var(--ve61-grad); color: #0D1117;
  font-weight: 800; font-size: 1.25rem; padding: 6px 14px; border-radius: 18px;
  display: inline-flex; align-items: center; gap: 4px;
}
.ve61-card-title { padding: 8px 8px 10px; font-size: 1.25rem; text-align: center; color: var(--ve61-text); font-weight: 600; line-height: 1.3; min-height: 36px; }
.ve61-card-tag {
  position: absolute; top: 6px; left: 6px;
  background: rgba(255,140,0,.92); color: #0D1117;
  font-size: 1rem; font-weight: 700; padding: 2px 7px; border-radius: 6px;
  z-index: 2;
}
.ve61-card-tag.hot { background: #ff3b3b; color: #fff; }
.ve61-card-tag.new { background: var(--ve61-cyan); color: #0D1117; }

.ve61-reveal { animation: ve61fade .4s ease both; }

/* ===================== FEATURED ===================== */
.ve61-featured { display: grid; grid-template-columns: 1fr; gap: 12px; }
.ve61-feature-card {
  display: flex; gap: 12px; align-items: center;
  background: var(--ve61-dark-2); border: 1px solid var(--ve61-border);
  border-radius: 14px; padding: 12px;
}
.ve61-feature-card .ve61-fc-icon {
  flex: 0 0 56px; width: 56px; height: 56px; border-radius: 12px;
  background: var(--ve61-grad); color: #0D1117;
  display: flex; align-items: center; justify-content: center; font-size: 2.4rem;
}
.ve61-feature-card .ve61-fc-body h3 { font-size: 1.55rem; color: var(--ve61-text); margin-bottom: 4px; }
.ve61-feature-card .ve61-fc-body p { font-size: 1.25rem; color: var(--ve61-text-dim); }

/* Promo banner */
.ve61-promo-banner {
  background: linear-gradient(120deg, rgba(255,140,0,.18), rgba(0,229,255,.12));
  border: 1px solid var(--ve61-border);
  border-radius: var(--ve61-radius);
  padding: 18px 16px; text-align: center;
}
.ve61-promo-banner h3 { color: var(--ve61-yellow); font-size: 1.9rem; margin-bottom: 6px; }
.ve61-promo-banner p { color: var(--ve61-text-dim); font-size: 1.3rem; margin-bottom: 12px; }

/* SEO long text */
.ve61-seo-text { background: var(--ve61-dark-2); border-radius: var(--ve61-radius); padding: 18px 16px; border: 1px solid rgba(255,255,255,.05); }
.ve61-seo-text h2 { color: var(--ve61-orange); font-size: 1.9rem; margin: 16px 0 8px; }
.ve61-seo-text h2:first-child { margin-top: 0; }
.ve61-seo-text h3 { color: var(--ve61-yellow); font-size: 1.6rem; margin: 12px 0 6px; }
.ve61-seo-text p { color: var(--ve61-text-dim); font-size: 1.35rem; margin-bottom: 10px; }
.ve61-seo-text ul { padding-left: 20px; margin-bottom: 10px; }
.ve61-seo-text li { color: var(--ve61-text-dim); font-size: 1.3rem; margin-bottom: 4px; }

/* FAQ */
.ve61-faq-item { background: var(--ve61-dark-2); border: 1px solid rgba(255,255,255,.06); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.ve61-faq-q {
  width: 100%; background: transparent; border: none; color: var(--ve61-text);
  text-align: left; padding: 14px 14px; font-size: 1.4rem; font-weight: 700;
  cursor: pointer; font-family: inherit;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.ve61-faq-q .ve61-faq-icon { color: var(--ve61-orange); font-size: 1.6rem; transition: transform .25s; }
.ve61-faq-item.ve61-open .ve61-faq-icon { transform: rotate(45deg); }
.ve61-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 14px; }
.ve61-faq-item.ve61-open .ve61-faq-a { max-height: 600px; padding: 0 14px 14px; }
.ve61-faq-a p { color: var(--ve61-text-dim); font-size: 1.3rem; }

/* Footer */
.ve61-footer { background: #080b10; border-top: 1px solid var(--ve61-border); padding: 26px 0 18px; }
.ve61-footer h4 { color: var(--ve61-orange); font-size: 1.5rem; margin-bottom: 10px; }
.ve61-footer ul { list-style: none; margin-bottom: 18px; }
.ve61-footer li { margin-bottom: 6px; }
.ve61-footer a { color: var(--ve61-text-dim); font-size: 1.3rem; }
.ve61-footer a:hover { color: var(--ve61-yellow); }
.ve61-footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding-top: 14px; text-align: center; color: var(--ve61-text-dim); font-size: 1.2rem; }
.ve61-footer-pay { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.ve61-footer-pay span { background: var(--ve61-dark-2); border: 1px solid var(--ve61-border); padding: 4px 8px; border-radius: 6px; font-size: 1.1rem; color: var(--ve61-pale); }

/* Bottom nav */
.ve61-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13, 17, 23, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--ve61-border);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 62px;
}
.ve61-bottom-nav a, .ve61-bottom-nav button {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--ve61-text-dim); background: transparent; border: none;
  font-size: 1.05rem; font-family: inherit; cursor: pointer;
  min-width: 60px; min-height: 60px;
  position: relative; transition: color .2s;
}
.ve61-bottom-nav a:hover, .ve61-bottom-nav button:hover { color: var(--ve61-orange); }
.ve61-bottom-nav .ve61-bn-icon { font-size: 2.1rem; line-height: 1; }
.ve61-bottom-nav .ve61-active-nav { color: var(--ve61-yellow); }
.ve61-bottom-nav .ve61-active-nav::before {
  content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 3px;
  background: var(--ve61-grad); border-radius: 0 0 6px 6px;
}
.ve61-bottom-nav .ve61-bn-promo {
  background: var(--ve61-grad); color: #0D1117;
  border-radius: 50%; width: 50px; height: 50px; min-width: 50px; min-height: 50px;
  margin-top: -22px; box-shadow: 0 4px 14px rgba(255,140,0,.55);
  border: 3px solid var(--ve61-dark);
  font-weight: 800; font-size: 2.2rem;
}
.ve61-bottom-nav .ve61-bn-promo-wrap { display: flex; align-items: flex-start; justify-content: center; }

@media (min-width: 769px) { .ve61-bottom-nav { display: none; } }
@media (min-width: 769px) { .ve61-header .ve61-icon-btn.ve61-menu-toggle { display: none; } }

/* Back to top */
.ve61-back-top {
  position: fixed; bottom: 78px; right: 14px; z-index: 999;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ve61-grad); color: #0D1117; border: none;
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
  cursor: pointer; opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s, transform .2s;
  box-shadow: var(--ve61-shadow);
}
.ve61-back-top.ve61-show { opacity: 1; visibility: visible; }
.ve61-back-top:hover { transform: translateY(-3px); }

/* Desktop tweaks */
.ve61-desktop-only { display: none; }
@media (min-width: 769px) {
  .ve61-desktop-only { display: flex; }
  .ve61-container { max-width: 960px; }
  .ve61-grid { grid-template-columns: repeat(5, 1fr); }
  .ve61-featured { grid-template-columns: repeat(2, 1fr); }
  .ve61-header-actions .ve61-btn { padding: 8px 20px; font-size: 1.4rem; }
}

/* Lazy reveal */
.ve61-lazy { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.ve61-lazy.ve61-in { opacity: 1; transform: translateY(0); }

/* Utility */
.ve61-center { text-align: center; }
.ve61-mt { margin-top: 14px; }
.ve61-mb { margin-bottom: 14px; }
