/* ===========================================================
   ga88top.click - style.css
   All custom classes use the g9a6- prefix.
   Palette: #0E1621 (deep navy bg) / #FFA500 (orange accent)
   Mobile-first. Root font-size 62.5% => 1rem = 10px.
   =========================================================== */

:root {
  --g9a6-bg: #0E1621;
  --g9a6-bg-2: #142033;
  --g9a6-bg-3: #1b2b45;
  --g9a6-accent: #FFA500;
  --g9a6-accent-2: #ff8a00;
  --g9a6-gold: #ffd479;
  --g9a6-text: #f3f5f9;
  --g9a6-muted: #9fb0c8;
  --g9a6-line: rgba(255, 255, 255, 0.08);
  --g9a6-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --g9a6-radius: 14px;
}

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

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

body {
  font-family: "Segoe UI", "Be Vietnam Pro", "Inter", system-ui, -apple-system, sans-serif;
  background: var(--g9a6-bg);
  color: var(--g9a6-text);
  line-height: 1.5;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--g9a6-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

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

/* ===== Header ===== */
.g9a6-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #0b1320 0%, #0E1621 100%);
  border-bottom: 1px solid var(--g9a6-line);
}
.g9a6-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 12px;
}
.g9a6-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: .5px;
  color: var(--g9a6-text);
}
.g9a6-logo .g9a6-logo-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--g9a6-accent), var(--g9a6-accent-2));
  display: grid; place-items: center;
  color: #0E1621;
  font-weight: 900;
  font-size: 1.6rem;
}
.g9a6-logo span { color: var(--g9a6-accent); }

.g9a6-header-actions { display: flex; align-items: center; gap: 8px; }
.g9a6-icon-btn {
  background: transparent;
  border: none;
  color: var(--g9a6-text);
  font-size: 2.2rem;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  cursor: pointer;
  border-radius: 10px;
}
.g9a6-icon-btn:hover { background: rgba(255,255,255,0.07); }

.g9a6-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 1.45rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
  text-decoration: none;
}
.g9a6-btn:hover { text-decoration: none; transform: translateY(-1px); }
.g9a6-btn-primary {
  background: linear-gradient(135deg, var(--g9a6-accent), var(--g9a6-accent-2));
  color: #0E1621;
  box-shadow: 0 6px 16px rgba(255, 138, 0, 0.35);
}
.g9a6-btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--g9a6-text);
  border: 1px solid var(--g9a6-line);
}
.g9a6-btn-block { width: 100%; padding: 14px; font-size: 1.6rem; }

/* ===== Mobile slide-in menu ===== */
.g9a6-menu-mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease;
}
.g9a6-menu-mask.g9a6-show { opacity: 1; visibility: visible; }
.g9a6-mobile-menu {
  position: fixed;
  top: 0; right: -80%;
  width: 80%; max-width: 320px;
  height: 100vh;
  background: var(--g9a6-bg-2);
  z-index: 9999;
  padding: 20px 18px;
  overflow-y: auto;
  transition: right .28s ease;
  display: flex; flex-direction: column; gap: 8px;
}
.g9a6-mobile-menu.g9a6-open { right: 0; }
.g9a6-mobile-menu h3 { font-size: 1.5rem; color: var(--g9a6-muted); margin: 14px 6px 6px; text-transform: uppercase; letter-spacing: 1px; }
.g9a6-mobile-menu a {
  display: block;
  padding: 12px 12px;
  color: var(--g9a6-text);
  border-radius: 10px;
  font-size: 1.5rem;
}
.g9a6-mobile-menu a:hover { background: rgba(255,165,0,0.12); text-decoration: none; }

/* ===== Hero carousel ===== */
.g9a6-hero {
  position: relative;
  margin: 14px 0;
  border-radius: var(--g9a6-radius);
  overflow: hidden;
  box-shadow: var(--g9a6-shadow);
}
.g9a6-hero-track { position: relative; height: 200px; }
.g9a6-hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  background-size: cover; background-position: center;
}
.g9a6-hero-slide.g9a6-active { opacity: 1; }
.g9a6-hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(14,22,33,0.92) 0%, rgba(14,22,33,0.25) 60%, rgba(14,22,33,0) 100%);
}
.g9a6-hero-content { position: relative; z-index: 2; }
.g9a6-hero-title { font-size: 2.2rem; font-weight: 900; line-height: 1.2; }
.g9a6-hero-title em { color: var(--g9a6-accent); font-style: normal; }
.g9a6-hero-sub { color: var(--g9a6-muted); margin: 6px 0 10px; font-size: 1.35rem; }
.g9a6-hero-dots {
  position: absolute; bottom: 10px; right: 14px; z-index: 3;
  display: flex; gap: 6px;
}
.g9a6-hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
}
.g9a6-hero-dot.g9a6-active { background: var(--g9a6-accent); width: 22px; border-radius: 4px; }

/* ===== Section heading ===== */
.g9a6-section { padding: 18px 0; }
.g9a6-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.g9a6-section-title {
  font-size: 1.9rem; font-weight: 800;
  display: flex; align-items: center; gap: 8px;
}
.g9a6-section-title i { color: var(--g9a6-accent); }
.g9a6-section-more { font-size: 1.3rem; color: var(--g9a6-accent); }

/* ===== Category tabs ===== */
.g9a6-cat-tabs {
  display: flex; gap: 8px;
  overflow-x: auto;
  padding: 6px 0 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.g9a6-cat-tabs::-webkit-scrollbar { display: none; }
.g9a6-cat-tab {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--g9a6-bg-2);
  color: var(--g9a6-text);
  font-size: 1.35rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--g9a6-line);
  white-space: nowrap;
}
.g9a6-cat-tab.g9a6-active {
  background: linear-gradient(135deg, var(--g9a6-accent), var(--g9a6-accent-2));
  color: #0E1621; border-color: transparent;
}

/* ===== Game grid ===== */
.g9a6-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.g9a6-card {
  background: var(--g9a6-bg-2);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--g9a6-line);
  transition: transform .15s ease;
}
.g9a6-card:hover { transform: translateY(-2px); }
.g9a6-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #0a121f;
  overflow: hidden;
}
.g9a6-card-img img { width: 100%; height: 100%; object-fit: cover; }
.g9a6-card-tag {
  position: absolute; top: 6px; left: 6px;
  background: rgba(255,165,0,0.92);
  color: #0E1621;
  font-size: 1rem; font-weight: 700;
  padding: 2px 7px; border-radius: 6px;
}
.g9a6-card-body { padding: 8px; }
.g9a6-card-name {
  font-size: 1.25rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.g9a6-card-play {
  display: block;
  margin-top: 6px;
  text-align: center;
  background: var(--g9a6-bg-3);
  color: var(--g9a6-accent);
  font-size: 1.2rem;
  font-weight: 700;
  padding: 6px 0;
  border-radius: 8px;
}
.g9a6-card-play:hover { background: var(--g9a6-accent); color: #0E1621; text-decoration: none; }

/* ===== Feature / promo strip ===== */
.g9a6-feature {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.g9a6-feature-item {
  background: linear-gradient(135deg, var(--g9a6-bg-2), var(--g9a6-bg-3));
  border-radius: 12px;
  padding: 14px;
  border: 1px solid var(--g9a6-line);
}
.g9a6-feature-item i { color: var(--g9a6-accent); font-size: 2.2rem; }
.g9a6-feature-item h4 { margin: 8px 0 4px; font-size: 1.5rem; }
.g9a6-feature-item p { color: var(--g9a6-muted); font-size: 1.25rem; }

/* ===== Banner CTA ===== */
.g9a6-cta {
  background: linear-gradient(135deg, #ff8a00, #ffb84d);
  color: #0E1621;
  border-radius: var(--g9a6-radius);
  padding: 20px;
  text-align: center;
  margin: 18px 0;
}
.g9a6-cta h3 { font-size: 1.9rem; font-weight: 900; }
.g9a6-cta p { margin: 6px 0 12px; font-size: 1.35rem; }
.g9a6-cta .g9a6-btn { background: #0E1621; color: #FFA500; }

/* ===== SEO long text ===== */
.g9a6-prose { color: var(--g9a6-muted); font-size: 1.4rem; line-height: 1.7; }
.g9a6-prose h2 { color: var(--g9a6-text); font-size: 1.9rem; margin: 18px 0 8px; font-weight: 800; }
.g9a6-prose h3 { color: var(--g9a6-text); font-size: 1.6rem; margin: 14px 0 6px; }
.g9a6-prose p { margin-bottom: 10px; }
.g9a6-prose ul { padding-left: 20px; margin-bottom: 10px; }
.g9a6-prose li { margin-bottom: 4px; }
.g9a6-prose strong { color: var(--g9a6-accent); }

/* ===== FAQ ===== */
.g9a6-faq-item {
  background: var(--g9a6-bg-2);
  border: 1px solid var(--g9a6-line);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.g9a6-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 14px;
  color: var(--g9a6-text);
  font-size: 1.45rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px;
}
.g9a6-faq-q .g9a6-faq-icon { color: var(--g9a6-accent); transition: transform .2s ease; }
.g9a6-faq-item.g9a6-open .g9a6-faq-icon { transform: rotate(45deg); }
.g9a6-faq-panel {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
  padding: 0 14px;
  color: var(--g9a6-muted);
  font-size: 1.35rem;
}
.g9a6-faq-panel p { padding-bottom: 14px; }

/* ===== Footer ===== */
.g9a6-footer {
  background: #0a121f;
  border-top: 1px solid var(--g9a6-line);
  padding: 24px 14px 30px;
  margin-top: 20px;
}
.g9a6-footer-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.g9a6-footer h4 { font-size: 1.4rem; color: var(--g9a6-text); margin-bottom: 8px; }
.g9a6-footer ul { list-style: none; }
.g9a6-footer li { margin-bottom: 6px; }
.g9a6-footer a { color: var(--g9a6-muted); font-size: 1.3rem; }
.g9a6-footer a:hover { color: var(--g9a6-accent); }
.g9a6-footer-bottom {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--g9a6-line);
  text-align: center; color: var(--g9a6-muted); font-size: 1.2rem;
}

/* ===== Bottom nav ===== */
.g9a6-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 1000;
  height: 62px;
  background: rgba(10, 18, 31, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--g9a6-line);
  display: flex; justify-content: space-around; align-items: center;
  padding: 0 4px;
}
.g9a6-bottom-nav-btn {
  flex: 1;
  min-width: 60px; min-height: 60px;
  background: transparent; border: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  color: var(--g9a6-muted);
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  position: relative;
}
.g9a6-bottom-nav-btn i { font-size: 2rem; }
.g9a6-bottom-nav-btn.g9a6-active { color: var(--g9a6-accent); }
.g9a6-bottom-nav-btn.g9a6-active::before {
  content: ""; position: absolute; top: 0;
  width: 28px; height: 3px; border-radius: 2px;
  background: var(--g9a6-accent);
}
.g9a6-bottom-nav-btn.g9a6-cta-center {
  transform: translateY(-14px);
  background: linear-gradient(135deg, var(--g9a6-accent), var(--g9a6-accent-2));
  color: #0E1621;
  width: 54px; height: 54px; flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(255,138,0,0.45);
}
.g9a6-bottom-nav-btn.g9a6-cta-center i { font-size: 2.2rem; }

/* Back-to-top */
.g9a6-to-top {
  position: fixed; right: 14px; bottom: 76px;
  z-index: 999;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--g9a6-bg-3);
  color: var(--g9a6-accent);
  border: 1px solid var(--g9a6-line);
  display: grid; place-items: center;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, transform .2s ease;
}
.g9a6-to-top.g9a6-show { opacity: 1; visibility: visible; }
.g9a6-to-top:hover { transform: translateY(-3px); }

/* ===== Layout spacing for bottom nav clearance ===== */
main { padding-bottom: 80px; }

/* ===== Desktop: hide bottom nav, widen container ===== */
@media (min-width: 769px) {
  .g9a6-bottom-nav { display: none; }
  body { padding-bottom: 0; }
  main { padding-bottom: 20px; }
  .g9a6-container { max-width: 960px; }
  .g9a6-grid { grid-template-columns: repeat(6, 1fr); }
  .g9a6-footer-cols { grid-template-columns: repeat(4, 1fr); }
  .g9a6-hero-track { height: 320px; }
}
