/* =========================================================
 * g1688.click - design-501a.css
 * Palette: #4682B4 | #0C0C0C | #228B22 | #9966CC | #F5F5F5
 * All custom classes use the `w501a-` prefix.
 * Mobile-first. Max width 430px optimized.
 * ========================================================= */

:root {
  --w501a-blue: #4682B4;
  --w501a-dark: #0C0C0C;
  --w501a-green: #228B22;
  --w501a-purple: #9966CC;
  --w501a-light: #F5F5F5;
  --w501a-gold: #F5C518;
  --w501a-grad: linear-gradient(135deg, #4682B4 0%, #9966CC 60%, #228B22 100%);
  --w501a-bg: #0a0f1a;
  --w501a-card: #141c2e;
  --w501a-card-2: #1c2640;
  --w501a-border: #2a3654;
  --w501a-text: #F5F5F5;
  --w501a-muted: #9aa6c2;
  --w501a-radius: 14px;
  --w501a-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

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

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

body {
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--w501a-bg);
  color: var(--w501a-text);
  line-height: 1.6;
  font-size: 15px;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

a { color: var(--w501a-blue); text-decoration: none; }
a:hover { color: #6ba6d6; }
img { max-width: 100%; display: block; }

/* =================== HEADER =================== */
.w501a-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 15, 26, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--w501a-border);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow .3s, background .3s;
}
.w501a-header.w501a-scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.5); background: rgba(10,15,26,.98); }

.w501a-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 20px;
  color: var(--w501a-text);
  letter-spacing: .5px;
}
.w501a-logo .w501a-logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--w501a-grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; font-weight: 900;
  box-shadow: 0 2px 8px rgba(70,130,180,.5);
}
.w501a-logo span { background: var(--w501a-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.w501a-header-actions { display: flex; align-items: center; gap: 8px; }

.w501a-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 13px;
  transition: transform .15s, box-shadow .2s, opacity .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.w501a-btn:active { transform: scale(.95); }
.w501a-btn-login {
  background: transparent;
  color: var(--w501a-text);
  border: 1px solid var(--w501a-blue);
}
.w501a-btn-register {
  background: var(--w501a-grad);
  color: #fff;
  box-shadow: 0 3px 12px rgba(153,102,204,.45);
}
.w501a-btn-promo {
  background: linear-gradient(135deg, var(--w501a-green), var(--w501a-blue));
  color: #fff;
  padding: 11px 22px;
  font-size: 14px;
  border-radius: 12px;
}
.w501a-icon-btn {
  background: transparent;
  border: none;
  color: var(--w501a-text);
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =================== MOBILE MENU =================== */
.w501a-menu-btn { display: inline-flex; }

.w501a-mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 82%;
  max-width: 340px;
  height: 100%;
  background: var(--w501a-card);
  z-index: 9999;
  padding: 22px 18px;
  transition: right .3s ease;
  overflow-y: auto;
  border-left: 1px solid var(--w501a-border);
}
.w501a-mobile-menu.w501a-open { right: 0; }
.w501a-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.w501a-menu-overlay.w501a-show { opacity: 1; pointer-events: auto; }

.w501a-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--w501a-border);
}
.w501a-menu-head .w501a-logo { font-size: 18px; }
.w501a-menu-close { background: transparent; border: none; color: var(--w501a-text); font-size: 26px; cursor: pointer; line-height: 1; }

.w501a-menu-section-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--w501a-muted); margin: 18px 0 8px;
}
.w501a-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  color: var(--w501a-text);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: background .2s;
}
.w501a-menu-link:hover, .w501a-menu-link:active { background: var(--w501a-card-2); color: #fff; }
.w501a-menu-link i, .w501a-menu-link .material-icons-outlined { font-size: 18px; color: var(--w501a-blue); }

.w501a-menu-cta { margin-top: 18px; display: grid; gap: 10px; }
.w501a-menu-cta .w501a-btn { justify-content: center; padding: 12px; }

/* =================== HERO =================== */
.w501a-hero { padding: 16px 14px 6px; }
.w501a-hero-inner {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--w501a-shadow);
}
.w501a-carousel { position: relative; }
.w501a-slide {
  display: none;
  position: relative;
  min-height: 220px;
}
.w501a-slide.w501a-active { display: block; animation: w501a-fade .8s ease; }
@keyframes w501a-fade { from { opacity: .3; } to { opacity: 1; } }
.w501a-slide img { width: 100%; height: 240px; object-fit: cover; }
.w501a-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,12,12,.92) 10%, rgba(12,12,12,.25) 60%, rgba(12,12,12,.1) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px;
}
.w501a-slide-title { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.w501a-slide-sub { font-size: 13px; color: var(--w501a-light); margin-bottom: 12px; opacity: .92; }
.w501a-slide .w501a-btn-promo { align-self: flex-start; }

.w501a-carousel-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
  transform: translateY(-50%);
  pointer-events: none;
}
.w501a-carousel-nav button {
  pointer-events: auto;
  background: rgba(0,0,0,.45);
  color: #fff;
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
}
.w501a-dots {
  display: flex; justify-content: center; gap: 6px;
  padding: 8px 0 2px;
}
.w501a-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--w501a-border); cursor: pointer; transition: background .2s, width .2s;
}
.w501a-dot.w501a-active { background: var(--w501a-blue); width: 20px; border-radius: 4px; }

/* =================== QUICK STATS =================== */
.w501a-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px 14px 16px;
}
.w501a-stat {
  background: var(--w501a-card);
  border: 1px solid var(--w501a-border);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
}
.w501a-stat-num {
  font-size: 18px; font-weight: 800;
  background: var(--w501a-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.w501a-stat-label { font-size: 11px; color: var(--w501a-muted); margin-top: 2px; }

/* =================== SECTION HEADINGS =================== */
.w501a-section { padding: 18px 14px; }
.w501a-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.w501a-section-title {
  font-size: 19px; font-weight: 800;
  display: flex; align-items: center; gap: 8px;
}
.w501a-section-title::before {
  content: "";
  width: 4px; height: 22px;
  background: var(--w501a-grad);
  border-radius: 3px;
}
.w501a-section-more { font-size: 12px; color: var(--w501a-blue); font-weight: 600; }

/* =================== CATEGORY FILTER =================== */
.w501a-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 14px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.w501a-filter-bar::-webkit-scrollbar { display: none; }
.w501a-filter-tab {
  flex: 0 0 auto;
  background: var(--w501a-card);
  border: 1px solid var(--w501a-border);
  color: var(--w501a-text);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.w501a-filter-tab.w501a-active {
  background: var(--w501a-grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(70,130,180,.4);
}

/* =================== GAME GRID & CARDS =================== */
.w501a-game-section { margin-bottom: 8px; }
.w501a-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.w501a-game-card {
  background: var(--w501a-card);
  border: 1px solid var(--w501a-border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.w501a-game-card:active { transform: scale(.96); }
.w501a-game-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--w501a-card-2);
  overflow: hidden;
}
.w501a-game-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.w501a-game-card:hover .w501a-game-card-img img { transform: scale(1.08); }
.w501a-game-card-badge {
  position: absolute;
  top: 6px; left: 6px;
  background: linear-gradient(135deg, var(--w501a-green), #1a6b1a);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.w501a-game-card-badge.w501a-hot { background: linear-gradient(135deg, #d4380d, #ff7a45); }
.w501a-game-card-badge.w501a-new { background: linear-gradient(135deg, var(--w501a-purple), #7a3fb0); }
.w501a-game-card-play {
  position: absolute; inset: 0;
  background: rgba(12,12,12,.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .25s;
}
.w501a-game-card:hover .w501a-game-card-play,
.w501a-game-card:active .w501a-game-card-play { opacity: 1; }
.w501a-game-card-play .w501a-btn { font-size: 12px; padding: 7px 14px; }
.w501a-game-card-name {
  padding: 7px 8px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--w501a-text);
}

/* =================== FEATURED =================== */
.w501a-featured-card {
  background: linear-gradient(135deg, var(--w501a-card), var(--w501a-card-2));
  border: 1px solid var(--w501a-border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0;
  box-shadow: var(--w501a-shadow);
}
.w501a-featured-img { height: 100%; }
.w501a-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.w501a-featured-body { padding: 12px 14px; }
.w501a-featured-tag {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  background: rgba(70,130,180,.18);
  color: var(--w501a-blue);
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}
.w501a-featured-title { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.w501a-featured-desc { font-size: 12px; color: var(--w501a-muted); margin-bottom: 8px; line-height: 1.5; }

/* =================== PROMO BANNER =================== */
.w501a-promo-banner {
  background: var(--w501a-grad);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  margin: 4px 0 0;
  color: #fff;
  box-shadow: 0 8px 24px rgba(153,102,204,.35);
}
.w501a-promo-banner h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.w501a-promo-banner p { font-size: 12px; opacity: .92; margin-bottom: 12px; }
.w501a-promo-banner .w501a-btn {
  background: #fff;
  color: var(--w501a-dark);
  font-weight: 800;
  padding: 11px 26px;
  border-radius: 24px;
}

/* =================== SEO TEXT =================== */
.w501a-seo-text {
  background: var(--w501a-card);
  border: 1px solid var(--w501a-border);
  border-radius: 14px;
  padding: 18px 16px;
  font-size: 13.5px;
  color: #cdd6e8;
  line-height: 1.75;
}
.w501a-seo-text h2 {
  font-size: 17px; font-weight: 800; margin: 14px 0 8px; color: #fff;
}
.w501a-seo-text h2:first-child { margin-top: 0; }
.w501a-seo-text h3 { font-size: 15px; font-weight: 700; margin: 12px 0 6px; color: var(--w501a-light); }
.w501a-seo-text p { margin-bottom: 10px; }
.w501a-seo-text a { color: var(--w501a-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.w501a-seo-text ul { margin: 6px 0 10px 20px; }
.w501a-seo-text li { margin-bottom: 4px; }

/* =================== FAQ =================== */
.w501a-faq-item {
  background: var(--w501a-card);
  border: 1px solid var(--w501a-border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}
.w501a-faq-q {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--w501a-text);
  text-align: left;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-family: inherit;
}
.w501a-faq-q .w501a-faq-icon { transition: transform .3s; color: var(--w501a-blue); font-size: 18px; }
.w501a-faq-item.w501a-open .w501a-faq-icon { transform: rotate(45deg); }
.w501a-faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  padding: 0 16px;
  font-size: 13px;
  color: var(--w501a-muted);
  line-height: 1.7;
}
.w501a-faq-item.w501a-open .w501a-faq-body { padding: 0 16px 14px; }

/* =================== FOOTER =================== */
.w501a-footer {
  background: #060a13;
  border-top: 1px solid var(--w501a-border);
  padding: 22px 16px 30px;
  margin-top: 10px;
}
.w501a-footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.w501a-footer-title {
  font-size: 13px; font-weight: 800; color: #fff;
  margin-bottom: 10px; letter-spacing: .5px;
}
.w501a-footer-list { list-style: none; }
.w501a-footer-list li { margin-bottom: 7px; }
.w501a-footer-list a { color: var(--w501a-muted); font-size: 12.5px; transition: color .2s; }
.w501a-footer-list a:hover { color: var(--w501a-blue); }

.w501a-footer-about p { font-size: 12px; color: var(--w501a-muted); margin-top: 8px; line-height: 1.6; }
.w501a-footer-social { display: flex; gap: 10px; margin-top: 10px; }
.w501a-footer-social a {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--w501a-card-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--w501a-text); font-size: 15px;
  border: 1px solid var(--w501a-border);
}

.w501a-footer-bottom {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--w501a-border);
  font-size: 11px;
  color: var(--w501a-muted);
  line-height: 1.7;
}
.w501a-footer-bottom .w501a-age {
  display: inline-block;
  border: 1px solid var(--w501a-border);
  border-radius: 6px;
  padding: 2px 8px;
  margin-top: 8px;
  font-weight: 700;
  color: var(--w501a-light);
}

/* =================== BOTTOM NAV =================== */
.w501a-bottom-nav {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: rgba(10, 15, 26, .97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--w501a-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 62px;
  z-index: 1000;
  padding: 0 4px;
}
.w501a-bottom-nav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--w501a-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  font-family: inherit;
  cursor: pointer;
  padding: 6px 2px;
  min-width: 60px;
  min-height: 58px;
  transition: color .2s;
}
.w501a-bottom-nav-btn i,
.w501a-bottom-nav-btn .material-icons-outlined,
.w501a-bottom-nav-btn ion-icon {
  font-size: 22px;
}
.w501a-bottom-nav-btn ion-icon { font-size: 24px; }
.w501a-bottom-nav-btn.w501a-active { color: var(--w501a-blue); }
.w501a-bottom-nav-btn.w501a-center {
  position: relative;
}
.w501a-bottom-nav-btn.w501a-center .w501a-center-circle {
  width: 46px; height: 46px;
  background: var(--w501a-grad);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px;
  margin-top: -22px;
  box-shadow: 0 4px 14px rgba(153,102,204,.55);
  border: 3px solid var(--w501a-bg);
}
.w501a-bottom-nav-btn.w501a-center span { margin-top: 2px; }
.w501a-bottom-nav-btn:active { color: var(--w501a-blue); }

/* =================== TO TOP =================== */
.w501a-to-top {
  position: fixed;
  bottom: 76px;
  right: 16px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--w501a-blue);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .2s;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}
.w501a-to-top.w501a-show { opacity: 1; pointer-events: auto; }
.w501a-to-top:active { transform: scale(.9); }

/* =================== MARQUEE =================== */
.w501a-marquee {
  background: linear-gradient(90deg, rgba(34,139,34,.18), rgba(70,130,180,.18));
  border-top: 1px solid var(--w501a-border);
  border-bottom: 1px solid var(--w501a-border);
  padding: 7px 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 12px;
  color: var(--w501a-light);
}
.w501a-marquee span { display: inline-block; padding-left: 100%; animation: w501a-marq 22s linear infinite; }
@keyframes w501a-marq { to { transform: translateX(-100%); } }
.w501a-marquee b { color: var(--w501a-gold); }

/* =================== MAIN PADDING =================== */
main { padding-bottom: 80px; }

/* =================== DESKTOP =================== */
@media (min-width: 769px) {
  body { max-width: 100%; }
  .w501a-bottom-nav { display: none; }
  main { padding-bottom: 30px; }
  .w501a-header { padding: 12px 32px; }
  .w501a-hero, .w501a-section, .w501a-stats { padding-left: 32px; padding-right: 32px; }
  .w501a-game-grid { grid-template-columns: repeat(6, 1fr); }
  .w501a-featured-card { grid-template-columns: 180px 1fr; }
  .w501a-footer-cols { grid-template-columns: repeat(4, 1fr); }
  .w501a-menu-btn { display: none; }
}
