/* ============================================================
   Table Plus Game - layout-316c.css
   Prefix: g6ca-
   Palette: #2C2C2C (bg) | #FFB3FF (accent-light) | #AD1457 (brand)
   Mobile-first, max-width: 430px
   ============================================================ */

:root {
  --g6ca-bg: #2C2C2C;
  --g6ca-bg-2: #1c1c1c;
  --g6ca-bg-3: #3a3a3a;
  --g6ca-card: #323232;
  --g6ca-card-2: #3e3e3e;
  --g6ca-light: #FFB3FF;
  --g6ca-light-2: #ffd6f7;
  --g6ca-brand: #AD1457;
  --g6ca-brand-2: #c2185b;
  --g6ca-brand-3: #880e4f;
  --g6ca-text: #f7e9f3;
  --g6ca-text-dim: #c9b9c4;
  --g6ca-muted: #9a8a95;
  --g6ca-gold: #ffd66b;
  --g6ca-border: rgba(255, 179, 255, 0.16);
  --g6ca-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --g6ca-radius: 14px;
  --g6ca-radius-lg: 22px;
  --g6ca-radius-sm: 10px;
  --g6ca-header-h: 62px;
  --g6ca-nav-h: 62px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, system-ui, -apple-system, sans-serif;
  background: radial-gradient(1200px 600px at 20% -10%, #3a2436 0%, transparent 60%),
              linear-gradient(180deg, #2C2C2C 0%, #1c1c1c 60%, #2C2C2C 100%);
  color: var(--g6ca-text);
  font-size: 1.5rem;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--g6ca-light); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--g6ca-light-2); }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Layout container ---------- */
.g6ca-wrap {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  background: linear-gradient(180deg, rgba(255,179,255,0.02), rgba(0,0,0,0) 120px),
              var(--g6ca-bg);
  box-shadow: 0 0 60px rgba(0,0,0,0.6);
  min-height: 100vh;
}

/* ---------- Header ---------- */
.g6ca-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--g6ca-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: linear-gradient(90deg, rgba(173,20,87,0.92), rgba(44,44,44,0.95) 55%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--g6ca-border);
}
.g6ca-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.7rem;
  color: #fff;
  letter-spacing: .2px;
}
.g6ca-logo .g6ca-logo-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--g6ca-brand), var(--g6ca-light));
  display: grid; place-items: center;
  color: #2C2C2C;
  font-size: 1.6rem;
  box-shadow: 0 4px 14px rgba(173,20,87,0.5);
}
.g6ca-logo small {
  display: block;
  font-size: 1.0rem;
  font-weight: 500;
  color: var(--g6ca-light);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.g6ca-header-actions { display: flex; align-items: center; gap: 8px; }
.g6ca-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  min-height: 38px;
}
.g6ca-btn:active { transform: scale(0.96); }
.g6ca-btn-login {
  background: transparent;
  border: 1.5px solid var(--g6ca-light);
  color: var(--g6ca-light);
}
.g6ca-btn-login:hover { background: rgba(255,179,255,0.12); }
.g6ca-btn-register {
  background: linear-gradient(135deg, var(--g6ca-light), var(--g6ca-brand-2));
  color: #fff;
  box-shadow: 0 6px 18px rgba(173,20,87,0.45);
}
.g6ca-btn-register:hover { filter: brightness(1.08); }
.g6ca-menu-toggle {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: #fff;
  background: rgba(255,255,255,0.08);
  font-size: 1.8rem;
}

/* ---------- Mobile menu drawer ---------- */
.g6ca-drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
  z-index: 9998;
}
.g6ca-drawer-backdrop.g6ca-open { opacity: 1; visibility: visible; }
.g6ca-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 82%; max-width: 340px;
  height: 100vh;
  background: linear-gradient(180deg, #2C2C2C, #1c1c1c);
  border-left: 1px solid var(--g6ca-border);
  transform: translateX(105%);
  transition: transform .28s cubic-bezier(.4,.2,.2,1);
  z-index: 9999;
  overflow-y: auto;
  padding: 18px 16px 40px;
}
.g6ca-drawer.g6ca-open { transform: translateX(0); }
.g6ca-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.g6ca-drawer-head h3 {
  font-size: 1.6rem; color: var(--g6ca-light); font-weight: 700;
}
.g6ca-drawer-close {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,0.06); color: #fff;
  font-size: 1.7rem;
}
.g6ca-drawer-cta {
  display: flex; gap: 10px; margin: 14px 0 18px;
}
.g6ca-drawer-cta .g6ca-btn { flex: 1; }
.g6ca-drawer-nav li a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px;
  border-radius: 10px;
  color: var(--g6ca-text);
  font-size: 1.4rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.g6ca-drawer-nav li a:hover { background: rgba(255,179,255,0.08); color: var(--g6ca-light); }
.g6ca-drawer-nav li a i { color: var(--g6ca-light); font-size: 1.6rem; width: 22px; text-align: center; }
.g6ca-drawer-section-title {
  font-size: 1.15rem; color: var(--g6ca-muted);
  text-transform: uppercase; letter-spacing: 1.5px;
  margin: 18px 6px 8px;
}

/* ---------- Main / sections ---------- */
main { padding-bottom: 80px; }
.g6ca-section { padding: 22px 14px 6px; }
.g6ca-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.g6ca-section-title {
  font-size: 1.8rem; font-weight: 800; color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.g6ca-section-title .g6ca-bar {
  width: 5px; height: 22px; border-radius: 4px;
  background: linear-gradient(180deg, var(--g6ca-light), var(--g6ca-brand));
}
.g6ca-section-more {
  font-size: 1.25rem; color: var(--g6ca-light); font-weight: 600;
}

/* ---------- Hero / Carousel ---------- */
.g6ca-hero {
  margin: 12px 12px 0;
  border-radius: var(--g6ca-radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--g6ca-shadow);
}
.g6ca-hero-track {
  display: flex;
  transition: transform .5s ease;
  will-change: transform;
}
.g6ca-hero-slide {
  min-width: 100%;
  position: relative;
  display: block;
}
.g6ca-hero-slide img {
  width: 100%; height: 190px; object-fit: cover;
}
.g6ca-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(44,44,44,0.25) 0%, rgba(44,44,44,0.85) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px 16px;
}
.g6ca-hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  background: var(--g6ca-brand);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.g6ca-hero-title {
  font-size: 2.0rem; font-weight: 800; color: #fff; line-height: 1.2;
  margin-bottom: 4px;
}
.g6ca-hero-sub { font-size: 1.25rem; color: var(--g6ca-light-2); margin-bottom: 10px; }
.g6ca-hero-cta {
  align-self: flex-start;
  background: linear-gradient(135deg, var(--g6ca-light), var(--g6ca-brand-2));
  color: #fff; padding: 8px 18px; border-radius: 999px;
  font-weight: 700; font-size: 1.25rem;
  box-shadow: 0 6px 16px rgba(173,20,87,0.5);
}
.g6ca-hero-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.g6ca-hero-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: all .25s;
}
.g6ca-hero-dots span.g6ca-active {
  background: var(--g6ca-light); width: 18px; border-radius: 4px;
}

/* ---------- Quick stats strip ---------- */
.g6ca-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 14px 12px 4px;
}
.g6ca-stat {
  background: var(--g6ca-card);
  border: 1px solid var(--g6ca-border);
  border-radius: var(--g6ca-radius-sm);
  padding: 10px 4px;
  text-align: center;
}
.g6ca-stat .g6ca-num {
  font-size: 1.6rem; font-weight: 800; color: var(--g6ca-light);
}
.g6ca-stat .g6ca-label { font-size: 1.0rem; color: var(--g6ca-text-dim); margin-top: 2px; }

/* ---------- Category chips ---------- */
.g6ca-chips {
  display: flex; gap: 8px;
  overflow-x: auto;
  padding: 6px 12px 12px;
  scrollbar-width: none;
}
.g6ca-chips::-webkit-scrollbar { display: none; }
.g6ca-chip {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--g6ca-card);
  border: 1px solid var(--g6ca-border);
  color: var(--g6ca-text-dim);
  font-size: 1.2rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .2s;
}
.g6ca-chip.g6ca-active, .g6ca-chip:hover {
  background: linear-gradient(135deg, var(--g6ca-brand), var(--g6ca-brand-2));
  color: #fff; border-color: transparent;
}

/* ---------- Game grid ---------- */
.g6ca-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.g6ca-card {
  background: var(--g6ca-card);
  border-radius: var(--g6ca-radius);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--g6ca-border);
  transition: transform .18s ease, box-shadow .2s ease;
}
.g6ca-card:hover, .g6ca-card:active {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(173,20,87,0.35);
  border-color: var(--g6ca-light);
}
.g6ca-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #1a1a1a;
  overflow: hidden;
}
.g6ca-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s;
}
.g6ca-card:hover .g6ca-card-img img { transform: scale(1.06); }
.g6ca-card-badge {
  position: absolute; top: 6px; left: 6px;
  background: var(--g6ca-brand);
  color: #fff;
  font-size: 0.95rem; font-weight: 700;
  padding: 2px 7px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: .5px;
}
.g6ca-card-badge.g6ca-hot { background: linear-gradient(135deg, #ff5d73, var(--g6ca-brand)); }
.g6ca-card-badge.g6ca-new { background: linear-gradient(135deg, var(--g6ca-gold), #c79a00); color: #2C2C2C; }
.g6ca-card-play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(28,28,28,0.55);
  opacity: 0; transition: opacity .2s;
}
.g6ca-card:hover .g6ca-card-play { opacity: 1; }
.g6ca-card-play span {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--g6ca-light); color: var(--g6ca-brand);
  display: grid; place-items: center; font-size: 1.6rem;
}
.g6ca-card-title {
  padding: 6px 8px 8px;
  font-size: 1.15rem; font-weight: 600; color: var(--g6ca-text);
  text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Featured (2-col) ---------- */
.g6ca-featured { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.g6ca-featured .g6ca-card-img { aspect-ratio: 4 / 3; }

/* ---------- Promo banner CTA ---------- */
.g6ca-promo-banner {
  margin: 18px 12px;
  border-radius: var(--g6ca-radius-lg);
  padding: 18px 16px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255,179,255,0.25), transparent 60%),
    linear-gradient(135deg, var(--g6ca-brand-3), var(--g6ca-brand) 50%, #5b0a32);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--g6ca-shadow);
}
.g6ca-promo-banner::after {
  content: ""; position: absolute; right: -30px; top: -30px;
  width: 130px; height: 130px; border-radius: 50%;
  background: rgba(255,179,255,0.18);
}
.g6ca-promo-banner h3 { font-size: 1.9rem; font-weight: 800; margin-bottom: 4px; position: relative; }
.g6ca-promo-banner p { font-size: 1.25rem; color: var(--g6ca-light-2); margin-bottom: 12px; position: relative; }
.g6ca-promo-banner .g6ca-btn {
  background: #fff; color: var(--g6ca-brand);
  position: relative;
}

/* ---------- SEO long text ---------- */
.g6ca-seo {
  padding: 14px 14px 4px;
}
.g6ca-seo h2 {
  font-size: 1.9rem; font-weight: 800; color: #fff; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.g6ca-seo h2 .g6ca-bar {
  width: 5px; height: 20px; border-radius: 4px;
  background: linear-gradient(180deg, var(--g6ca-light), var(--g6ca-brand));
}
.g6ca-seo h3 { font-size: 1.5rem; color: var(--g6ca-light); margin: 14px 0 6px; font-weight: 700; }
.g6ca-seo p { color: var(--g6ca-text-dim); font-size: 1.3rem; margin-bottom: 10px; }
.g6ca-seo ul { margin: 6px 0 12px 4px; }
.g6ca-seo ul li {
  position: relative; padding-left: 18px; margin-bottom: 6px;
  color: var(--g6ca-text-dim); font-size: 1.3rem;
}
.g6ca-seo ul li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--g6ca-light);
}
.g6ca-seo a { color: var(--g6ca-light); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.g6ca-seo strong { color: #fff; }

/* ---------- Steps / How-to ---------- */
.g6ca-steps { display: grid; gap: 10px; padding: 4px 0; }
.g6ca-step {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--g6ca-card);
  border: 1px solid var(--g6ca-border);
  border-radius: var(--g6ca-radius);
  padding: 12px;
}
.g6ca-step-num {
  flex: 0 0 36px; width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--g6ca-light), var(--g6ca-brand));
  color: #fff; font-weight: 800; font-size: 1.5rem;
  display: grid; place-items: center;
}
.g6ca-step h4 { font-size: 1.35rem; color: #fff; margin-bottom: 2px; }
.g6ca-step p { font-size: 1.2rem; color: var(--g6ca-text-dim); }

/* ---------- FAQ ---------- */
.g6ca-faq { display: grid; gap: 8px; }
.g6ca-faq-item {
  background: var(--g6ca-card);
  border: 1px solid var(--g6ca-border);
  border-radius: var(--g6ca-radius);
  overflow: hidden;
}
.g6ca-faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  text-align: left;
  font-size: 1.3rem; font-weight: 700; color: #fff;
}
.g6ca-faq-q .g6ca-icon { color: var(--g6ca-light); transition: transform .25s; font-size: 1.5rem; }
.g6ca-faq-item.g6ca-open .g6ca-faq-q .g6ca-icon { transform: rotate(45deg); }
.g6ca-faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
  padding: 0 14px;
  color: var(--g6ca-text-dim); font-size: 1.22rem;
}
.g6ca-faq-item.g6ca-open .g6ca-faq-a {
  max-height: 400px; padding: 0 14px 12px;
}

/* ---------- Footer ---------- */
.g6ca-footer {
  margin-top: 18px;
  background: #1a1a1a;
  border-top: 1px solid var(--g6ca-border);
  padding: 22px 14px 24px;
}
.g6ca-footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.g6ca-footer-col h4 {
  font-size: 1.3rem; color: var(--g6ca-light);
  margin-bottom: 8px; font-weight: 700;
}
.g6ca-footer-col li { margin-bottom: 6px; }
.g6ca-footer-col a { color: var(--g6ca-text-dim); font-size: 1.2rem; }
.g6ca-footer-col a:hover { color: var(--g6ca-light); }
.g6ca-footer-brand {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.g6ca-footer-brand .g6ca-logo-mark {
  width: 36px; height: 36px;
}
.g6ca-footer-brand h3 { font-size: 1.5rem; color: #fff; font-weight: 800; }
.g6ca-footer-brand p { font-size: 1.15rem; color: var(--g6ca-muted); }
.g6ca-footer-pay {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 10px 0 16px;
}
.g6ca-footer-pay span {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--g6ca-border);
  color: var(--g6ca-light-2);
  padding: 5px 10px; border-radius: 8px;
  font-size: 1.1rem; font-weight: 600;
}
.g6ca-footer-social { display: flex; gap: 8px; margin-bottom: 14px; }
.g6ca-footer-social a {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: grid; place-items: center;
  color: var(--g6ca-light); font-size: 1.6rem;
  border: 1px solid var(--g6ca-border);
}
.g6ca-footer-social a:hover { background: var(--g6ca-brand); color: #fff; }
.g6ca-footer-copy {
  font-size: 1.1rem; color: var(--g6ca-muted);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 12px;
}
.g6ca-footer-disclaimer {
  font-size: 1.05rem; color: var(--g6ca-muted);
  text-align: center; margin-top: 6px; line-height: 1.5;
}

/* ---------- Mobile bottom nav ---------- */
.g6ca-bottomnav {
  position: fixed;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  height: var(--g6ca-nav-h);
  background: linear-gradient(180deg, rgba(44,44,44,0.92), rgba(20,20,20,0.98));
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--g6ca-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.g6ca-bottomnav::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--g6ca-light), transparent);
  opacity: .4;
}
.g6ca-navbtn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  color: var(--g6ca-text-dim);
  position: relative;
  transition: color .2s;
}
.g6ca-navbtn i, .g6ca-navbtn span.material-symbols-outlined {
  font-size: 24px;
}
.g6ca-navbtn .g6ca-nav-label {
  font-size: 1.0rem; font-weight: 600;
}
.g6ca-navbtn.g6ca-center {
  position: relative;
}
.g6ca-navbtn.g6ca-center .g6ca-nav-circle {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--g6ca-light), var(--g6ca-brand));
  display: grid; place-items: center;
  color: #fff; font-size: 2.2rem;
  box-shadow: 0 6px 18px rgba(173,20,87,0.6);
  margin-top: -22px;
  border: 3px solid #1c1c1c;
}
.g6ca-navbtn.g6ca-active, .g6ca-navbtn:hover { color: var(--g6ca-light); }
.g6ca-navbtn.g6ca-active::after {
  content: ""; position: absolute; bottom: 6px;
  width: 18px; height: 3px; border-radius: 2px;
  background: var(--g6ca-light);
}

/* ---------- Desktop hide bottom nav ---------- */
@media (min-width: 769px) {
  .g6ca-bottomnav { display: none; }
  main { padding-bottom: 30px; }
}
@media (max-width: 768px) {
  main { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Desktop layout adapt ---------- */
@media (min-width: 431px) {
  .g6ca-grid { grid-template-columns: repeat(4, 1fr); }
  .g6ca-featured { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Utility ---------- */
.g6ca-text-light { color: var(--g6ca-light) !important; }
.g6ca-hidden { display: none !important; }
.g6ca-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.g6ca-link-inline {
  color: var(--g6ca-light);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
