/* =====================================================================
 * vipph apk (vipphapk.click) - core styles
 * Prefix: g7a0-
 * Palette: #9966CC | #3A3A3A | #8470FF | #9932CC
 * Mobile-first HTML5 gaming portal
 * ===================================================================== */

:root {
  --g7a0-purple: #9966CC;
  --g7a0-dark: #3A3A3A;
  --g7a0-violet: #8470FF;
  --g7a0-orchid: #9932CC;
  --g7a0-bg: #1c1726;
  --g7a0-bg-2: #261f3a;
  --g7a0-card: #2a2342;
  --g7a0-card-2: #322a4f;
  --g7a0-line: rgba(153, 102, 204, 0.22);
  --g7a0-text: #f3eefb;
  --g7a0-muted: #b8a9d6;
  --g7a0-gold: #f5c451;
  --g7a0-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --g7a0-radius: 14px;
  --g7a0-max: 430px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  font-size: 1.5rem;
  line-height: 1.55;
  color: var(--g7a0-text);
  background: radial-gradient(circle at 20% 0%, #2a2050 0%, var(--g7a0-bg) 55%);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--g7a0-violet); text-decoration: none; }
a:hover { color: var(--g7a0-purple); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; margin: 0 0 1rem; color: #fff; }
h1 { font-size: 2.4rem; }
h2 { font-size: 2.0rem; }
h3 { font-size: 1.7rem; }
p { margin: 0 0 1.2rem; color: var(--g7a0-muted); }

.g7a0-container { width: 100%; max-width: var(--g7a0-max); margin: 0 auto; padding: 0 1.2rem; }
.g7a0-wrap { width: 100%; max-width: var(--g7a0-max); margin: 0 auto; }

/* ============== Header ============== */
.g7a0-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, rgba(58,58,58,0.95), rgba(153,50,204,0.92));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--g7a0-line);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.g7a0-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  gap: 0.6rem;
}
.g7a0-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.3px;
}
.g7a0-logo img { width: 32px; height: 32px; border-radius: 8px; }
.g7a0-logo span { background: linear-gradient(90deg, #fff, #d9c4ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.g7a0-header-actions { display: flex; align-items: center; gap: 0.5rem; }

.g7a0-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.3rem;
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
  color: #fff;
  min-height: 38px;
}
.g7a0-btn:hover { transform: translateY(-1px); color: #fff; }
.g7a0-btn-login {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.6);
  color: #fff;
}
.g7a0-btn-register {
  background: linear-gradient(135deg, var(--g7a0-gold), #ff9d3a);
  color: #2a1c00;
  box-shadow: 0 6px 16px rgba(245,196,81,0.35);
}
.g7a0-menu-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.0rem;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  line-height: 1;
}

/* ============== Mobile menu ============== */
.g7a0-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 82%;
  max-width: 320px;
  height: 100vh;
  background: linear-gradient(160deg, #2a2143, #1c1726);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  padding: 1.5rem 1.2rem;
  overflow-y: auto;
  border-left: 1px solid var(--g7a0-line);
  box-shadow: -10px 0 40px rgba(0,0,0,0.5);
}
.g7a0-mobile-menu.g7a0-menu-open { transform: translateX(0); }
.g7a0-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.g7a0-mobile-menu.g7a0-menu-open + .g7a0-menu-backdrop { opacity: 1; pointer-events: auto; }

.g7a0-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--g7a0-line);
}
.g7a0-menu-head h3 { margin: 0; color: #fff; font-size: 1.6rem; }
.g7a0-menu-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}
.g7a0-menu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0.8rem;
  color: var(--g7a0-text);
  border-radius: 10px;
  font-size: 1.4rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(153,102,204,0.1);
}
.g7a0-menu-link:hover { background: rgba(153,102,204,0.15); color: #fff; }
.g7a0-menu-link i { width: 22px; text-align: center; color: var(--g7a0-purple); }

.g7a0-menu-cta { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.8rem; }

/* ============== Hero / carousel ============== */
.g7a0-hero {
  position: relative;
  margin: 1rem 0;
  border-radius: var(--g7a0-radius);
  overflow: hidden;
  box-shadow: var(--g7a0-shadow);
}
.g7a0-hero-track { position: relative; height: 220px; }
.g7a0-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  background-size: cover;
  background-position: center;
}
.g7a0-hero-slide.g7a0-slide-active { opacity: 1; }
.g7a0-hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,23,38,0.05) 30%, rgba(28,23,38,0.92) 100%);
}
.g7a0-hero-content { position: relative; z-index: 2; color: #fff; }
.g7a0-hero-title { font-size: 2.0rem; font-weight: 800; margin: 0 0 0.3rem; color: #fff; }
.g7a0-hero-sub { font-size: 1.25rem; margin: 0 0 0.8rem; color: #e8ddff; }
.g7a0-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--g7a0-gold), #ff9d3a);
  color: #2a1c00;
  font-weight: 800;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-size: 1.3rem;
}

.g7a0-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(0,0,0,0.35);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.g7a0-hero-arrow.g7a0-prev { left: 8px; }
.g7a0-hero-arrow.g7a0-next { right: 8px; }

.g7a0-hero-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 3;
}
.g7a0-hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
}
.g7a0-hero-dot.g7a0-dot-active { background: var(--g7a0-gold); width: 18px; border-radius: 4px; }

/* ============== Stats strip ============== */
.g7a0-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin: 1rem 0;
}
.g7a0-stat {
  background: var(--g7a0-card);
  border: 1px solid var(--g7a0-line);
  border-radius: 12px;
  padding: 0.8rem;
  text-align: center;
}
.g7a0-stat-num { display: block; font-size: 1.7rem; font-weight: 800; color: var(--g7a0-gold); }
.g7a0-stat-lbl { display: block; font-size: 1.05rem; color: var(--g7a0-muted); margin-top: 0.2rem; }

/* ============== Section heading ============== */
.g7a0-section { margin: 1.6rem 0; }
.g7a0-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 0.5rem;
}
.g7a0-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}
.g7a0-section-title i { color: var(--g7a0-gold); }
.g7a0-more { font-size: 1.2rem; color: var(--g7a0-violet); font-weight: 600; }

/* ============== Category tabs ============== */
.g7a0-cat-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0 0.8rem;
  scrollbar-width: none;
  margin: 0 -1.2rem;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}
.g7a0-cat-tabs::-webkit-scrollbar { display: none; }
.g7a0-cat-tab {
  flex: 0 0 auto;
  background: var(--g7a0-card);
  color: var(--g7a0-muted);
  border: 1px solid var(--g7a0-line);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.g7a0-cat-tab.g7a0-tab-active {
  background: linear-gradient(135deg, var(--g7a0-violet), var(--g7a0-orchid));
  color: #fff;
  border-color: transparent;
}

/* ============== Game grid ============== */
.g7a0-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.g7a0-game-card {
  background: var(--g7a0-card);
  border: 1px solid var(--g7a0-line);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.g7a0-game-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(132,112,255,0.25); }
.g7a0-game-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #211b35;
  overflow: hidden;
}
.g7a0-game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g7a0-game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28,23,38,0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.g7a0-game-card:hover .g7a0-game-overlay { opacity: 1; }
.g7a0-game-play {
  background: linear-gradient(135deg, var(--g7a0-gold), #ff9d3a);
  color: #2a1c00;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.g7a0-game-name {
  padding: 0.45rem 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--g7a0-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g7a0-game-tag {
  position: absolute;
  top: 5px;
  left: 5px;
  background: linear-gradient(135deg, var(--g7a0-orchid), var(--g7a0-violet));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  z-index: 2;
}

/* ============== Feature blocks ============== */
.g7a0-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}
.g7a0-feature {
  background: var(--g7a0-card);
  border: 1px solid var(--g7a0-line);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}
.g7a0-feature-ico {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--g7a0-violet), var(--g7a0-orchid));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
}
.g7a0-feature h3 { margin: 0 0 0.3rem; font-size: 1.3rem; }
.g7a0-feature p { margin: 0; font-size: 1.2rem; line-height: 1.45; }

/* ============== Promo banner ============== */
.g7a0-promo-banner {
  background: linear-gradient(135deg, var(--g7a0-orchid), var(--g7a0-violet));
  border-radius: var(--g7a0-radius);
  padding: 1.2rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.2rem 0;
  box-shadow: var(--g7a0-shadow);
}
.g7a0-promo-banner h3 { margin: 0 0 0.2rem; color: #fff; font-size: 1.5rem; }
.g7a0-promo-banner p { margin: 0; color: rgba(255,255,255,0.85); font-size: 1.15rem; }
.g7a0-promo-btn {
  background: var(--g7a0-gold);
  color: #2a1c00;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.2rem;
  white-space: nowrap;
}

/* ============== SEO long text ============== */
.g7a0-content {
  background: var(--g7a0-card);
  border: 1px solid var(--g7a0-line);
  border-radius: var(--g7a0-radius);
  padding: 1.2rem;
  margin: 1.2rem 0;
}
.g7a0-content h2 { color: #fff; font-size: 1.7rem; margin-bottom: 0.8rem; }
.g7a0-content h3 { color: var(--g7a0-purple); font-size: 1.35rem; margin: 1rem 0 0.4rem; }
.g7a0-content p { color: var(--g7a0-muted); font-size: 1.3rem; line-height: 1.65; }
.g7a0-content ul { padding-left: 1.6rem; color: var(--g7a0-muted); }
.g7a0-content li { margin-bottom: 0.4rem; font-size: 1.3rem; line-height: 1.55; }
.g7a0-content a { color: var(--g7a0-violet); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ============== FAQ ============== */
.g7a0-faq-item {
  background: var(--g7a0-card);
  border: 1px solid var(--g7a0-line);
  border-radius: 10px;
  margin-bottom: 0.6rem;
  overflow: hidden;
}
.g7a0-faq-q {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  text-align: left;
  padding: 1rem 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}
.g7a0-faq-q i { color: var(--g7a0-gold); transition: transform 0.2s ease; }
.g7a0-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.1rem;
  color: var(--g7a0-muted);
  font-size: 1.25rem;
  line-height: 1.6;
}
.g7a0-faq-item.g7a0-faq-open .g7a0-faq-a { max-height: 400px; padding-bottom: 1rem; }
.g7a0-faq-item.g7a0-faq-open .g7a0-faq-q i { transform: rotate(45deg); }

/* ============== Footer ============== */
.g7a0-footer {
  background: #15111f;
  border-top: 1px solid var(--g7a0-line);
  padding: 1.6rem 1rem 8rem;
  margin-top: 1.6rem;
}
.g7a0-footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.g7a0-footer h4 { color: #fff; font-size: 1.3rem; margin-bottom: 0.6rem; }
.g7a0-footer ul { list-style: none; padding: 0; margin: 0; }
.g7a0-footer li { margin-bottom: 0.4rem; }
.g7a0-footer a { color: var(--g7a0-muted); font-size: 1.2rem; }
.g7a0-footer a:hover { color: var(--g7a0-violet); }
.g7a0-footer-bottom {
  text-align: center;
  border-top: 1px solid var(--g7a0-line);
  padding-top: 1rem;
  font-size: 1.1rem;
  color: var(--g7a0-muted);
}

/* ============== Bottom nav ============== */
.g7a0-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: linear-gradient(180deg, rgba(42,35,66,0.98), rgba(28,23,38,0.99));
  border-top: 1px solid var(--g7a0-line);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.g7a0-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--g7a0-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1.0rem;
  font-weight: 600;
  padding: 0;
  transition: color 0.15s ease, transform 0.15s ease;
}
.g7a0-nav-btn i { font-size: 2.0rem; }
.g7a0-nav-btn .material-icons-outlined,
.g7a0-nav-btn .material-icons { font-size: 2.2rem; }
.g7a0-nav-btn:hover { color: var(--g7a0-violet); transform: translateY(-1px); }
.g7a0-nav-btn.g7a0-nav-active { color: var(--g7a0-gold); }
.g7a0-nav-btn.g7a0-nav-promo {
  background: linear-gradient(135deg, var(--g7a0-orchid), var(--g7a0-violet));
  color: #fff;
  margin: -10px 4px 0;
  border-radius: 16px;
  height: 56px;
  box-shadow: 0 6px 14px rgba(132,112,255,0.4);
}

/* ============== Helpers ============== */
.g7a0-hide-mobile { display: none; }
.g7a0-mt { margin-top: 1.2rem; }
.g7a0-text-center { text-align: center; }

/* ============== Desktop ============== */
@media (min-width: 769px) {
  body { background: radial-gradient(circle at 30% 0%, #2a2050 0%, #15111f 60%); }
  .g7a0-wrap, .g7a0-container, .g7a0-max { max-width: 960px; }
  .g7a0-hide-mobile { display: block; }
  .g7a0-game-grid { grid-template-columns: repeat(6, 1fr); }
  .g7a0-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .g7a0-stats { grid-template-columns: repeat(3, 1fr); }
  .g7a0-bottom-nav { display: none; }
  .g7a0-footer { padding-bottom: 2rem; }
  .g7a0-hero-track { height: 320px; }
  .g7a0-menu-btn { display: none; }
  .g7a0-header-actions .g7a0-btn { font-size: 1.4rem; padding: 0.8rem 1.6rem; }
}

/* ============== Mobile bottom padding ============== */
@media (max-width: 768px) {
  main { padding-bottom: 84px; }
}
