/* layout-6db3.css - jili333 win login
   Prefix: v319 - all custom classes use this prefix.
   Palette: #9966CC (purple accent) | #87CEFA (sky) | #40E0D0 (turquoise)
            #0A0A0A (deep bg) | #0000CD (royal blue).
   Mobile-first: capped at 430px primary view. */

:root {
  --v319-bg: #0A0A0A;
  --v319-bg-2: #12103a;
  --v319-card: #1a1740;
  --v319-purple: #9966CC;
  --v319-sky: #87CEFA;
  --v319-teal: #40E0D0;
  --v319-blue: #0000CD;
  --v319-text: #f4f4ff;
  --v319-muted: #b8b3d8;
  --v319-border: rgba(153, 102, 204, 0.25);
  --v319-radius: 14px;
  --v319-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: 62.5%; }
body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  background: radial-gradient(circle at top, #1b1147 0%, var(--v319-bg) 55%);
  color: var(--v319-text);
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--v319-sky); text-decoration: none; }
a:hover { color: var(--v319-teal); }

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

/* ---------- Header ---------- */
.v319-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, rgba(10,10,10,0.96), rgba(64,0,128,0.92));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--v319-border);
  transition: box-shadow .25s ease;
}
.v319-header-scrolled { box-shadow: var(--v319-shadow); }
.v319-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 10px 14px; max-width: 430px; margin: 0 auto;
}
.v319-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.v319-brand-logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--v319-purple), var(--v319-teal));
  display: grid; place-items: center; color: #fff; font-weight: 800;
  font-size: 14px; box-shadow: 0 4px 12px rgba(153,102,204,.5);
}
.v319-brand-text { font-size: 15px; font-weight: 800; letter-spacing: .2px; line-height: 1.1; }
.v319-brand-text small { display:block; font-size: 10px; color: var(--v319-teal); font-weight: 600; }
.v319-header-actions { display: flex; align-items: center; gap: 6px; }
.v319-btn {
  border: 0; border-radius: 22px; padding: 8px 16px; font-size: 13px;
  font-weight: 700; cursor: pointer; display: inline-flex; align-items: center;
  gap: 6px; transition: transform .15s ease, box-shadow .2s ease;
}
.v319-btn:hover { transform: translateY(-1px); }
.v319-btn-login {
  background: transparent; color: var(--v319-sky);
  border: 1px solid var(--v319-sky);
}
.v319-btn-register {
  background: linear-gradient(135deg, var(--v319-purple), var(--v319-blue));
  color: #fff; box-shadow: 0 6px 14px rgba(0,0,205,.4);
}
.v319-icon-btn {
  background: transparent; color: var(--v319-text); border: 0;
  font-size: 20px; padding: 6px; cursor: pointer; border-radius: 8px;
}
.v319-icon-btn:hover { background: rgba(135,206,250,.12); }

/* search bar */
.v319-search {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  background: rgba(10,10,10,.95);
}
.v319-search-open { max-height: 60px; }
.v319-search input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--v319-border);
  border-radius: 10px; background: #15122b; color: var(--v319-text);
  font-size: 14px; outline: none;
}

/* ---------- Hero ---------- */
.v319-hero {
  position: relative;
  padding: 26px 14px 30px;
  text-align: center;
  background:
    radial-gradient(circle at 30% 10%, rgba(135,206,250,.18), transparent 60%),
    radial-gradient(circle at 80% 90%, rgba(153,102,204,.25), transparent 60%);
}
.v319-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 700;
  color: var(--v319-teal); border: 1px solid var(--v319-teal);
  background: rgba(64,224,208,.08);
}
.v319-hero h1 {
  font-size: 26px; line-height: 1.25; margin: 12px 0 8px; font-weight: 800;
  background: linear-gradient(90deg, #fff, var(--v319-sky) 60%, var(--v319-teal));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.v319-hero p { color: var(--v319-muted); font-size: 14px; margin: 0 auto 18px; max-width: 380px; }
.v319-hero-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.v319-cta-primary {
  background: linear-gradient(135deg, var(--v319-purple), var(--v319-blue));
  color: #fff; padding: 12px 26px; border-radius: 26px; font-weight: 800;
  font-size: 14px; box-shadow: 0 8px 18px rgba(0,0,205,.45); border: 0; cursor: pointer;
}
.v319-cta-ghost {
  background: transparent; color: var(--v319-sky); padding: 12px 22px;
  border-radius: 26px; font-weight: 700; font-size: 14px;
  border: 1px solid var(--v319-sky); cursor: pointer;
}

/* ---------- Carousel ---------- */
.v319-carousel { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.v319-carousel::-webkit-scrollbar { display: none; }
.v319-slide { flex: 0 0 88%; scroll-snap-align: center; border-radius: var(--v319-radius); overflow: hidden; border: 1px solid var(--v319-border); box-shadow: var(--v319-shadow); background: var(--v319-card); }
.v319-slide img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.v319-compact-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.v319-compact-game { border: 0; background: transparent; color: var(--v319-text); padding: 0; text-align: center; cursor: pointer; min-height: 44px; }
.v319-compact-game img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--v319-border); }
.v319-compact-game span { display: block; margin-top: 4px; font-size: 10px; line-height: 1.2; color: var(--v319-muted); }

/* ---------- Section base ---------- */
.v319-section { padding: 26px 0; }
.v319-section-head { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.v319-section-head .v319-bullet {
  width: 6px; height: 26px; border-radius: 4px;
  background: linear-gradient(var(--v319-purple), var(--v319-teal));
}
.v319-section-head h2 { font-size: 18px; margin: 0; font-weight: 800; }
.v319-section-head .v319-more {
  margin-left: auto; font-size: 12px; color: var(--v319-sky);
}

/* ---------- Category chips ---------- */
.v319-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; }
.v319-chips::-webkit-scrollbar { display: none; }
.v319-chip {
  flex: 0 0 auto; padding: 8px 16px; border-radius: 20px; font-size: 12px;
  font-weight: 700; color: var(--v319-muted); background: var(--v319-card);
  border: 1px solid var(--v319-border); white-space: nowrap; cursor: pointer;
}
.v319-chip:hover, .v319-chip.v319-active {
  color: #fff; background: linear-gradient(135deg, var(--v319-purple), var(--v319-blue));
  border-color: transparent;
}

/* ---------- Game grid ---------- */
.v319-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.v319-game {
  position: relative; border-radius: var(--v319-radius); overflow: hidden;
  background: var(--v319-card); border: 1px solid var(--v319-border);
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease;
}
.v319-game:hover { transform: translateY(-3px); box-shadow: var(--v319-shadow); }
.v319-game img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.v319-game-name {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 6px 8px; font-size: 11px; font-weight: 700;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  text-align: center; color: #fff;
}
.v319-game-tag {
  position: absolute; top: 6px; left: 6px; padding: 2px 8px;
  font-size: 9px; font-weight: 800; border-radius: 8px;
  background: var(--v319-teal); color: #062; text-transform: uppercase;
}
.v319-game-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(10,10,10,.55); opacity: 0; transition: opacity .2s ease;
  color: #fff; font-size: 12px; font-weight: 700;
}
.v319-game:hover .v319-game-play { opacity: 1; }

/* ---------- Feature cards ---------- */
.v319-features { display: grid; gap: 12px; }
.v319-feature {
  display: flex; gap: 12px; padding: 14px; border-radius: var(--v319-radius);
  background: var(--v319-card); border: 1px solid var(--v319-border);
}
.v319-feature-ic {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(135deg, var(--v319-purple), var(--v319-blue));
  color: #fff;
}
.v319-feature h3 { margin: 0 0 4px; font-size: 14px; font-weight: 800; }
.v319-feature p { margin: 0; font-size: 12px; color: var(--v319-muted); }

/* ---------- Promo banner ---------- */
.v319-promo {
  position: relative; border-radius: var(--v319-radius); overflow: hidden;
  padding: 18px; color: #fff; margin: 14px 0;
  background: linear-gradient(120deg, var(--v319-blue), var(--v319-purple));
  border: 1px solid var(--v319-border);
}
.v319-promo h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; }
.v319-promo p { margin: 0 0 12px; font-size: 12px; color: #d8d2f5; }
.v319-promo button {
  background: #fff; color: var(--v319-blue); border: 0; padding: 8px 18px;
  border-radius: 20px; font-weight: 800; font-size: 12px; cursor: pointer;
}

/* ---------- SEO content ---------- */
.v319-seo { padding: 22px 0; }
.v319-seo h2 { font-size: 17px; margin: 0 0 10px; }
.v319-seo h3 { font-size: 14px; margin: 14px 0 6px; color: var(--v319-teal); }
.v319-seo p { font-size: 13px; color: var(--v319-muted); margin: 0 0 10px; }
.v319-seo a { color: var(--v319-sky); }
.v319-seo ul { padding-left: 18px; color: var(--v319-muted); font-size: 13px; }
.v319-seo li { margin-bottom: 6px; }

/* ---------- FAQ ---------- */
.v319-faq-item {
  border: 1px solid var(--v319-border); border-radius: 12px;
  margin-bottom: 8px; overflow: hidden; background: var(--v319-card);
}
.v319-faq-q {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; padding: 12px 14px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.v319-faq-a { padding: 0 14px; font-size: 12px; color: var(--v319-muted); }
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }
details[open] .v319-faq-q { color: var(--v319-teal); }
details[open] .v319-faq-a { padding-bottom: 12px; }

/* ---------- Footer ---------- */
.v319-footer {
  margin-top: 10px; padding: 24px 0 28px;
  border-top: 1px solid var(--v319-border);
  background: rgba(8,8,20,.9);
}
.v319-foot-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.v319-foot-col h4 { font-size: 12px; margin: 0 0 8px; color: var(--v319-teal); text-transform: uppercase; }
.v319-foot-col a { display: block; font-size: 12px; color: var(--v319-muted); padding: 3px 0; }
.v319-foot-col a:hover { color: var(--v319-sky); }
.v319-foot-disclaimer {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--v319-border);
  font-size: 11px; color: #6c6691; line-height: 1.6;
}
.v319-foot-copy { margin-top: 8px; font-size: 11px; color: #5a557d; text-align: center; }

/* ---------- Bottom nav ---------- */
.v319-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: 62px; display: flex; justify-content: space-around; align-items: center;
  background: linear-gradient(180deg, rgba(20,16,55,.96), rgba(8,8,20,.98));
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--v319-border);
  max-width: 430px; margin: 0 auto;
}
.v319-navbtn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: 0; color: var(--v319-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer; font-size: 10px; font-weight: 700;
  transition: color .15s ease, transform .15s ease;
}
.v319-navbtn .v319-nav-ic { font-size: 22px; }
.v319-navbtn:hover { color: var(--v319-sky); transform: translateY(-1px); }
.v319-navbtn.v319-active { color: var(--v319-teal); }
.v319-navbtn.v319-promo-btn .v319-nav-ic {
  background: linear-gradient(135deg, var(--v319-purple), var(--v319-blue));
  color: #fff; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; margin-top: -10px;
  box-shadow: 0 6px 14px rgba(0,0,205,.45);
}

/* ---------- Mobile menu drawer ---------- */
.v319-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 9998;
}
.v319-overlay-show { opacity: 1; pointer-events: auto; }
.v319-mobile-menu {
  position: fixed; top: 0; right: -84%; width: 80%; max-width: 340px;
  height: 100%; background: linear-gradient(180deg, #14102c, #0a0a0a);
  z-index: 9999; transition: right .3s ease; padding: 18px 16px;
  overflow-y: auto; border-left: 1px solid var(--v319-border);
}
.v319-menu-open { right: 0; }
.v319-mobile-menu h4 {
  font-size: 12px; color: var(--v319-teal); text-transform: uppercase;
  margin: 16px 0 8px; letter-spacing: .5px;
}
.v319-mobile-menu a {
  display: block; padding: 10px 12px; border-radius: 10px;
  font-size: 13px; color: var(--v319-text);
}
.v319-mobile-menu a:hover { background: rgba(135,206,250,.1); color: var(--v319-sky); }
.v319-menu-close {
  position: absolute; top: 10px; right: 12px; background: transparent;
  border: 0; color: var(--v319-text); font-size: 24px; cursor: pointer;
}

/* ---------- Content pages ---------- */
.v319-page-hero {
  padding: 24px 14px 20px; text-align: left;
  background: linear-gradient(135deg, rgba(153,102,204,.18), rgba(0,0,205,.2));
  border-bottom: 1px solid var(--v319-border);
}
.v319-page-hero h1 { font-size: 22px; line-height: 1.25; margin: 8px 0; }
.v319-page-hero p { font-size: 13px; color: var(--v319-muted); margin: 0 0 12px; }
.v319-breadcrumb { font-size: 11px; color: var(--v319-muted); margin-bottom: 8px; }
.v319-card {
  padding: 14px; border-radius: var(--v319-radius); background: var(--v319-card);
  border: 1px solid var(--v319-border); box-shadow: 0 6px 16px rgba(0,0,0,.22);
}
.v319-card h3 { margin: 0 0 8px; font-size: 15px; color: var(--v319-teal); }
.v319-card p { margin: 0 0 10px; font-size: 13px; color: var(--v319-muted); }
.v319-card ul, .v319-card ol { margin: 8px 0 0; padding-left: 20px; color: var(--v319-muted); font-size: 13px; }
.v319-card li { margin-bottom: 7px; }
.v319-mini-grid { display: grid; gap: 12px; margin-top: 12px; }
.v319-cta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.v319-mini-cta {
  border: 0; border-radius: 18px; padding: 9px 14px; min-height: 44px;
  background: linear-gradient(135deg, var(--v319-purple), var(--v319-blue));
  color: #fff; font-size: 12px; font-weight: 800; cursor: pointer;
}
.v319-inline-link {
  border: 0; background: transparent; color: var(--v319-teal); font: inherit;
  font-weight: 800; padding: 0; cursor: pointer; text-decoration: underline;
}
.v319-note {
  margin: 12px 0; padding: 12px; border-radius: 12px;
  background: rgba(64,224,208,.08); border: 1px dashed rgba(64,224,208,.35);
  color: var(--v319-muted); font-size: 12px;
}
.v319-stat-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 12px 0; }
.v319-stat { text-align: center; padding: 10px 6px; border-radius: 12px; background: rgba(135,206,250,.08); }
.v319-stat strong { display: block; color: var(--v319-teal); font-size: 16px; }
.v319-stat span { font-size: 10px; color: var(--v319-muted); }

/* ---------- Scroll reveal ---------- */
.v319-reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.v319-revealed { opacity: 1; transform: translateY(0); }

/* ---------- Mobile padding so bottom nav doesn't cover content ---------- */
@media (max-width: 768px) {
  main.v319-main { padding-bottom: 84px; }
}
@media (min-width: 769px) {
  .v319-bottomnav { display: none; }
  .v319-container { max-width: 720px; }
  .v319-grid { grid-template-columns: repeat(6, 1fr); }
  .v319-foot-grid { grid-template-columns: repeat(4,1fr); }
}
@media (max-width: 430px) {
  .v319-hero h1 { font-size: 22px; }
  .v319-grid { grid-template-columns: repeat(2, 1fr); }
  .v319-section-head h2 { font-size: 16px; }
}
