/* ============================================================
   cwin07.homes - Shared stylesheet (basefiles)
   Prefix: g2d9-
   Palette: #F4A460 | #3CB371 | #8B4513 | #34495E | #8B7355
   ============================================================ */

:root {
  --g2d9-sand: #F4A460;
  --g2d9-green: #3CB371;
  --g2d9-brown: #8B4513;
  --g2d9-slate: #34495E;
  --g2d9-taupe: #8B7355;
  --g2d9-bg: #1f2b38;
  --g2d9-bg-2: #243444;
  --g2d9-bg-3: #2d3f52;
  --g2d9-card: #2a3a4b;
  --g2d9-text: #f5ede0;
  --g2d9-muted: #c4b8a5;
  --g2d9-primary: #F4A460;
  --g2d9-accent: #3CB371;
  --g2d9-gold: #e0a04b;
  --g2d9-shadow: 0 4px 18px rgba(0,0,0,0.35);
  --g2d9-radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, system-ui, sans-serif;
  background: linear-gradient(160deg, var(--g2d9-bg) 0%, var(--g2d9-bg-2) 100%);
  color: var(--g2d9-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--g2d9-sand); text-decoration: none; }

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

/* ===== Header ===== */
.g2d9-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--g2d9-slate), #2a3a4b);
  border-bottom: 2px solid var(--g2d9-brown);
  box-shadow: var(--g2d9-shadow);
}
.g2d9-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  gap: 8px;
}
.g2d9-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.g2d9-brand img { width: 30px; height: 30px; border-radius: 6px; }
.g2d9-brand-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--g2d9-primary);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.g2d9-brand-tag {
  font-size: 1rem;
  color: var(--g2d9-muted);
  margin-left: 2px;
}
.g2d9-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.g2d9-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 20px;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
  color: #1a120a;
}
.g2d9-btn:active { transform: scale(0.95); }
.g2d9-btn-register {
  background: linear-gradient(135deg, var(--g2d9-primary), var(--g2d9-gold));
}
.g2d9-btn-login {
  background: linear-gradient(135deg, var(--g2d9-green), #2e9163);
  color: #06230f;
}
.g2d9-menu-btn {
  background: transparent;
  border: 1px solid var(--g2d9-taupe);
  color: var(--g2d9-text);
  width: 36px; height: 36px;
  border-radius: 8px;
  font-size: 1.6rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===== Mobile slide-down menu ===== */
.g2d9-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
}
.g2d9-menu-backdrop.g2d9-backdrop-show {
  opacity: 1;
  visibility: visible;
}
.g2d9-mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: 78%;
  max-width: 320px;
  height: 100vh;
  background: var(--g2d9-bg-2);
  z-index: 9999;
  padding: 70px 16px 20px;
  transform: translateX(105%);
  transition: transform .25s ease;
  overflow-y: auto;
  border-left: 2px solid var(--g2d9-brown);
}
.g2d9-mobile-menu.g2d9-menu-open { transform: translateX(0); }
.g2d9-mobile-menu a {
  display: block;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(244,164,96,0.12);
  color: var(--g2d9-text);
  font-size: 1.35rem;
  font-weight: 600;
}
.g2d9-mobile-menu a:hover { background: rgba(244,164,96,0.08); }
.g2d9-menu-close {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--g2d9-brown);
  color: #fff;
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
}

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

.g2d9-section {
  padding: 22px 0;
}
.g2d9-section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--g2d9-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.g2d9-section-title::before {
  content: "";
  width: 4px; height: 20px;
  background: linear-gradient(var(--g2d9-primary), var(--g2d9-green));
  border-radius: 2px;
}

/* ===== Hero carousel ===== */
.g2d9-carousel {
  position: relative;
  border-radius: var(--g2d9-radius);
  overflow: hidden;
  box-shadow: var(--g2d9-shadow);
  margin-bottom: 8px;
}
.g2d9-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.g2d9-slide.g2d9-slide-active { display: block; }
.g2d9-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.g2d9-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.78));
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
}
.g2d9-dots {
  position: absolute;
  bottom: 8px; right: 12px;
  display: flex; gap: 6px;
}
.g2d9-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  border: none;
}
.g2d9-dot.g2d9-dot-active { background: var(--g2d9-primary); }

/* ===== H1 ===== */
.g2d9-h1 {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
  margin: 14px 0 8px;
}
.g2d9-lead {
  font-size: 1.3rem;
  color: var(--g2d9-muted);
  margin-bottom: 14px;
}

/* ===== Promo banner / play-now ===== */
.g2d9-cta {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: var(--g2d9-radius);
  background: linear-gradient(135deg, var(--g2d9-brown), var(--g2d9-primary));
  color: #1a120a;
  font-weight: 800;
  font-size: 1.4rem;
  margin: 12px 0;
  box-shadow: var(--g2d9-shadow);
}
.g2d9-cta:active { transform: scale(0.98); }
.g2d9-text-link {
  color: var(--g2d9-primary);
  font-weight: 700;
  border-bottom: 1px dashed var(--g2d9-primary);
}

/* ===== Chips ===== */
.g2d9-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 12px;
  scrollbar-width: none;
}
.g2d9-chips::-webkit-scrollbar { display: none; }
.g2d9-chip {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 16px;
  background: var(--g2d9-bg-3);
  color: var(--g2d9-text);
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}
.g2d9-chip.g2d9-chip-active {
  background: var(--g2d9-primary);
  color: #1a120a;
}

/* ===== Game grid ===== */
.g2d9-game-block { margin-bottom: 22px; }
.g2d9-game-block-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 10px 0;
  color: var(--g2d9-accent);
  display: flex;
  align-items: center;
  gap: 8px;
}
.g2d9-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.g2d9-game-card {
  background: var(--g2d9-card);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .12s ease;
  border: 1px solid rgba(244,164,96,0.15);
}
.g2d9-game-card:active { transform: scale(0.96); }
.g2d9-game-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: #0e1620;
}
.g2d9-game-name {
  padding: 5px 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--g2d9-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Feature / info cards ===== */
.g2d9-card {
  background: var(--g2d9-card);
  border-radius: var(--g2d9-radius);
  padding: 14px;
  margin-bottom: 12px;
  border-left: 4px solid var(--g2d9-accent);
  box-shadow: var(--g2d9-shadow);
}
.g2d9-card h2, .g2d9-card h3 {
  font-size: 1.4rem;
  color: var(--g2d9-primary);
  margin-bottom: 8px;
}
.g2d9-card p {
  color: var(--g2d9-muted);
  font-size: 1.22rem;
  margin-bottom: 6px;
}
.g2d9-card ul { padding-left: 18px; color: var(--g2d9-muted); font-size: 1.22rem; }
.g2d9-card li { margin-bottom: 4px; }

.g2d9-grid-2 {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.g2d9-mini {
  background: var(--g2d9-bg-3);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.g2d9-mini .material-icons,
.g2d9-mini .fas,
.g2d9-mini .bi {
  font-size: 26px;
  color: var(--g2d9-primary);
  margin-bottom: 6px;
}
.g2d9-mini h4 { font-size: 1.2rem; color: #fff; margin-bottom: 4px; }
.g2d9-mini p { font-size: 1.05rem; color: var(--g2d9-muted); }

/* ===== RTP table ===== */
.g2d9-rtp-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 6px;
  padding: 8px 10px;
  background: var(--g2d9-bg-3);
  margin-bottom: 6px;
  border-radius: 8px;
  font-size: 1.1rem;
  align-items: center;
}
.g2d9-rtp-row span:last-child {
  color: var(--g2d9-accent);
  font-weight: 700;
  text-align: right;
}

/* ===== Testimonials ===== */
.g2d9-quote {
  background: var(--g2d9-bg-3);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  border-left: 3px solid var(--g2d9-primary);
}
.g2d9-quote-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.g2d9-quote-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--g2d9-brown);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.g2d9-quote p { font-size: 1.18rem; color: var(--g2d9-muted); }

/* ===== Payment methods ===== */
.g2d9-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.g2d9-pay {
  flex: 1 1 30%;
  text-align: center;
  background: var(--g2d9-bg-3);
  padding: 10px 6px;
  border-radius: 10px;
  font-size: 1.05rem;
  color: var(--g2d9-text);
  min-width: 80px;
}
.g2d9-pay .fab, .g2d9-pay .fas { font-size: 22px; color: var(--g2d9-primary); display: block; margin-bottom: 4px; }

/* ===== Winners ===== */
.g2d9-winner {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--g2d9-bg-3);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 1.15rem;
}
.g2d9-winner b { color: var(--g2d9-gold); }

/* ===== App download CTA ===== */
.g2d9-app-cta {
  background: linear-gradient(135deg, var(--g2d9-green), #2e9163);
  border-radius: var(--g2d9-radius);
  padding: 16px;
  text-align: center;
  color: #06230f;
  margin: 12px 0;
}
.g2d9-app-cta h3 { font-size: 1.5rem; margin-bottom: 4px; color: #06230f; }
.g2d9-app-cta p { font-size: 1.2rem; margin-bottom: 10px; color: #072a14; }
.g2d9-app-btn {
  display: inline-block;
  background: var(--g2d9-primary);
  color: #1a120a;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 1.2rem;
}

/* ===== Footer ===== */
.g2d9-footer {
  background: #15202b;
  border-top: 2px solid var(--g2d9-brown);
  padding: 22px 12px 90px;
  margin-top: 20px;
}
.g2d9-footer-inner { max-width: 430px; margin: 0 auto; }
.g2d9-footer-brand {
  font-size: 1.35rem;
  color: var(--g2d9-muted);
  margin-bottom: 12px;
}
.g2d9-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.g2d9-footer-links a {
  flex: 1 1 45%;
  background: var(--g2d9-bg-3);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 1.15rem;
  color: var(--g2d9-text);
  text-align: center;
}
.g2d9-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.g2d9-footer-promos button,
.g2d9-footer-promos a {
  flex: 1 1 30%;
  min-height: 38px;
  padding: 6px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--g2d9-primary), var(--g2d9-gold));
  color: #1a120a;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  cursor: pointer;
}
.g2d9-copy {
  text-align: center;
  font-size: 1.05rem;
  color: var(--g2d9-taupe);
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ===== Bottom nav (mobile) ===== */
.g2d9-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, #2a3a4b, #1c2836);
  border-top: 2px solid var(--g2d9-brown);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.4);
}
.g2d9-bottom-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: var(--g2d9-muted);
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  min-width: 60px;
  min-height: 60px;
  transition: color .15s ease, transform .15s ease;
}
.g2d9-bottom-nav-btn:active { transform: scale(0.92); }
.g2d9-bottom-nav-btn .material-icons,
.g2d9-bottom-nav-btn .fas,
.g2d9-bottom-nav-btn .far,
.g2d9-bottom-nav-btn .ion,
.g2d9-bottom-nav-btn .bi {
  font-size: 22px;
}
.g2d9-bottom-nav-btn.g2d9-nav-active {
  color: var(--g2d9-primary);
}
.g2d9-bottom-nav-btn.g2d9-nav-active::after {
  content: "";
  width: 26px; height: 3px;
  background: var(--g2d9-primary);
  border-radius: 2px;
  margin-top: 2px;
}
.g2d9-nav-badge {
  position: absolute;
  top: 8px;
  background: #e05a5a;
  color: #fff;
  font-size: 0.85rem;
  padding: 1px 5px;
  border-radius: 8px;
}
@media (min-width: 769px) {
  .g2d9-bottom-nav { display: none; }
}

/* ===== Back to top ===== */
.g2d9-to-top {
  position: fixed;
  right: 14px;
  bottom: 76px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--g2d9-primary);
  color: #1a120a;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
  z-index: 900;
}
.g2d9-to-top.g2d9-to-top-show { opacity: 1; visibility: visible; }

/* ===== Desktop nav reveal ===== */
.g2d9-desktop-nav { display: none; }
@media (min-width: 769px) {
  .g2d9-desktop-nav {
    display: flex;
    gap: 16px;
    align-items: center;
  }
  .g2d9-desktop-nav a {
    color: var(--g2d9-text);
    font-size: 1.25rem;
    font-weight: 600;
  }
  .g2d9-header-inner { max-width: 1100px; }
  .g2d9-container { max-width: 1100px; }
  .g2d9-grid { grid-template-columns: repeat(8, 1fr); }
}

.g2d9-center { text-align: center; }
.g2d9-mt { margin-top: 12px; }
