/* ============================================================
 * casino plus download - core styles
 * Class prefix: g2f9-
 * Palette: #9AFF9A | #008000 | #CD853F | #66CDAA | #34495E
 * Mobile-first, max 430px primary, scales to desktop.
 * ============================================================ */

:root {
  --g2f9-primary: #008000;
  --g2f9-accent: #CD853F;
  --g2f9-teal: #66CDAA;
  --g2f9-mint: #9AFF9A;
  --g2f9-bg: #34495E;
  --g2f9-bg-deep: #243240;
  --g2f9-bg-card: #3d556e;
  --g2f9-text: #f4f9f4;
  --g2f9-text-dim: #c7d6c7;
  --g2f9-border: rgba(154, 255, 154, 0.18);
  --g2f9-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

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

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

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

a { color: var(--g2f9-mint); text-decoration: none; }

/* ---------------- Layout helpers ---------------- */
.g2f9-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.g2f9-container { width: 100%; max-width: 1100px; margin: 0 auto; }

main { padding-bottom: 84px; }

/* ---------------- Header ---------------- */
.g2f9-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--g2f9-bg-deep) 0%, var(--g2f9-bg) 100%);
  border-bottom: 1px solid var(--g2f9-border);
  box-shadow: var(--g2f9-shadow);
}

.g2f9-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.g2f9-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--g2f9-mint);
  font-weight: 700;
  font-size: 1.5rem;
  min-width: 0;
}

.g2f9-brand img { width: 28px; height: 28px; border-radius: 6px; }

.g2f9-brand-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.g2f9-menu-btn {
  background: transparent;
  border: 1px solid var(--g2f9-border);
  color: var(--g2f9-mint);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.g2f9-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0 1.2rem;
  border-radius: 22px;
  font-weight: 700;
  font-size: 1.3rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #fff;
}

.g2f9-btn:active { transform: scale(0.96); }

.g2f9-btn--register {
  background: linear-gradient(135deg, var(--g2f9-accent) 0%, #b06b2e 100%);
  box-shadow: 0 3px 8px rgba(205, 133, 63, 0.4);
}

.g2f9-btn--login {
  background: linear-gradient(135deg, var(--g2f9-primary) 0%, #006100 100%);
  box-shadow: 0 3px 8px rgba(0, 128, 0, 0.4);
}

/* ---------------- Nav drawer ---------------- */
.g2f9-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 9998;
}

.g2f9-nav-overlay--show { opacity: 1; visibility: visible; }

.g2f9-nav-drawer {
  position: fixed;
  top: 0;
  right: -85%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--g2f9-bg-deep);
  padding: 6rem 1.2rem 2rem;
  transition: right 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
  border-left: 1px solid var(--g2f9-border);
}

.g2f9-nav-drawer--open { right: 0; }

.g2f9-nav-drawer a {
  display: block;
  padding: 1rem 0.8rem;
  color: var(--g2f9-text);
  border-bottom: 1px solid var(--g2f9-border);
  font-size: 1.4rem;
}

.g2f9-nav-drawer a:hover,
.g2f9-nav-drawer a:focus { background: rgba(154, 255, 154, 0.08); color: var(--g2f9-mint); }

.g2f9-nav-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--g2f9-text);
  font-size: 2.2rem;
  cursor: pointer;
}

/* ---------------- Hero / Carousel ---------------- */
.g2f9-hero { margin-top: 64px; }

.g2f9-carousel {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--g2f9-shadow);
  margin: 1rem 0;
}

.g2f9-carousel-track { position: relative; width: 100%; aspect-ratio: 16 / 7; }

.g2f9-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--g2f9-transition, 0.6s) ease;
}

.g2f9-carousel-slide--active { opacity: 1; }

.g2f9-carousel-slide img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }

.g2f9-carousel-dots {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.g2f9-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  border: none;
  padding: 0;
}

.g2f9-carousel-dot--active { background: var(--g2f9-mint); transform: scale(1.25); }

/* ---------------- Headings ---------------- */
.g2f9-h1 {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--g2f9-mint);
  text-align: center;
  margin: 1.4rem 0 0.6rem;
  line-height: 1.25;
}

.g2f9-h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--g2f9-teal);
  margin: 1.6rem 0 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--g2f9-primary);
}

.g2f9-h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--g2f9-mint);
  margin: 1rem 0 0.4rem;
}

.g2f9-lead {
  text-align: center;
  color: var(--g2f9-text-dim);
  font-size: 1.35rem;
  padding: 0 0.4rem;
  margin-bottom: 1rem;
}

/* ---------------- Filter pills ---------------- */
.g2f9-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.4rem 0 0.8rem;
  justify-content: center;
}

.g2f9-filter-pill {
  background: var(--g2f9-bg-card);
  color: var(--g2f9-text);
  border: 1px solid var(--g2f9-border);
  padding: 0.5rem 1rem;
  border-radius: 18px;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.g2f9-filter-pill--active {
  background: var(--g2f9-primary);
  color: #fff;
  border-color: var(--g2f9-primary);
}

/* ---------------- Game grid ---------------- */
.g2f9-game-section { margin: 1.2rem 0; }

.g2f9-game-section-title {
  font-size: 1.45rem;
  color: var(--g2f9-accent);
  font-weight: 700;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.g2f9-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

@media (min-width: 480px) { .g2f9-grid { grid-template-columns: repeat(4, 1fr); } }

.g2f9-card {
  background: var(--g2f9-bg-card);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  padding: 0.4rem;
  border: 1px solid var(--g2f9-border);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.g2f9-card:active { transform: scale(0.95); }

.g2f9-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.g2f9-card-name {
  font-size: 1.1rem;
  color: var(--g2f9-text);
  margin-top: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------------- Content sections ---------------- */
.g2f9-section {
  background: var(--g2f9-bg-card);
  border-radius: 12px;
  padding: 1.2rem;
  margin: 1rem 0;
  border: 1px solid var(--g2f9-border);
}

.g2f9-section p { margin: 0.4rem 0; color: var(--g2f9-text-dim); }

.g2f9-list { padding-left: 1.6rem; margin: 0.4rem 0; color: var(--g2f9-text-dim); }
.g2f9-list li { margin-bottom: 0.3rem; }

.g2f9-steps { counter-reset: g2f9step; list-style: none; padding: 0; }
.g2f9-steps li {
  position: relative;
  padding: 0.6rem 0.6rem 0.6rem 3.4rem;
  margin-bottom: 0.6rem;
  background: var(--g2f9-bg-deep);
  border-radius: 8px;
  counter-increment: g2f9step;
}
.g2f9-steps li::before {
  content: counter(g2f9step);
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.2rem;
  height: 2.2rem;
  background: var(--g2f9-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

/* Inline affiliate links inside content */
.g2f9-link-inline {
  color: var(--g2f9-accent);
  font-weight: 700;
  cursor: pointer;
}
.g2f9-link-inline:hover { text-decoration: underline; }

/* CTA banner */
.g2f9-cta {
  background: linear-gradient(135deg, var(--g2f9-primary) 0%, var(--g2f9-teal) 100%);
  border-radius: 12px;
  padding: 1.4rem;
  text-align: center;
  margin: 1.2rem 0;
  color: #fff;
}
.g2f9-cta h3 { color: #fff; margin-top: 0; }
.g2f9-cta .g2f9-btn { margin-top: 0.6rem; background: var(--g2f9-accent); }

/* Stats compact */
.g2f9-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-top: 0.6rem;
}
.g2f9-stat {
  background: var(--g2f9-bg-deep);
  border-radius: 8px;
  padding: 0.8rem;
  text-align: center;
}
.g2f9-stat-num { display: block; font-size: 1.8rem; font-weight: 800; color: var(--g2f9-mint); }
.g2f9-stat-label { display: block; font-size: 1.1rem; color: var(--g2f9-text-dim); }

/* Testimonials */
.g2f9-testimonials { display: grid; gap: 0.7rem; }
.g2f9-testimonial {
  background: var(--g2f9-bg-deep);
  border-left: 3px solid var(--g2f9-accent);
  border-radius: 6px;
  padding: 0.8rem;
}
.g2f9-testimonial p { margin: 0 0 0.3rem; font-size: 1.25rem; }
.g2f9-testimonial span { font-size: 1.1rem; color: var(--g2f9-mint); font-weight: 700; }

/* Payment row */
.g2f9-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.g2f9-pay {
  background: var(--g2f9-bg-deep);
  color: var(--g2f9-text);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  font-size: 1.15rem;
  border: 1px solid var(--g2f9-border);
}

/* Winners ticker */
.g2f9-winners { display: grid; gap: 0.4rem; }
.g2f9-winner {
  display: flex;
  justify-content: space-between;
  background: var(--g2f9-bg-deep);
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  font-size: 1.2rem;
}
.g2f9-winner b { color: var(--g2f9-accent); }

/* ---------------- Footer ---------------- */
.g2f9-footer {
  background: var(--g2f9-bg-deep);
  border-top: 1px solid var(--g2f9-border);
  padding: 1.6rem 1rem 2rem;
  margin-top: 1.5rem;
  color: var(--g2f9-text-dim);
}

.g2f9-footer-brand { font-size: 1.25rem; margin-bottom: 0.6rem; color: var(--g2f9-mint); }

.g2f9-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 0.8rem;
  margin: 0.8rem 0;
}
.g2f9-footer-links a { color: var(--g2f9-text-dim); font-size: 1.15rem; }
.g2f9-footer-links a:hover { color: var(--g2f9-mint); }

.g2f9-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0;
}
.g2f9-footer-promos button {
  flex: 1 1 auto;
}

.g2f9-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--g2f9-text-dim);
  margin-top: 0.6rem;
}

/* ---------------- Mobile bottom nav ---------------- */
.g2f9-bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: var(--g2f9-bg-deep);
  border-top: 1px solid var(--g2f9-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.g2f9-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--g2f9-text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  transition: color 0.15s ease, transform 0.15s ease;
}

.g2f9-bottomnav-btn .material-icons,
.g2f9-bottomnav-btn .fas,
.g2f9-bottomnav-btn .far { font-size: 22px; }

.g2f9-bottomnav-btn:active { transform: scale(0.9); }

.g2f9-bottomnav-btn--active { color: var(--g2f9-mint); }

.g2f9-bottomnav-btn--promo { color: var(--g2f9-accent); }

/* Desktop: hide bottom nav, expand layout */
@media (min-width: 769px) {
  .g2f9-bottomnav { display: none; }
  main { padding-bottom: 0; }
  .g2f9-wrapper { max-width: 960px; padding: 0 1.6rem; }
  .g2f9-grid { grid-template-columns: repeat(6, 1fr); }
  .g2f9-footer-links { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* Skip link for accessibility */
.g2f9-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--g2f9-mint);
  color: var(--g2f9-bg-deep);
  padding: 0.6rem 1rem;
  border-radius: 4px;
  z-index: 9999;
}
.g2f9-skip:focus { left: 0.5rem; top: 0.5rem; }
