/* ============================================================
 * nh889.click - Core site styles
 * Class prefix: g3e3-
 * Color palette: #0A0A0A | #D2B48C | #BC8F8F | #DEB887 | #3C3C3C
 * Mobile-first, max-width 430px.
 * ============================================================ */

:root {
  --g3e3-bg: #0A0A0A;
  --g3e3-bg-soft: #141414;
  --g3e3-panel: #1c1c1c;
  --g3e3-primary: #D2B48C;
  --g3e3-secondary: #BC8F8F;
  --g3e3-accent: #DEB887;
  --g3e3-line: #3C3C3C;
  --g3e3-text: #F5EFE6;
  --g3e3-muted: #B8A98C;
  --g3e3-gold-grad: linear-gradient(135deg, #DEB887 0%, #D2B48C 45%, #BC8F8F 100%);
  --g3e3-shadow: 0 6px 22px rgba(0, 0, 0, 0.55);
  --g3e3-radius: 14px;
}

* { box-sizing: border-box; }

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

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

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

a { color: var(--g3e3-accent); text-decoration: none; }
a:hover { color: var(--g3e3-primary); }

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

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

/* ---------------- Header ---------------- */
.g3e3-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(10,10,10,0.98), rgba(10,10,10,0.92));
  border-bottom: 1px solid var(--g3e3-line);
  backdrop-filter: blur(8px);
}
.g3e3-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  min-height: 56px;
}
.g3e3-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--g3e3-text);
}
.g3e3-brand img { width: 28px; height: 28px; border-radius: 6px; }
.g3e3-brand-name {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  background: var(--g3e3-gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.g3e3-header-actions { display: flex; align-items: center; gap: 8px; }

.g3e3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s;
  min-height: 36px;
}
.g3e3-btn:active { transform: scale(0.94); }
.g3e3-btn-primary { background: var(--g3e3-gold-grad); color: #1a1208; box-shadow: var(--g3e3-shadow); }
.g3e3-btn-ghost {
  background: transparent;
  color: var(--g3e3-text);
  border: 1px solid var(--g3e3-primary);
}
.g3e3-btn-block { width: 100%; padding: 12px 16px; font-size: 1.5rem; }

.g3e3-menu-toggle {
  background: transparent;
  border: none;
  color: var(--g3e3-text);
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------------- Mobile Menu Drawer ---------------- */
.g3e3-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  z-index: 9998;
  transition: opacity 0.25s ease;
}
.g3e3-backdrop-show { opacity: 1; pointer-events: auto; }

.g3e3-mobile-menu {
  position: fixed;
  top: 0; right: -85%;
  width: 85%;
  max-width: 320px;
  height: 100%;
  background: var(--g3e3-bg-soft);
  border-left: 1px solid var(--g3e3-line);
  z-index: 9999;
  padding: 18px 16px;
  overflow-y: auto;
  transform: translateX(0);
  transition: right 0.3s ease;
}
.g3e3-menu-open { right: 0; }
.g3e3-mobile-menu h3 {
  font-size: 1.6rem;
  margin: 14px 0 8px;
  color: var(--g3e3-primary);
  letter-spacing: 0.3px;
}
.g3e3-mobile-menu a {
  display: block;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(60,60,60,0.5);
  color: var(--g3e3-text);
  font-size: 1.4rem;
}

/* ---------------- Main content spacing ---------------- */
.g3e3-main { padding-top: 64px; padding-bottom: 90px; }

.g3e3-section { padding: 18px 0; }
.g3e3-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--g3e3-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.g3e3-section-title::before {
  content: "";
  width: 4px; height: 18px;
  background: var(--g3e3-gold-grad);
  border-radius: 3px;
}
.g3e3-section-sub {
  color: var(--g3e3-muted);
  font-size: 1.3rem;
  margin: 0 0 14px;
}

/* ---------------- Carousel ---------------- */
.g3e3-carousel {
  position: relative;
  border-radius: var(--g3e3-radius);
  overflow: hidden;
  box-shadow: var(--g3e3-shadow);
  margin-bottom: 6px;
}
.g3e3-carousel-viewport { overflow: hidden; }
.g3e3-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.g3e3-carousel-slide {
  flex: 0 0 100%;
  position: relative;
}
.g3e3-carousel-slide img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.g3e3-carousel-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
  color: var(--g3e3-text);
  font-size: 1.4rem;
  font-weight: 700;
}
.g3e3-carousel-cap .g3e3-cap-cta {
  display: inline-block;
  margin-top: 6px;
  color: var(--g3e3-accent);
  font-size: 1.3rem;
  text-decoration: underline;
}
.g3e3-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.g3e3-carousel-prev { left: 8px; }
.g3e3-carousel-next { right: 8px; }
.g3e3-carousel-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.g3e3-carousel-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none; cursor: pointer; padding: 0;
}
.g3e3-dot-active { background: var(--g3e3-primary); width: 18px; border-radius: 4px; }

/* ---------------- Filter chips ---------------- */
.g3e3-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 10px;
  scrollbar-width: none;
}
.g3e3-filter-row::-webkit-scrollbar { display: none; }
.g3e3-filter-chip {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--g3e3-line);
  background: var(--g3e3-panel);
  color: var(--g3e3-muted);
  font-size: 1.25rem;
  cursor: pointer;
  white-space: nowrap;
}
.g3e3-chip-active {
  background: var(--g3e3-gold-grad);
  color: #1a1208;
  border-color: transparent;
  font-weight: 700;
}

/* ---------------- Game grid ---------------- */
.g3e3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.g3e3-card {
  background: var(--g3e3-panel);
  border: 1px solid rgba(60,60,60,0.6);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.g3e3-card:active { transform: scale(0.96); box-shadow: var(--g3e3-shadow); }
.g3e3-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0a0a0a;
}
.g3e3-card-name {
  padding: 6px 8px;
  font-size: 1.15rem;
  color: var(--g3e3-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g3e3-card-tag {
  position: absolute;
  top: 6px; left: 6px;
  background: rgba(210,180,140,0.92);
  color: #1a1208;
  font-size: 1rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.g3e3-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0 10px;
}
.g3e3-block-head h2 {
  font-size: 1.7rem;
  margin: 0;
  color: var(--g3e3-text);
}
.g3e3-block-head a { font-size: 1.2rem; color: var(--g3e3-accent); }

/* ---------------- Info / promo boxes ---------------- */
.g3e3-panel {
  background: var(--g3e3-panel);
  border: 1px solid rgba(60,60,60,0.6);
  border-radius: var(--g3e3-radius);
  padding: 14px;
  margin-bottom: 12px;
}
.g3e3-panel h2, .g3e3-panel h3 { color: var(--g3e3-primary); margin-top: 0; }
.g3e3-panel p { font-size: 1.35rem; line-height: 1.65; color: var(--g3e3-text); }
.g3e3-lead {
  font-size: 1.45rem;
  line-height: 1.7;
  color: var(--g3e3-muted);
  margin: 8px 0 14px;
}
.g3e3-text-link {
  color: var(--g3e3-accent);
  font-weight: 700;
  border-bottom: 1px dashed var(--g3e3-secondary);
}
.g3e3-feature-list { list-style: none; padding: 0; margin: 0; }
.g3e3-feature-list li {
  padding: 8px 0 8px 26px;
  position: relative;
  font-size: 1.35rem;
  border-bottom: 1px solid rgba(60,60,60,0.4);
}
.g3e3-feature-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0; top: 8px;
  color: var(--g3e3-primary);
  font-size: 1.2rem;
}

.g3e3-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0;
}
.g3e3-stat {
  background: var(--g3e3-bg-soft);
  border: 1px solid var(--g3e3-line);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
}
.g3e3-stat-num {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--g3e3-accent);
}
.g3e3-stat-label { font-size: 1.1rem; color: var(--g3e3-muted); }

/* ---------------- Testimonials ---------------- */
.g3e3-testimonial {
  background: var(--g3e3-panel);
  border-left: 3px solid var(--g3e3-primary);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.g3e3-testimonial p { margin: 0 0 6px; font-size: 1.3rem; }
.g3e3-testimonial .g3e3-author { font-size: 1.15rem; color: var(--g3e3-secondary); }

/* ---------------- Payment & app download ---------------- */
.g3e3-pay-row { display: flex; flex-wrap: wrap; gap: 8px; }
.g3e3-pay-chip {
  background: var(--g3e3-bg-soft);
  border: 1px solid var(--g3e3-line);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.2rem;
  color: var(--g3e3-text);
}
.g3e3-app-card {
  background: linear-gradient(135deg, #1c1c1c, #141414);
  border: 1px solid var(--g3e3-line);
  border-radius: var(--g3e3-radius);
  padding: 14px;
  text-align: center;
}
.g3e3-app-card h3 { color: var(--g3e3-primary); margin: 6px 0; }

/* ---------------- Winners ticker ---------------- */
.g3e3-winners {
  background: var(--g3e3-bg-soft);
  border-radius: 10px;
  padding: 10px;
  border: 1px solid var(--g3e3-line);
}
.g3e3-winner-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(60,60,60,0.6);
  font-size: 1.25rem;
}
.g3e3-winner-row:last-child { border-bottom: none; }
.g3e3-winner-amount { color: var(--g3e3-accent); font-weight: 700; }

/* ---------------- Footer ---------------- */
.g3e3-footer {
  background: var(--g3e3-bg-soft);
  border-top: 1px solid var(--g3e3-line);
  padding: 20px 14px 28px;
  margin-top: 18px;
}
.g3e3-footer-inner { max-width: 430px; margin: 0 auto; }
.g3e3-footer-desc {
  color: var(--g3e3-muted);
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 12px;
}
.g3e3-footer-btns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.g3e3-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 10px;
}
.g3e3-footer-links a {
  font-size: 1.2rem;
  color: var(--g3e3-muted);
}
.g3e3-footer-copy {
  font-size: 1.15rem;
  color: var(--g3e3-muted);
  border-top: 1px solid rgba(60,60,60,0.5);
  padding-top: 10px;
}

/* ---------------- Bottom nav (mobile only) ---------------- */
.g3e3-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, rgba(20,20,20,0.98), rgba(10,10,10,1));
  border-top: 1px solid var(--g3e3-line);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
}
.g3e3-bottom-nav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--g3e3-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  position: relative;
  transition: color 0.18s ease, transform 0.18s ease;
}
.g3e3-bottom-nav-btn:active { transform: scale(0.92); }
.g3e3-bottom-nav-btn .g3e3-nav-icon { font-size: 2.2rem; line-height: 1; }
.g3e3-bottom-nav-btn .g3e3-nav-icon.mi { font-family: "Material Icons"; font-size: 2.4rem; }
.g3e3-bottom-nav-btn .g3e3-nav-label { font-size: 1rem; }
.g3e3-bottom-nav-btn.g3e3-nav-active { color: var(--g3e3-primary); }
.g3e3-bottom-nav-btn.g3e3-nav-active::before {
  content: "";
  position: absolute;
  top: 0; left: 25%; right: 25%;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--g3e3-gold-grad);
}
.g3e3-bottom-nav-btn.g3e3-nav-promo {
  color: #1a1208;
}
.g3e3-bottom-nav-btn.g3e3-nav-promo .g3e3-nav-pill {
  background: var(--g3e3-gold-grad);
  border-radius: 12px;
  padding: 4px 10px;
  color: #1a1208;
}

/* ---------------- Desktop hides ---------------- */
@media (min-width: 769px) {
  .g3e3-bottom-nav { display: none; }
  .g3e3-main { padding-bottom: 30px; }
  .g3e3-container, .g3e3-header-inner, .g3e3-footer-inner { max-width: 760px; }
}

/* ---------------- Small screens tweaks ---------------- */
@media (max-width: 360px) {
  .g3e3-grid { grid-template-columns: repeat(2, 1fr); }
  .g3e3-brand-name { font-size: 1.7rem; }
}
