/* ============================================================
   Gamezone APK - Theme stylesheet
   Prefix: w9778-  (all custom classes & vars)
   Palette: #0C0C0C bg | #FFB347 gold | #8B0000 deep red
            #F8F8FF text | #FF0000 accent
   Mobile-first, max-width 430px container.
   ============================================================ */

:root {
  --w9778-bg: #0C0C0C;
  --w9778-bg-2: #141414;
  --w9778-bg-3: #1f1f1f;
  --w9778-primary: #FFB347;
  --w9778-primary-dark: #c98a2c;
  --w9778-deep: #8B0000;
  --w9778-accent: #FF0000;
  --w9778-text: #F8F8FF;
  --w9778-muted: #b9b9c9;
  --w9778-line: #2a2a2a;
  --w9778-radius: 14px;
  --w9778-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  --w9778-gold-grad: linear-gradient(135deg, #FFB347 0%, #ff8a3d 100%);
  --w9778-red-grad: linear-gradient(135deg, #8B0000 0%, #FF0000 100%);
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--w9778-bg);
  color: var(--w9778-text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 62.5%; /* root rem base: 1rem = 10px */
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--w9778-primary); text-decoration: none; }
a:hover { color: #fff; }

/* ---------- Layout containers ---------- */
.w9778-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  background: var(--w9778-bg);
}
.w9778-container {
  width: 100%;
  padding: 0 1.4rem;
}

/* ---------- Header ---------- */
.w9778-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(12,12,12,0.98), rgba(12,12,12,0.92));
  border-bottom: 1px solid var(--w9778-line);
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.w9778-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.6rem;
  padding: 0 1.2rem;
}
.w9778-brand {
  display: flex; align-items: center; gap: 0.8rem;
  color: var(--w9778-text);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
}
.w9778-brand img {
  width: 2.8rem; height: 2.8rem; border-radius: 8px;
  border: 1px solid var(--w9778-primary);
}
.w9778-brand-name b { color: var(--w9778-primary); }

.w9778-header-actions {
  display: flex; align-items: center; gap: 0.6rem;
}
.w9778-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 1.3rem; font-weight: 700;
  padding: 0.7rem 1.2rem; border-radius: 10px;
  border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  min-height: 3.6rem;
  color: #1a0a00;
  background: var(--w9778-gold-grad);
  box-shadow: 0 3px 10px rgba(255,179,71,0.35);
}
.w9778-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.w9778-btn-login {
  background: transparent;
  color: var(--w9778-text);
  border: 1px solid var(--w9778-primary);
  box-shadow: none;
}
.w9778-btn-login:hover { background: rgba(255,179,71,0.12); }
.w9778-menu-btn {
  width: 3.6rem; height: 3.6rem;
  background: transparent; border: 1px solid var(--w9778-line);
  border-radius: 10px; color: var(--w9778-text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.w9778-menu-btn:hover { border-color: var(--w9778-primary); }

/* ---------- Nav menu ---------- */
.w9778-nav {
  position: fixed;
  top: 5.6rem; left: 0; right: 0;
  max-width: 430px; margin: 0 auto;
  background: var(--w9778-bg-2);
  border-bottom: 1px solid var(--w9778-line);
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
  z-index: 999;
}
.w9778-nav-open { max-height: 460px; box-shadow: var(--w9778-shadow); }
.w9778-nav-list {
  list-style: none; margin: 0; padding: 0.6rem 0;
  display: flex; flex-direction: column;
}
.w9778-nav-list li a {
  display: block; padding: 1.1rem 1.6rem;
  color: var(--w9778-text); font-size: 1.35rem;
  border-left: 3px solid transparent;
}
.w9778-nav-list li a:hover {
  background: var(--w9778-bg-3);
  border-left-color: var(--w9778-primary);
  color: var(--w9778-primary);
}

/* ---------- Hero / Carousel ---------- */
.w9778-main { padding-top: 5.6rem; }
.w9778-hero {
  position: relative;
  margin: 1rem 0 0;
}
.w9778-slides { position: relative; overflow: hidden; border-radius: 0; }
.w9778-slide {
  display: none; position: relative;
}
.w9778-slide-active { display: block; }
.w9778-slide img {
  width: 100%; height: 200px; object-fit: cover;
}
.w9778-slide-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.4rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
}
.w9778-slide-overlay h2 {
  margin: 0 0 0.3rem; font-size: 1.7rem; color: #fff;
}
.w9778-slide-overlay p {
  margin: 0; font-size: 1.2rem; color: var(--w9778-muted);
}
.w9778-dots {
  display: flex; justify-content: center; gap: 0.5rem;
  padding: 0.6rem 0; background: var(--w9778-bg);
}
.w9778-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #555; border: none; cursor: pointer; padding: 0;
}
.w9778-dot-active { background: var(--w9778-primary); width: 22px; border-radius: 6px; }

/* ---------- Section + Headings ---------- */
.w9778-section {
  padding: 2rem 0 0.5rem;
}
.w9778-section-head {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1rem;
}
.w9778-section-head .w9778-bar {
  width: 4px; height: 1.8rem; background: var(--w9778-gold-grad); border-radius: 4px;
}
.w9778-section-title {
  font-size: 1.7rem; font-weight: 800; margin: 0; color: var(--w9778-text);
}
.w9778-section-title em { color: var(--w9778-primary); font-style: normal; }
.w9778-subtitle {
  font-size: 1.3rem; color: var(--w9778-muted); margin: 0.4rem 0 1rem;
}

/* ---------- H1 hero band ---------- */
.w9778-h1 {
  font-size: 2rem; line-height: 2.6rem;
  margin: 0.6rem 0 0.8rem; font-weight: 900;
  background: var(--w9778-red-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Game grid ---------- */
.w9778-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.w9778-card {
  background: var(--w9778-bg-2);
  border: 1px solid var(--w9778-line);
  border-radius: var(--w9778-radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .15s ease, border-color .15s ease;
}
.w9778-card:hover { transform: translateY(-2px); border-color: var(--w9778-primary); }
.w9778-card-img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  background: #000;
}
.w9778-card-name {
  font-size: 1.1rem; color: var(--w9778-text);
  text-align: center; padding: 0.5rem 0.3rem; line-height: 1.3rem;
  font-weight: 600;
}
.w9778-card-tag {
  position: absolute;
}

/* ---------- Category strip ---------- */
.w9778-cat-strip {
  display: flex; gap: 0.5rem; overflow-x: auto;
  padding: 0.6rem 0; margin-bottom: 0.4rem;
  scrollbar-width: none;
}
.w9778-cat-strip::-webkit-scrollbar { display: none; }
.w9778-cat-pill {
  flex: 0 0 auto;
  padding: 0.5rem 1rem; font-size: 1.2rem;
  border-radius: 999px;
  background: var(--w9778-bg-2);
  color: var(--w9778-text);
  border: 1px solid var(--w9778-line);
  white-space: nowrap;
}
.w9778-cat-pill.is-active {
  background: var(--w9778-gold-grad);
  color: #1a0a00; border-color: transparent; font-weight: 700;
}

/* ---------- Feature list ---------- */
.w9778-feature-grid {
  display: grid; grid-template-columns: 1fr; gap: 0.8rem;
}
.w9778-feature {
  display: flex; gap: 0.9rem; align-items: flex-start;
  background: var(--w9778-bg-2);
  padding: 1rem; border-radius: 12px;
  border-left: 3px solid var(--w9778-primary);
}
.w9778-feature .material-icons,
.w9778-feature .fas { color: var(--w9778-primary); font-size: 2rem; }
.w9778-feature h3 { margin: 0 0 0.2rem; font-size: 1.35rem; }
.w9778-feature p { margin: 0; font-size: 1.2rem; color: var(--w9778-muted); }

/* ---------- Promo CTA band ---------- */
.w9778-cta {
  margin: 1.4rem 0;
  padding: 1.4rem;
  border-radius: var(--w9778-radius);
  background: var(--w9778-red-grad);
  text-align: center;
  box-shadow: var(--w9778-shadow);
}
.w9778-cta h3 { margin: 0 0 0.4rem; font-size: 1.6rem; color: #fff; }
.w9778-cta p { margin: 0 0 1rem; font-size: 1.25rem; color: #ffe6cf; }
.w9778-cta .w9778-btn { background: #fff; color: #8B0000; }

/* ---------- Testimonials ---------- */
.w9778-testi {
  background: var(--w9778-bg-2);
  border-radius: 12px; padding: 1rem; margin-bottom: 0.8rem;
  border: 1px solid var(--w9778-line);
}
.w9778-testi-stars { color: var(--w9778-primary); font-size: 1.2rem; letter-spacing: 2px; }
.w9778-testi p { font-size: 1.25rem; margin: 0.4rem 0; }
.w9778-testi small { color: var(--w9778-muted); }

/* ---------- Winners list ---------- */
.w9778-winner-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--w9778-line);
  font-size: 1.2rem;
}
.w9778-winner-row:last-child { border-bottom: none; }
.w9778-winner-name { color: var(--w9778-text); font-weight: 600; }
.w9778-winner-amt { color: var(--w9778-primary); font-weight: 800; }

/* ---------- RTP table ---------- */
.w9778-rtp-table {
  width: 100%; border-collapse: collapse;
  background: var(--w9778-bg-2); border-radius: 12px; overflow: hidden;
}
.w9778-rtp-table th, .w9778-rtp-table td {
  padding: 0.7rem 0.9rem; font-size: 1.2rem; text-align: left;
  border-bottom: 1px solid var(--w9778-line);
}
.w9778-rtp-table th { background: var(--w9778-bg-3); color: var(--w9778-primary); }
.w9778-rtp-table td b { color: var(--w9778-primary); }

/* ---------- Payment icons ---------- */
.w9778-pay-row {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.w9778-pay {
  background: var(--w9778-bg-2); border: 1px solid var(--w9778-line);
  border-radius: 10px; padding: 0.6rem 0.9rem;
  font-size: 1.15rem; color: var(--w9778-text);
  display: inline-flex; align-items: center; gap: 0.4rem;
}

/* ---------- FAQ ---------- */
.w9778-faq-item {
  background: var(--w9778-bg-2); border: 1px solid var(--w9778-line);
  border-radius: 10px; padding: 0.9rem 1rem; margin-bottom: 0.7rem;
}
.w9778-faq-item h3 { margin: 0 0 0.3rem; font-size: 1.3rem; color: var(--w9778-primary); }
.w9778-faq-item p { margin: 0; font-size: 1.2rem; color: var(--w9778-muted); }

/* ---------- SEO content text ---------- */
.w9778-prose { font-size: 1.3rem; line-height: 1.7rem; color: var(--w9778-text); }
.w9778-prose p { margin: 0 0 0.9rem; }
.w9778-prose a { font-weight: 700; border-bottom: 1px dashed var(--w9778-primary); }

/* ---------- App download band ---------- */
.w9778-app-card {
  background: var(--w9778-bg-2);
  border: 1px solid var(--w9778-primary);
  border-radius: var(--w9778-radius);
  padding: 1.2rem; text-align: center; margin: 1rem 0;
}
.w9778-app-card h3 { margin: 0 0 0.4rem; font-size: 1.5rem; }
.w9778-app-card p { margin: 0 0 1rem; font-size: 1.2rem; color: var(--w9778-muted); }

/* ---------- Footer ---------- */
.w9778-footer {
  background: var(--w9778-bg-2);
  border-top: 1px solid var(--w9778-line);
  padding: 1.6rem 0 2rem;
  margin-top: 1.4rem;
}
.w9778-footer p { font-size: 1.2rem; color: var(--w9778-muted); margin: 0 0 1rem; }
.w9778-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}
.w9778-footer-links a {
  font-size: 1.15rem; color: var(--w9778-text);
}
.w9778-footer-links a:hover { color: var(--w9778-primary); }
.w9778-footer-promos {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0 1.2rem;
}
.w9778-footer-copy { font-size: 1.1rem; color: #777; }

/* ---------- Mobile bottom nav ---------- */
.w9778-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #141414, #0a0a0a);
  border-top: 1px solid var(--w9778-primary);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 60px;
  padding: 0;
}
.w9778-bottom-nav a {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  color: var(--w9778-muted);
  font-size: 1rem;
  text-decoration: none;
  transition: color .15s ease, transform .15s ease;
  min-width: 60px; min-height: 60px;
}
.w9778-bottom-nav a:hover,
.w9778-bottom-nav a.is-active {
  color: var(--w9778-primary);
  transform: translateY(-2px);
}
.w9778-bottom-nav a .material-icons,
.w9778-bottom-nav a .fas,
.w9778-bottom-nav a .far,
.w9778-bottom-nav a .bi,
.w9778-bottom-nav a ion-icon { font-size: 22px; }
.w9778-bottom-nav a.is-active::before {
  content: ""; position: absolute; top: 0;
  width: 28px; height: 3px; border-radius: 0 0 4px 4px;
  background: var(--w9778-gold-grad);
}
.w9778-bottom-nav a { position: relative; }

/* ---------- Responsive ---------- */
@media (min-width: 769px) {
  .w9778-bottom-nav { display: none; }
}
@media (max-width: 768px) {
  .w9778-main { padding-bottom: 80px; }
  main { padding-bottom: 80px; }
}

/* Desktop header layout - keep menu inline on wide screens */
@media (min-width: 431px) {
  .w9778-header-inner,
  .w9778-nav { max-width: 430px; }
}

/* Utility */
.w9778-hidden { display: none !important; }
.w9778-text-center { text-align: center; }
.w9778-mt-1 { margin-top: 0.6rem; }
.w9778-mt-2 { margin-top: 1.2rem; }
.w9778-pill {
  display: inline-block; padding: 0.3rem 0.7rem;
  border-radius: 999px; background: var(--w9778-deep);
  color: #fff; font-size: 1rem; font-weight: 700;
}
