/* ============================================================
   GG77 layout stylesheet
   Class prefix: g8dc-
   Palette: #34495E | #DCDCDC | #E5E5E5 | #C0C0C0 | #A9A9A9
   Dark = backgrounds, Light = text
   Mobile-first, max 430px design width.
   ============================================================ */

:root {
  --g8dc-primary: #34495E;
  --g8dc-bg: #34495E;
  --g8dc-bg-deep: #2a3a4c;
  --g8dc-bg-soft: #3d5469;
  --g8dc-text: #E5E5E5;
  --g8dc-text-soft: #DCDCDC;
  --g8dc-muted: #C0C0C0;
  --g8dc-faint: #A9A9A9;
  --g8dc-accent: #f5b440;
  --g8dc-accent-2: #e5394b;
  --g8dc-line: rgba(220, 220, 220, 0.14);
  --g8dc-radius: 14px;
  --g8dc-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --g8dc-max-width: 430px;
}

* { box-sizing: border-box; }

html { font-size: 62.5%; }

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--g8dc-bg);
  color: var(--g8dc-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
}

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

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

.g8dc-wrapper {
  width: 100%;
  max-width: var(--g8dc-max-width);
  margin: 0 auto;
  position: relative;
}

.g8dc-container {
  width: 100%;
  padding: 0 1.2rem;
}

/* =========== Header =========== */
.g8dc-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--g8dc-bg-deep);
  border-bottom: 1px solid var(--g8dc-line);
  box-shadow: var(--g8dc-shadow);
}

.g8dc-header-inner {
  max-width: var(--g8dc-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  gap: 0.8rem;
}

.g8dc-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 1;
  min-width: 0;
}

.g8dc-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
}

.g8dc-brand-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--g8dc-text);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.g8dc-brand-name span { color: var(--g8dc-accent); }

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

.g8dc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
  min-height: 36px;
}
.g8dc-btn:active { transform: scale(0.96); }

.g8dc-btn-login {
  background: transparent;
  color: var(--g8dc-text-soft);
  border: 1px solid var(--g8dc-muted);
}
.g8dc-btn-register {
  background: linear-gradient(135deg, var(--g8dc-accent), #ffcf6b);
  color: #2a3a4c;
}

.g8dc-menu-btn {
  background: transparent;
  border: none;
  color: var(--g8dc-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  min-width: 40px;
  min-height: 40px;
}

/* =========== Mobile menu =========== */
.g8dc-mobile-menu {
  max-height: 0;
  overflow: hidden;
  background: var(--g8dc-bg-deep);
  transition: max-height 0.3s ease;
}
.g8dc-mobile-menu.g8dc-menu-open {
  max-height: 460px;
  border-bottom: 1px solid var(--g8dc-line);
}
.g8dc-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0.4rem 1.2rem 1rem;
}
.g8dc-mobile-menu li { border-bottom: 1px solid var(--g8dc-line); }
.g8dc-mobile-menu li:last-child { border-bottom: none; }
.g8dc-mobile-menu a {
  display: block;
  padding: 1rem 0.4rem;
  color: var(--g8dc-text-soft);
  font-size: 1.45rem;
  font-weight: 600;
}
.g8dc-mobile-menu a:hover { color: var(--g8dc-accent); }

/* =========== Main =========== */
.g8dc-main {
  padding-top: 70px;
  padding-bottom: 80px;
}

/* =========== Hero carousel =========== */
.g8dc-hero {
  position: relative;
  margin: 1rem 0;
  border-radius: var(--g8dc-radius);
  overflow: hidden;
  box-shadow: var(--g8dc-shadow);
}
.g8dc-slide {
  display: none;
  cursor: pointer;
  position: relative;
}
.g8dc-slide img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.g8dc-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
  padding: 1.6rem 1.2rem 1rem;
  font-weight: 700;
  font-size: 1.5rem;
}
.g8dc-dots {
  position: absolute;
  bottom: 8px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 5;
}
.g8dc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
}
.g8dc-dot-active { background: var(--g8dc-accent); width: 22px; border-radius: 5px; }

/* =========== Section titles =========== */
.g8dc-section {
  margin: 2rem 0;
}
.g8dc-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--g8dc-text);
  margin: 0 0 1rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--g8dc-accent);
}
.g8dc-h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 1.4rem 0;
  color: var(--g8dc-text);
}
.g8dc-h1 span { color: var(--g8dc-accent); }

.g8dc-subtitle {
  color: var(--g8dc-muted);
  font-size: 1.35rem;
  margin-bottom: 1.2rem;
}

/* =========== Game grid =========== */
.g8dc-game-group { margin: 1.4rem 0; }
.g8dc-game-group h3 {
  font-size: 1.5rem;
  color: var(--g8dc-text);
  margin: 0 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.g8dc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
@media (min-width: 380px) {
  .g8dc-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}
.g8dc-card {
  background: var(--g8dc-bg-soft);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid var(--g8dc-line);
  display: block;
  padding: 0;
}
.g8dc-card:active { transform: scale(0.95); }
.g8dc-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #1d2935;
}
.g8dc-card-name {
  font-size: 1.1rem;
  color: var(--g8dc-text-soft);
  padding: 0.5rem 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

/* =========== Info / feature blocks =========== */
.g8dc-card-box {
  background: var(--g8dc-bg-soft);
  border-radius: var(--g8dc-radius);
  padding: 1.4rem;
  border: 1px solid var(--g8dc-line);
  margin-bottom: 1rem;
}
.g8dc-card-box h2 {
  font-size: 1.6rem;
  margin: 0 0 0.6rem;
  color: var(--g8dc-text);
}
.g8dc-card-box p {
  color: var(--g8dc-text-soft);
  margin: 0 0 0.8rem;
  font-size: 1.35rem;
}
.g8dc-text-link {
  color: var(--g8dc-accent);
  font-weight: 700;
  text-decoration: underline;
}

.g8dc-list {
  list-style: none;
  padding: 0; margin: 0;
}
.g8dc-list li {
  padding: 0.6rem 0 0.6rem 1.8rem;
  border-bottom: 1px dashed var(--g8dc-line);
  color: var(--g8dc-text-soft);
  position: relative;
  font-size: 1.35rem;
}
.g8dc-list li::before {
  content: "\f005";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.7rem;
  color: var(--g8dc-accent);
  font-size: 1rem;
}

/* =========== Promo CTA =========== */
.g8dc-cta {
  background: linear-gradient(135deg, var(--g8dc-accent-2), var(--g8dc-accent));
  border-radius: var(--g8dc-radius);
  padding: 1.6rem;
  text-align: center;
  margin: 1.6rem 0;
  box-shadow: var(--g8dc-shadow);
}
.g8dc-cta h3 {
  margin: 0 0 0.4rem;
  color: #fff;
  font-size: 1.7rem;
}
.g8dc-cta p { color: #fff; opacity: 0.95; margin: 0 0 1rem; font-size: 1.3rem; }
.g8dc-cta .g8dc-btn {
  background: #fff;
  color: var(--g8dc-accent-2);
  font-size: 1.5rem;
  padding: 0.9rem 2rem;
}

/* =========== Testimonial =========== */
.g8dc-testimonials {
  display: grid;
  gap: 0.8rem;
}
.g8dc-testimonial {
  background: var(--g8dc-bg-soft);
  border-left: 3px solid var(--g8dc-accent);
  padding: 1rem 1.2rem;
  border-radius: 8px;
  font-size: 1.3rem;
  color: var(--g8dc-text-soft);
}
.g8dc-testimonial strong { color: var(--g8dc-accent); display: block; margin-bottom: 0.3rem; }

/* =========== Payment / winners strip =========== */
.g8dc-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.6rem 0;
}
.g8dc-chip {
  background: var(--g8dc-bg-soft);
  border: 1px solid var(--g8dc-line);
  color: var(--g8dc-text-soft);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 600;
}

.g8dc-winners {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.g8dc-winner-row {
  display: flex;
  justify-content: space-between;
  background: var(--g8dc-bg-soft);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 1.25rem;
  color: var(--g8dc-text-soft);
}
.g8dc-winner-row b { color: var(--g8dc-accent); }

/* =========== FAQ =========== */
.g8dc-faq-item {
  background: var(--g8dc-bg-soft);
  border: 1px solid var(--g8dc-line);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.7rem;
}
.g8dc-faq-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
  color: var(--g8dc-text);
}
.g8dc-faq-item p { margin: 0; font-size: 1.3rem; color: var(--g8dc-text-soft); }

/* =========== Footer =========== */
.g8dc-footer {
  background: var(--g8dc-bg-deep);
  border-top: 1px solid var(--g8dc-line);
  padding: 2rem 0 1rem;
  margin-top: 2rem;
}
.g8dc-footer-desc {
  color: var(--g8dc-muted);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.g8dc-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.g8dc-footer-promo .g8dc-btn { padding: 0.6rem 1.1rem; font-size: 1.25rem; }

.g8dc-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem 1rem;
  margin-bottom: 1rem;
}
.g8dc-footer-links a {
  font-size: 1.2rem;
  color: var(--g8dc-muted);
}
.g8dc-footer-links a:hover { color: var(--g8dc-accent); }

.g8dc-copyright {
  border-top: 1px solid var(--g8dc-line);
  padding-top: 1rem;
  text-align: center;
  font-size: 1.15rem;
  color: var(--g8dc-faint);
}

/* =========== Bottom nav (mobile) =========== */
.g8dc-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--g8dc-bg-deep);
  border-top: 1px solid var(--g8dc-line);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 62px;
  padding: 0 0.3rem;
}
.g8dc-bottom-nav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--g8dc-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  transition: color 0.15s ease, transform 0.15s ease;
  padding: 0;
}
.g8dc-bottom-nav-btn:active { transform: scale(0.92); }
.g8dc-bottom-nav-btn .g8dc-nav-icon { font-size: 22px; line-height: 1; }
.g8dc-bottom-nav-btn .g8dc-nav-icon.mi { font-family: "Material Icons"; font-size: 24px; }
.g8dc-bottom-nav-btn .g8dc-nav-icon.ion { font-size: 24px; }
.g8dc-bottom-nav-btn:hover { color: var(--g8dc-text); }
.g8dc-bottom-nav-active,
.g8dc-bottom-nav-btn.g8dc-bottom-nav-active { color: var(--g8dc-accent); }

@media (min-width: 769px) {
  .g8dc-bottom-nav { display: none; }
  .g8dc-main { padding-bottom: 20px; }
  .g8dc-wrapper { max-width: 760px; }
  .g8dc-grid { grid-template-columns: repeat(6, 1fr); }
}

/* =========== Utilities =========== */
.g8dc-center { text-align: center; }
.g8dc-mt { margin-top: 1.4rem; }
.g8dc-mb { margin-bottom: 1.4rem; }
.g8dc-read-more {
  display: inline-block;
  margin-top: 0.6rem;
  font-weight: 700;
  color: var(--g8dc-accent);
  text-decoration: underline;
}
