/*!
 * abc9.homes - design.css
 * All custom classes use the g205- prefix.
 * Palette: #40E0D0 (turquoise) | #90EE90 (light green) | #1E1E1E (dark bg)
 * Mobile-first, max-width 430px reference. Root font 62.5% => 1rem = 10px.
 * Comments in English only.
 */
:root {
  --g205-primary: #40E0D0;
  --g205-accent: #90EE90;
  --g205-bg: #1E1E1E;
  --g205-bg-soft: #262626;
  --g205-bg-card: #2c2c2c;
  --g205-text: #f5f5f5;
  --g205-text-muted: #b5b5b5;
  --g205-border: #3a3a3a;
  --g205-danger: #ff6b6b;
  --g205-gold: #ffd54f;
  --g205-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  --g205-radius: 12px;
  --g205-radius-sm: 8px;
  --g205-header-h: 56px;
  --g205-bottom-h: 62px;
}

* { box-sizing: border-box; }

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

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

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

/* ---------- Layout ---------- */
.g205-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}
.g205-wrapper { width: 100%; }

/* ---------- Header ---------- */
.g205-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--g205-header-h);
  background: linear-gradient(90deg, #1b1b1b 0%, #242424 100%);
  border-bottom: 1px solid var(--g205-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.g205-header-inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.g205-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.g205-logo img {
  width: 28px; height: 28px;
  border-radius: 6px;
}
.g205-logo-text {
  font-size: 1.7rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--g205-primary), var(--g205-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: .5px;
  white-space: nowrap;
}
.g205-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.g205-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: var(--g205-radius-sm);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, background .15s ease;
  color: #0f0f0f;
}
.g205-btn:active { transform: scale(.94); }
.g205-btn-primary {
  background: linear-gradient(135deg, var(--g205-primary), #2bb8ad);
  color: #06231f;
}
.g205-btn-secondary {
  background: linear-gradient(135deg, var(--g205-accent), #5ec85e);
  color: #102a10;
}
.g205-btn-ghost {
  background: transparent;
  border: 1px solid var(--g205-primary);
  color: var(--g205-primary);
}
.g205-menu-toggle {
  background: transparent;
  border: none;
  color: var(--g205-text);
  font-size: 2rem;
  padding: 4px 8px;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Mobile slide-down menu ---------- */
.g205-mobile-menu {
  position: fixed;
  top: var(--g205-header-h);
  left: 0; right: 0;
  background: #202020;
  border-bottom: 1px solid var(--g205-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease;
  z-index: 9999;
}
.g205-mobile-menu.g205-menu-open { max-height: 360px; }
.g205-mobile-menu-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 8px 14px 14px;
}
.g205-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 8px;
  color: var(--g205-text);
  font-size: 1.4rem;
  border-bottom: 1px dashed #333;
}
.g205-mobile-menu a:last-child { border-bottom: none; }
.g205-mobile-menu a i { color: var(--g205-primary); width: 22px; text-align: center; }
.g205-mobile-menu a:active { background: #2a2a2a; }

/* ---------- Main / sections ---------- */
.g205-main {
  padding-top: calc(var(--g205-header-h) + 8px);
  padding-bottom: 24px;
}
.g205-section {
  padding: 18px 0;
}
.g205-section-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.g205-section-title i { color: var(--g205-primary); }
.g205-section-title .g205-accent { color: var(--g205-accent); }
.g205-subtitle {
  font-size: 1.5rem;
  color: var(--g205-text-muted);
  margin: 0 0 10px;
}
.g205-lead {
  font-size: 1.45rem;
  color: var(--g205-text-muted);
  margin: 0 0 12px;
}
.g205-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--g205-border), transparent);
  margin: 14px 0;
}

/* ---------- Carousel ---------- */
.g205-carousel {
  position: relative;
  border-radius: var(--g205-radius);
  overflow: hidden;
  box-shadow: var(--g205-shadow);
}
.g205-carousel-track { position: relative; }
.g205-carousel-slide {
  display: none;
  position: relative;
}
.g205-carousel-slide.g205-slide-active { display: block; }
.g205-carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.g205-carousel-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px;
  background: linear-gradient(0deg, rgba(0,0,0,.82) 10%, transparent 100%);
}
.g205-carousel-caption h3 {
  margin: 0 0 4px;
  font-size: 1.8rem;
  color: var(--g205-accent);
}
.g205-carousel-caption p {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: var(--g205-text);
}
.g205-carousel-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 5px;
}
.g205-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: none;
  cursor: pointer;
  padding: 0;
}
.g205-carousel-dot.g205-dot-active { background: var(--g205-primary); }

/* ---------- Filter chips ---------- */
.g205-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 12px;
  -webkit-overflow-scrolling: touch;
}
.g205-filter-bar::-webkit-scrollbar { display: none; }
.g205-filter-chip {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--g205-bg-card);
  border: 1px solid var(--g205-border);
  color: var(--g205-text-muted);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.g205-filter-chip.g205-chip-active {
  background: linear-gradient(135deg, var(--g205-primary), var(--g205-accent));
  color: #06231f;
  border-color: transparent;
}

/* ---------- Game grid ---------- */
.g205-game-group { margin-bottom: 22px; }
.g205-game-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.g205-game-group-head h2 {
  font-size: 1.7rem;
  margin: 0;
  color: var(--g205-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.g205-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.g205-game-card {
  background: var(--g205-bg-card);
  border: 1px solid var(--g205-border);
  border-radius: var(--g205-radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
  text-align: center;
}
.g205-game-card:active {
  transform: scale(.96);
  border-color: var(--g205-primary);
}
.g205-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.g205-game-card .g205-game-name {
  font-size: 1.1rem;
  padding: 5px 4px 6px;
  color: var(--g205-text);
  line-height: 1.25;
  height: 2.6em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ---------- Cards / modules ---------- */
.g205-card {
  background: var(--g205-bg-card);
  border: 1px solid var(--g205-border);
  border-radius: var(--g205-radius);
  padding: 14px;
  margin-bottom: 12px;
}
.g205-card h3 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  color: var(--g205-accent);
}
.g205-card p {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: var(--g205-text-muted);
}
.g205-feature-list {
  list-style: none;
  padding: 0; margin: 0;
}
.g205-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed #333;
  font-size: 1.35rem;
}
.g205-feature-list li:last-child { border-bottom: none; }
.g205-feature-list i { color: var(--g205-primary); margin-top: 2px; }

/* ---------- Inline promo links ---------- */
.g205-promo-link {
  color: var(--g205-primary);
  font-weight: 700;
  border-bottom: 1px dashed var(--g205-primary);
  cursor: pointer;
}
.g205-promo-link-alt {
  color: var(--g205-accent);
  font-weight: 700;
  cursor: pointer;
}
.g205-cta-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.g205-cta-bar .g205-btn { flex: 1 1 auto; }

/* ---------- Testimonials ---------- */
.g205-testimonial {
  background: var(--g205-bg-card);
  border-left: 3px solid var(--g205-primary);
  border-radius: var(--g205-radius-sm);
  padding: 12px;
  margin-bottom: 10px;
}
.g205-testimonial p { margin: 0 0 6px; font-size: 1.3rem; }
.g205-testimonial .g205-author {
  font-size: 1.15rem;
  color: var(--g205-accent);
  font-weight: 700;
}

/* ---------- Payment / winners ---------- */
.g205-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.g205-chip {
  background: var(--g205-bg-soft);
  border: 1px solid var(--g205-border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 1.2rem;
  color: var(--g205-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.g205-chip i { color: var(--g205-accent); }
.g205-winner-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dashed #333;
  font-size: 1.3rem;
}
.g205-winner-row:last-child { border-bottom: none; }
.g205-winner-name { color: var(--g205-accent); font-weight: 700; }
.g205-winner-amount { color: var(--g205-gold); font-weight: 700; }

/* ---------- FAQ ---------- */
.g205-faq-item {
  background: var(--g205-bg-card);
  border: 1px solid var(--g205-border);
  border-radius: var(--g205-radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}
.g205-faq-q {
  padding: 12px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--g205-text);
  display: flex;
  gap: 8px;
}
.g205-faq-a {
  padding: 0 12px 12px;
  font-size: 1.3rem;
  color: var(--g205-text-muted);
}

/* ---------- Footer ---------- */
.g205-footer {
  background: #181818;
  border-top: 1px solid var(--g205-border);
  padding: 20px 0 calc(var(--g205-bottom-h) + 18px);
  margin-top: 10px;
}
.g205-footer-brand {
  font-size: 1.4rem;
  color: var(--g205-text-muted);
  margin-bottom: 12px;
}
.g205-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.g205-footer-links a {
  color: var(--g205-text);
  font-size: 1.25rem;
  padding: 5px 10px;
  border: 1px solid var(--g205-border);
  border-radius: 999px;
}
.g205-footer-links a:active { border-color: var(--g205-primary); }
.g205-footer-copy {
  font-size: 1.15rem;
  color: #777;
  text-align: center;
}

/* ---------- Mobile bottom nav ---------- */
.g205-bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--g205-bottom-h);
  background: #161616;
  border-top: 1px solid var(--g205-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0,0,0,.5);
}
.g205-bottom-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--g205-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  padding: 4px 2px;
  position: relative;
  transition: color .15s ease;
}
.g205-bottom-nav-btn .g205-nav-icon {
  font-size: 22px;
  line-height: 1;
}
.g205-bottom-nav-btn .g205-nav-label {
  font-size: 1.05rem;
  font-weight: 600;
}
.g205-bottom-nav-btn:active { transform: scale(.92); }
.g205-bottom-nav-btn.g205-nav-active {
  color: var(--g205-primary);
}
.g205-bottom-nav-btn.g205-nav-active::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--g205-primary), var(--g205-accent));
}

/* ---------- Desktop ---------- */
.g205-desktop-nav { display: none; }

@media (min-width: 769px) {
  .g205-bottom-nav { display: none; }
  .g205-header-actions .g205-menu-toggle { display: none; }
  .g205-mobile-menu { display: none; }
  .g205-container { max-width: 960px; }
  .g205-header-inner { max-width: 960px; }
  .g205-game-grid { grid-template-columns: repeat(6, 1fr); }
  .g205-desktop-nav {
    display: flex;
    gap: 18px;
    align-items: center;
  }
  .g205-desktop-nav a {
    color: var(--g205-text);
    font-size: 1.35rem;
    font-weight: 600;
  }
  .g205-desktop-nav a:hover { color: var(--g205-primary); }
  .g205-footer { padding-bottom: 24px; }
}

@media (max-width: 768px) {
  .g205-main { padding-bottom: calc(var(--g205-bottom-h) + 14px); }
}
