/* ============================================================
 * GG Panalo APK - Layout stylesheet
 * All custom classes use the w7829- prefix
 * Palette: #FDF5E6 cream / #2F2F2F gray / #FFCCCB pink
 *          #DEB887 burlywood / #141414 near-black
 * ============================================================ */

:root {
  --w7829-bg: #141414;
  --w7829-bg-2: #2F2F2F;
  --w7829-text: #FDF5E6;
  --w7829-muted: #cbb68a;
  --w7829-accent: #DEB887;
  --w7829-pink: #FFCCCB;
  --w7829-gold: #e7c489;
  --w7829-card: #1f1c18;
  --w7829-border: #3a342b;
  --w7829-grad: linear-gradient(135deg, #2a2118 0%, #14110d 100%);
  --w7829-radius: 14px;
  --w7829-header-h: 56px;
  --w7829-nav-h: 62px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--w7829-bg);
  color: var(--w7829-text);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--w7829-accent); text-decoration: none; }
a:hover { color: var(--w7829-pink); }

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

main { padding-bottom: 90px; }

/* ---------------- Header ---------------- */
.w7829-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--w7829-header-h);
  z-index: 1000;
  background: rgba(20, 17, 13, 0.96);
  border-bottom: 1px solid var(--w7829-border);
  box-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.w7829-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}
.w7829-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--w7829-text);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: .3px;
}
.w7829-brand img { width: 30px; height: 30px; border-radius: 6px; }
.w7829-brand .w7829-brand-text {
  background: linear-gradient(90deg, #FDF5E6, #DEB887);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.w7829-head-actions { display: flex; align-items: center; gap: 8px; }
.w7829-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.w7829-btn-login {
  background: transparent;
  color: var(--w7829-text);
  border-color: var(--w7829-border);
}
.w7829-btn-register {
  background: linear-gradient(90deg, #DEB887, #b88a4f);
  color: #1a1208;
  box-shadow: 0 4px 14px rgba(222,184,135,.35);
}
.w7829-btn:hover { transform: translateY(-1px); }
.w7829-menu-btn {
  background: transparent;
  border: 1px solid var(--w7829-border);
  color: var(--w7829-text);
  width: 38px; height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Expandable menu */
.w7829-mobile-menu {
  position: fixed;
  top: var(--w7829-header-h);
  left: 0; right: 0;
  max-height: 0;
  overflow: hidden;
  background: #1a1610;
  border-bottom: 1px solid var(--w7829-border);
  z-index: 999;
  transition: max-height .28s ease;
}
.w7829-mobile-menu.w7829-menu-open { max-height: 460px; }
.w7829-mobile-menu ul {
  list-style: none;
  margin: 0; padding: 8px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.w7829-mobile-menu a {
  display: block;
  padding: 12px 8px;
  color: var(--w7829-text);
  font-size: 1.4rem;
  border-bottom: 1px dashed #3a342b;
}
.w7829-mobile-menu a i { color: var(--w7829-accent); margin-right: 8px; }

/* ---------------- Hero / Carousel ---------------- */
.w7829-hero {
  margin-top: calc(var(--w7829-header-h) + 12px);
  border-radius: var(--w7829-radius);
  overflow: hidden;
  background: var(--w7829-grad);
  border: 1px solid var(--w7829-border);
}
.w7829-slide {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 14px;
}
.w7829-slide:first-of-type { display: flex; }
.w7829-slide img {
  width: 130px; height: 130px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.w7829-slide .w7829-slide-body { flex: 1; min-width: 0; }
.w7829-slide h2 {
  margin: 0 0 6px;
  font-size: 1.7rem;
  color: var(--w7829-pink);
}
.w7829-slide p {
  margin: 0 0 10px;
  font-size: 1.3rem;
  color: #f3e7d2;
}
.w7829-slide .w7829-btn { min-height: 34px; padding: 0 12px; }

.w7829-dots {
  display: flex; justify-content: center; gap: 6px;
  padding: 6px 0 10px;
}
.w7829-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #5b5240;
  cursor: pointer;
}
.w7829-dot.w7829-dot-active { background: var(--w7829-accent); }

/* ---------------- Sections ---------------- */
.w7829-section { margin: 18px 0 0; }
.w7829-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.7rem;
  color: var(--w7829-text);
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--w7829-border);
}
.w7829-section-title i { color: var(--w7829-accent); }
.w7829-section-title .w7829-more {
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--w7829-pink);
}

/* Category filter */
.w7829-filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 10px;
  -webkit-overflow-scrolling: touch;
}
.w7829-filter-tab {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 1.25rem;
  background: #221d16;
  border: 1px solid var(--w7829-border);
  color: var(--w7829-text);
  cursor: pointer;
}
.w7829-filter-tab.w7829-filter-active {
  background: var(--w7829-accent);
  color: #14110d;
  font-weight: 700;
  border-color: transparent;
}

/* ---------------- Game grid ---------------- */
.w7829-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.w7829-card {
  background: var(--w7829-card);
  border: 1px solid var(--w7829-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, border-color .2s ease;
  position: relative;
}
.w7829-card:hover {
  transform: translateY(-2px);
  border-color: var(--w7829-accent);
}
.w7829-card img {
  width: 100%; height: 92px; object-fit: cover;
}
.w7829-card .w7829-card-name {
  font-size: 1.15rem;
  color: var(--w7829-text);
  text-align: center;
  padding: 5px 4px 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w7829-card .w7829-badge {
  position: absolute;
  top: 4px; left: 4px;
  font-size: 1rem;
  background: rgba(20,17,13,.85);
  color: var(--w7829-accent);
  padding: 1px 6px;
  border-radius: 6px;
}

/* ---------------- Promo strip / features ---------------- */
.w7829-promo-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.w7829-promo-card {
  flex: 0 0 auto;
  width: 70%;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2c2419, #1a1410);
  border: 1px solid var(--w7829-border);
}
.w7829-promo-card h3 {
  margin: 0 0 4px;
  font-size: 1.45rem;
  color: var(--w7829-pink);
}
.w7829-promo-card p {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: #e7d9bd;
}

.w7829-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.w7829-feature {
  background: var(--w7829-card);
  border: 1px solid var(--w7829-border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.w7829-feature i {
  font-size: 2.2rem;
  color: var(--w7829-accent);
}
.w7829-feature h4 {
  margin: 6px 0 4px;
  font-size: 1.35rem;
  color: var(--w7829-text);
}
.w7829-feature p {
  margin: 0;
  font-size: 1.2rem;
  color: #d8c7a3;
}

/* ---------------- SEO content ---------------- */
.w7829-content {
  background: var(--w7829-card);
  border: 1px solid var(--w7829-border);
  border-radius: 12px;
  padding: 14px;
  font-size: 1.35rem;
  color: #ece1c6;
}
.w7829-content h2, .w7829-content h3 {
  color: var(--w7829-pink);
  margin: 12px 0 6px;
}
.w7829-content h2 { font-size: 1.7rem; }
.w7829-content h3 { font-size: 1.45rem; }
.w7829-content p { margin: 0 0 10px; }
.w7829-content a { color: var(--w7829-accent); font-weight: 700; }
.w7829-faq details {
  border-top: 1px dashed #4a4133;
  padding: 8px 0;
}
.w7829-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--w7829-text);
  font-size: 1.35rem;
  list-style: none;
}
.w7829-faq summary::-webkit-details-marker { display: none; }
.w7829-faq summary::before {
  content: "▶";
  color: var(--w7829-accent);
  margin-right: 8px;
  font-size: 1rem;
}
.w7829-faq p { color: #d8c7a3; margin: 6px 0 0; }

/* Inline SEO link list */
.w7829-seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.w7829-seo-links a {
  font-size: 1.2rem;
  padding: 3px 8px;
  border: 1px solid var(--w7829-border);
  border-radius: 999px;
  color: var(--w7829-text);
  background: #221d16;
}

/* ---------------- Footer ---------------- */
.w7829-footer {
  margin-top: 22px;
  background: #110e0a;
  border-top: 1px solid var(--w7829-border);
  padding: 18px 14px 24px;
  color: #c9b890;
}
.w7829-footer .w7829-wrapper { padding: 0; }
.w7829-footer h4 {
  color: var(--w7829-text);
  font-size: 1.4rem;
  margin: 12px 0 6px;
}
.w7829-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.w7829-footer-links a {
  color: var(--w7829-text);
  font-size: 1.2rem;
  padding: 4px 8px;
  background: #1d1812;
  border: 1px solid var(--w7829-border);
  border-radius: 8px;
}
.w7829-footer-promos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 10px 0;
}
.w7829-footer-promos button {
  padding: 10px 8px;
  border-radius: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(90deg, #DEB887, #b88a4f);
  color: #14110d;
  border: none;
  cursor: pointer;
}
.w7829-footer-promos button.w7829-btn-alt {
  background: #221d16;
  color: var(--w7829-text);
  border: 1px solid var(--w7829-border);
}
.w7829-copyright {
  font-size: 1.15rem;
  text-align: center;
  margin-top: 12px;
  color: #8e8163;
}

/* ---------------- Mobile bottom nav ---------------- */
.w7829-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--w7829-nav-h);
  background: rgba(17, 14, 10, 0.98);
  border-top: 1px solid var(--w7829-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -3px 14px rgba(0,0,0,.5);
}
.w7829-bottomnav a {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #cdbb91;
  font-size: 1.05rem;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  border-top: 3px solid transparent;
  transition: color .15s ease, border-color .2s ease;
}
.w7829-bottomnav a i { font-size: 2.2rem; }
.w7829-bottomnav a.active {
  color: var(--w7829-pink);
  border-top-color: var(--w7829-accent);
}
.w7829-bottomnav a:active { transform: scale(.95); }

/* ---------------- Desktop rules ---------------- */
@media (min-width: 769px) {
  .w7829-bottomnav { display: none; }
  main { padding-bottom: 40px; }
  .w7829-wrapper { max-width: 760px; }
}

@media (min-width: 600px) and (max-width: 768px) {
  .w7829-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Utility */
.w7829-hidden { display: none !important; }
.w7829-text-pink { color: var(--w7829-pink); }
.w7829-text-gold { color: var(--w7829-accent); font-weight: 700; }
.w7829-center { text-align: center; }
