/* ============================================================
   fun88 login - Common stylesheet (prefix: gc5b-)
   Palette: #E0F2F1 | #1A1A1A | #00B8D4 | #66CDAA | #48D1CC
   Dark backgrounds, light text. Mobile-first, max-width 430px.
   ============================================================ */

:root {
  --gc5b-bg: #1A1A1A;
  --gc5b-bg-soft: #232626;
  --gc5b-bg-card: #1f2424;
  --gc5b-text: #E0F2F1;
  --gc5b-text-dim: #9fc7c4;
  --gc5b-primary: #00B8D4;
  --gc5b-accent: #66CDAA;
  --gc5b-accent2: #48D1CC;
  --gc5b-gold: #ffd479;
  --gc5b-danger: #ff5a5a;
  --gc5b-radius: 1.2rem;
}

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

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--gc5b-bg);
  color: var(--gc5b-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

a { color: var(--gc5b-accent2); text-decoration: none; }
a:hover { color: var(--gc5b-accent); }
img { max-width: 100%; display: block; }

.gc5b-container { width: 100%; padding: 0 1.2rem; }
.gc5b-wrapper { padding-top: 5.6rem; padding-bottom: 1rem; }

/* ---------------- Header ---------------- */
.gc5b-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #111515 0%, #1A1A1A 100%);
  border-bottom: 1px solid rgba(0,184,212,0.18);
  max-width: 430px;
  margin: 0 auto;
}
.gc5b-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1rem; gap: 0.6rem;
}
.gc5b-brand { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.gc5b-brand img { width: 2.8rem; height: 2.8rem; border-radius: 0.6rem; }
.gc5b-brand-name {
  font-size: 1.5rem; font-weight: 700; color: var(--gc5b-text);
  white-space: nowrap;
}
.gc5b-brand-name b { color: var(--gc5b-primary); }
.gc5b-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.gc5b-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem;
  font-size: 1.3rem; font-weight: 700;
  padding: 0.6rem 1rem; border-radius: 0.8rem;
  border: none; cursor: pointer; min-height: 3.2rem;
  transition: transform .15s ease, box-shadow .15s ease;
  color: #0c1414;
}
.gc5b-btn:hover { transform: translateY(-1px); }
.gc5b-btn-primary { background: linear-gradient(135deg, #00B8D4, #48D1CC); color: #062023; box-shadow: 0 4px 12px rgba(0,184,212,0.25); }
.gc5b-btn-accent { background: linear-gradient(135deg, #66CDAA, #48D1CC); color: #0a2620; }
.gc5b-btn-ghost { background: transparent; color: var(--gc5b-text); border: 1px solid rgba(224,242,241,0.35); }
.gc5b-btn-sm { padding: 0.5rem 0.9rem; font-size: 1.2rem; }

.gc5b-menu-btn {
  background: transparent; border: none; color: var(--gc5b-text);
  font-size: 1.8rem; cursor: pointer; min-width: 3.2rem; min-height: 3.2rem;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------------- Mobile menu drawer ---------------- */
.gc5b-mobile-menu {
  position: fixed; top: 0; left: 0; right: 0;
  background: #141717;
  border-bottom: 1px solid rgba(0,184,212,0.2);
  padding: 5.6rem 1rem 1rem;
  transform: translateY(-120%);
  transition: transform .28s ease;
  z-index: 9999;
  max-width: 430px; margin: 0 auto;
}
.gc5b-mobile-menu.gc5b-menu-open { transform: translateY(0); }
.gc5b-mobile-menu a {
  display: block; padding: 0.9rem 0.6rem;
  color: var(--gc5b-text); font-size: 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.gc5b-mobile-menu a:hover { color: var(--gc5b-primary); }
.gc5b-mobile-menu .gc5b-menu-promo {
  margin-top: 0.6rem; text-align: center; color: var(--gc5b-gold); font-weight: 700;
}

/* ---------------- Hero / Carousel ---------------- */
.gc5b-hero { margin: 1rem 0 0.6rem; }
.gc5b-carousel { position: relative; overflow: hidden; border-radius: var(--gc5b-radius); }
.gc5b-carousel-track { display: flex; transition: transform .5s ease; }
.gc5b-slide { min-width: 100%; position: relative; cursor: pointer; }
.gc5b-slide img { width: 100%; height: auto; border-radius: var(--gc5b-radius); }
.gc5b-slide-cap {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  background: rgba(10,16,16,0.55); padding: 0.6rem 0.8rem; border-radius: 0.8rem;
  font-size: 1.25rem; color: var(--gc5b-text);
}
.gc5b-dots {
  display: flex; justify-content: center; gap: 0.4rem; padding: 0.6rem 0;
}
.gc5b-dot {
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: rgba(224,242,241,0.35); border: none; cursor: pointer;
}
.gc5b-dot.gc5b-dot-active { background: var(--gc5b-primary); }

/* ---------------- Section / Heading ---------------- */
.gc5b-section { padding: 1.4rem 0; }
.gc5b-section-title {
  font-size: 1.7rem; font-weight: 700; color: var(--gc5b-text);
  margin-bottom: 0.8rem; padding-left: 0.6rem;
  border-left: 4px solid var(--gc5b-primary);
}
.gc5b-section-title em { color: var(--gc5b-accent); font-style: normal; }
.gc5b-lead { color: var(--gc5b-text-dim); margin-bottom: 0.8rem; font-size: 1.35rem; }

/* ---------------- Game grid ---------------- */
.gc5b-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem;
}
.gc5b-game-card {
  background: var(--gc5b-bg-card); border-radius: 0.8rem;
  overflow: hidden; cursor: pointer; text-align: center;
  border: 1px solid rgba(72,209,204,0.12);
  transition: transform .15s ease, border-color .15s ease;
}
.gc5b-game-card:hover { transform: translateY(-2px); border-color: var(--gc5b-primary); }
.gc5b-game-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.gc5b-game-name {
  font-size: 1.1rem; padding: 0.4rem 0.3rem 0.5rem; color: var(--gc5b-text);
  line-height: 1.3rem; min-height: 2.6rem;
}
.gc5b-cat-tag {
  display: inline-block; font-size: 1rem; padding: 0.15rem 0.5rem;
  border-radius: 0.5rem; background: rgba(0,184,212,0.18); color: var(--gc5b-primary);
  margin-bottom: 0.5rem;
}

/* ---------------- Cards / Features ---------------- */
.gc5b-card {
  background: var(--gc5b-bg-card); border-radius: var(--gc5b-radius);
  padding: 1rem; margin-bottom: 0.8rem;
  border: 1px solid rgba(72,209,204,0.1);
}
.gc5b-card h3 { font-size: 1.4rem; margin-bottom: 0.4rem; color: var(--gc5b-accent2); }
.gc5b-card p { color: var(--gc5b-text-dim); font-size: 1.25rem; }
.gc5b-feature-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem;
}
.gc5b-feature {
  background: var(--gc5b-bg-card); border-radius: 1rem; padding: 0.9rem;
  text-align: center; border: 1px solid rgba(72,209,204,0.1);
}
.gc5b-feature .material-icons { font-size: 2.2rem; color: var(--gc5b-primary); }
.gc5b-feature h4 { font-size: 1.25rem; margin: 0.3rem 0; color: var(--gc5b-text); }
.gc5b-feature p { font-size: 1.1rem; color: var(--gc5b-text-dim); }

/* ---------------- Steps ---------------- */
.gc5b-steps { list-style: none; counter-reset: step; }
.gc5b-steps li {
  position: relative; padding: 0.6rem 0 0.6rem 3rem; color: var(--gc5b-text-dim);
  counter-increment: step; border-bottom: 1px dashed rgba(255,255,255,0.06);
}
.gc5b-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0.5rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--gc5b-primary); color: #062023;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* ---------------- FAQ ---------------- */
.gc5b-faq-item {
  background: var(--gc5b-bg-card); border-radius: 0.8rem; padding: 0.8rem 1rem;
  margin-bottom: 0.6rem; border: 1px solid rgba(72,209,204,0.1);
}
.gc5b-faq-item h4 { font-size: 1.3rem; color: var(--gc5b-accent); margin-bottom: 0.3rem; }
.gc5b-faq-item p { font-size: 1.2rem; color: var(--gc5b-text-dim); }

/* ---------------- Winners / Testimonials ---------------- */
.gc5b-winner-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.5rem; }
.gc5b-winner {
  background: var(--gc5b-bg-card); border-radius: 0.7rem; padding: 0.5rem 0.7rem;
  font-size: 1.15rem; color: var(--gc5b-text-dim);
  border-left: 3px solid var(--gc5b-accent);
}
.gc5b-winner b { color: var(--gc5b-gold); }

.gc5b-testi {
  background: var(--gc5b-bg-card); border-radius: 0.8rem; padding: 0.8rem 1rem;
  margin-bottom: 0.6rem; border: 1px solid rgba(72,209,204,0.1);
}
.gc5b-testi .gc5b-stars { color: var(--gc5b-gold); font-size: 1.2rem; }
.gc5b-testi p { color: var(--gc5b-text-dim); font-size: 1.2rem; margin: 0.3rem 0; }
.gc5b-testi b { color: var(--gc5b-accent2); }

/* ---------------- Payment / badges ---------------- */
.gc5b-pay-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.gc5b-pay {
  background: var(--gc5b-bg-card); border-radius: 0.6rem; padding: 0.4rem 0.7rem;
  font-size: 1.15rem; color: var(--gc5b-text); border: 1px solid rgba(72,209,204,0.12);
}

/* ---------------- CTA banners ---------------- */
.gc5b-cta {
  display: block; text-align: center; padding: 1rem;
  border-radius: var(--gc5b-radius); margin: 0.6rem 0;
  background: linear-gradient(135deg, #00B8D4, #66CDAA); color: #062023;
  font-weight: 700; font-size: 1.4rem; cursor: pointer;
}
.gc5b-cta:hover { opacity: .95; }
.gc5b-cta-text a { color: var(--gc5b-gold); font-weight: 700; }

/* ---------------- Footer ---------------- */
.gc5b-footer {
  background: #111515; border-top: 1px solid rgba(0,184,212,0.18);
  padding: 1.4rem 1rem 6rem; color: var(--gc5b-text-dim); font-size: 1.2rem;
}
.gc5b-footer h4 { color: var(--gc5b-text); font-size: 1.35rem; margin: 0.8rem 0 0.4rem; }
.gc5b-footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; }
.gc5b-footer-links a { color: var(--gc5b-text-dim); font-size: 1.15rem; }
.gc5b-footer-links a:hover { color: var(--gc5b-accent); }
.gc5b-footer-promos { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0; }
.gc5b-copy { margin-top: 0.8rem; font-size: 1.1rem; color: #6e8c8a; }

/* ---------------- Mobile bottom nav ---------------- */
.gc5b-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  display: flex; justify-content: space-around; align-items: stretch;
  background: linear-gradient(180deg, #141717 0%, #0c1010 100%);
  border-top: 1px solid rgba(0,184,212,0.25);
  height: 6rem; max-width: 430px; margin: 0 auto;
  padding-bottom: env(safe-area-inset-bottom);
}
.gc5b-bottom-nav a, .gc5b-bottom-nav button {
  flex: 1; min-width: 6rem; min-height: 6rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.15rem; background: transparent; border: none; color: var(--gc5b-text-dim);
  font-size: 1rem; cursor: pointer; transition: color .15s ease, transform .15s ease;
  text-decoration: none;
}
.gc5b-bottom-nav a:hover, .gc5b-bottom-nav button:hover { color: var(--gc5b-primary); transform: translateY(-1px); }
.gc5b-bottom-nav .gc5b-bn-icon { font-size: 2.2rem; line-height: 1; }
.gc5b-bottom-nav .material-icons.gc5b-bn-icon { font-size: 2.2rem; }
.gc5b-bottom-nav .gc5b-bn-label { font-size: 1rem; }
.gc5b-bottom-nav .gc5b-bn-active { color: var(--gc5b-primary); }
.gc5b-bn-promo { color: var(--gc5b-gold) !important; }

/* ---------------- Desktop / >=769px ---------------- */
@media (min-width: 769px) {
  .gc5b-bottom-nav { display: none; }
  body { max-width: 768px; }
}
@media (max-width: 768px) {
  main { padding-bottom: 7rem; }
}
@media (max-width: 360px) {
  .gc5b-game-grid { grid-template-columns: repeat(2, 1fr); }
}
