/*!
 * 888phl legit - layout stylesheet
 * Filename: css/layout-9261.css
 * Every custom class/variable uses the g618- prefix so the rules
 * never collide with utility libraries (Tailwind, Bootstrap) that
 * may be loaded later. Comments are written in English.
 */

/* ------------------------------------------------------------------ */
/* Design tokens                                                      */
/* ------------------------------------------------------------------ */
:root {
  --g618-bg: #0D1117;
  --g618-bg-alt: #10161e;
  --g618-surface: #161d27;
  --g618-surface-2: #1d2733;
  --g618-primary: #00CED1;
  --g618-primary-dark: #009aa1;
  --g618-pink: #FFC0CB;
  --g618-mint: #AFEEEE;
  --g618-powder: #B0E0E6;
  --g618-text: #F5F5F5;
  --g618-text-dim: #a9b2bd;
  --g618-border: rgba(175, 238, 238, 0.12);
  --g618-radius: 14px;
  --g618-radius-sm: 10px;
  --g618-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --g618-grad-promo: linear-gradient(135deg, #00CED1 0%, #AFEEEE 100%);
  --g618-grad-pink: linear-gradient(135deg, #FFC0CB 0%, #B0E0E6 100%);
}

/* ------------------------------------------------------------------ */
/* Reset & base                                                       */
/* ------------------------------------------------------------------ */
* { box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--g618-bg);
  color: var(--g618-text);
  font-size: 1.5rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--g618-primary); text-decoration: none; }
a:hover { color: var(--g618-pink); }
h1, h2, h3, h4 { line-height: 2.2rem; margin: 0 0 1rem; font-weight: 700; }

.g618-wrapper { width: 100%; max-width: 430px; margin: 0 auto; position: relative; }
.g618-container { padding: 0 1.4rem; }
main { padding-bottom: 92px; padding-top: 6.2rem; }

/* ------------------------------------------------------------------ */
/* Header                                                             */
/* ------------------------------------------------------------------ */
.g618-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13, 17, 23, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--g618-border);
}
.g618-header-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem; height: 6rem;
}
.g618-logo { display: flex; align-items: center; gap: 0.8rem; cursor: pointer; }
.g618-logo img { width: 30px; height: 30px; border-radius: 8px; }
.g618-logo-text {
  font-size: 1.7rem; font-weight: 800; color: var(--g618-mint);
  letter-spacing: 0.2px;
}
.g618-logo-text span { color: var(--g618-primary); }
.g618-header-actions { display: flex; align-items: center; gap: 0.7rem; }
.g618-icon-btn {
  background: transparent; border: 0; color: var(--g618-text);
  font-size: 2rem; cursor: pointer; padding: 0.5rem; line-height: 1;
  min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
}
.g618-icon-btn:hover { color: var(--g618-primary); }

/* Buttons */
.g618-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0.8rem 1.6rem; border: 0; border-radius: 30px;
  font-size: 1.4rem; font-weight: 700; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.g618-btn:active { transform: scale(0.96); }
.g618-btn-register { background: var(--g618-grad-promo); color: #062326; }
.g618-btn-register:hover { box-shadow: 0 6px 18px rgba(0, 206, 209, 0.45); color: #062326; }
.g618-btn-login { background: transparent; color: var(--g618-mint); border: 1px solid var(--g618-mint); }
.g618-btn-login:hover { background: rgba(175, 238, 238, 0.12); color: var(--g618-mint); }
.g618-btn-cta { background: var(--g618-grad-pink); color: #3a1320; font-size: 1.6rem; padding: 1rem 2rem; }
.g618-btn-cta:hover { box-shadow: 0 8px 22px rgba(255, 192, 203, 0.4); color: #3a1320; }
.g618-btn-block { display: flex; width: 100%; }

/* Mobile menu */
.g618-mobile-menu {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  background: var(--g618-bg-alt); border-top: 1px solid var(--g618-border);
}
.g618-mobile-menu--open { max-height: 420px; }
.g618-mobile-menu-inner { padding: 0.6rem 1.4rem 1rem; }
.g618-mobile-menu a {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 0.4rem; color: var(--g618-text);
  border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 1.5rem;
}
.g618-mobile-menu a:hover { color: var(--g618-primary); padding-left: 1rem; }
.g618-mobile-menu a i { color: var(--g618-primary); font-size: 1.8rem; }

/* ------------------------------------------------------------------ */
/* Carousel                                                           */
/* ------------------------------------------------------------------ */
.g618-carousel {
  position: relative; border-radius: var(--g618-radius); overflow: hidden;
  margin: 1.4rem 0; box-shadow: var(--g618-shadow);
}
.g618-carousel-track { position: relative; height: 180px; }
.g618-carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease;
  cursor: pointer;
}
.g618-carousel-slide--active { opacity: 1; }
.g618-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.g618-carousel-caption {
  position: absolute; left: 1.2rem; bottom: 1rem; right: 1.2rem;
  background: rgba(13,17,23,0.6); padding: 0.6rem 0.9rem; border-radius: 10px;
  font-size: 1.3rem; color: var(--g618-mint);
}
.g618-carousel-dots {
  position: absolute; bottom: 0.6rem; left: 0; right: 0;
  display: flex; justify-content: center; gap: 0.5rem;
}
.g618-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(245,245,245,0.4);
  border: 0; cursor: pointer; padding: 0;
}
.g618-carousel-dot--active { background: var(--g618-primary); width: 18px; border-radius: 6px; }

/* ------------------------------------------------------------------ */
/* Section headings                                                   */
/* ------------------------------------------------------------------ */
.g618-section { margin: 2.4rem 0; }
.g618-section-title {
  font-size: 1.9rem; color: var(--g618-text);
  display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.2rem;
}
.g618-section-title i { color: var(--g618-primary); }
.g618-section-title::after {
  content: ''; flex: 1; height: 2px;
  background: linear-gradient(90deg, var(--g618-primary), transparent);
}
.g618-h1 {
  font-size: 2.2rem; line-height: 2.6rem; color: var(--g618-mint);
  margin: 1.8rem 0 1.2rem;
}
.g618-h1 span { color: var(--g618-primary); }

/* ------------------------------------------------------------------ */
/* Game grid & cards                                                  */
/* ------------------------------------------------------------------ */
.g618-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem;
}
.g618-game-card {
  background: var(--g618-surface); border: 1px solid var(--g618-border);
  border-radius: var(--g618-radius-sm); padding: 0.8rem; text-align: center;
  cursor: pointer; transition: transform .15s ease, border-color .15s ease;
}
.g618-game-card:hover { transform: translateY(-3px); border-color: var(--g618-primary); }
.g618-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; margin-bottom: 0.5rem; }
.g618-game-card-name {
  font-size: 1.2rem; color: var(--g618-text-dim); line-height: 1.4rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Filter chips */
.g618-filter-row { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.4rem 0 1rem; }
.g618-filter-row::-webkit-scrollbar { display: none; }
.g618-filter-btn {
  flex: 0 0 auto; min-height: 36px; padding: 0.6rem 1.4rem; border-radius: 20px;
  background: var(--g618-surface); border: 1px solid var(--g618-border);
  color: var(--g618-text-dim); font-size: 1.3rem; cursor: pointer; white-space: nowrap;
}
.g618-filter-btn--active { background: var(--g618-grad-promo); color: #062326; border-color: transparent; }

/* ------------------------------------------------------------------ */
/* Info modules                                                       */
/* ------------------------------------------------------------------ */
.g618-card {
  background: var(--g618-surface); border: 1px solid var(--g618-border);
  border-radius: var(--g618-radius); padding: 1.6rem; margin-bottom: 1.2rem;
}
.g618-card h3 { color: var(--g618-mint); font-size: 1.6rem; }
.g618-card p { color: var(--g618-text-dim); margin: 0 0 1rem; line-height: 2.2rem; }
.g618-card .g618-btn { margin-top: 0.6rem; }

.g618-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
.g618-feature-item {
  background: var(--g618-surface-2); border-radius: var(--g618-radius-sm);
  padding: 1.2rem; text-align: center;
}
.g618-feature-item i { font-size: 2.4rem; color: var(--g618-primary); margin-bottom: 0.6rem; }
.g618-feature-item h4 { font-size: 1.4rem; color: var(--g618-text); margin: 0; }
.g618-feature-item p { font-size: 1.2rem; color: var(--g618-text-dim); margin: 0.4rem 0 0; }

/* Testimonials */
.g618-testimonial {
  background: var(--g618-surface-2); border-left: 3px solid var(--g618-primary);
  border-radius: var(--g618-radius-sm); padding: 1.2rem; margin-bottom: 0.9rem;
}
.g618-testimonial p { margin: 0 0 0.6rem; font-style: italic; color: var(--g618-text); }
.g618-testimonial .g618-author { font-size: 1.3rem; color: var(--g618-pink); font-weight: 700; }

/* Payment */
.g618-payment-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.g618-payment-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--g618-surface-2); border: 1px solid var(--g618-border);
  padding: 0.7rem 1.2rem; border-radius: 30px; font-size: 1.3rem; color: var(--g618-text-dim);
}
.g618-payment-chip i { color: var(--g618-primary); }

/* Winners */
.g618-winner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.8rem 1rem; background: var(--g618-surface-2);
  border-radius: var(--g618-radius-sm); margin-bottom: 0.6rem;
}
.g618-winner span { font-size: 1.3rem; }
.g618-winner .g618-amount { color: var(--g618-pink); font-weight: 700; }

/* FAQ */
.g618-faq-item {
  background: var(--g618-surface); border: 1px solid var(--g618-border);
  border-radius: var(--g618-radius-sm); margin-bottom: 0.8rem; overflow: hidden;
}
.g618-faq-q {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  padding: 1.2rem 1.4rem; color: var(--g618-text); font-size: 1.4rem; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.g618-faq-q i { color: var(--g618-primary); transition: transform .2s ease; }
.g618-faq-item--open .g618-faq-q i { transform: rotate(45deg); }
.g618-faq-a {
  max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 1.4rem;
}
.g618-faq-item--open .g618-faq-a { max-height: 320px; padding-bottom: 1.2rem; }
.g618-faq-a p { color: var(--g618-text-dim); margin: 0; line-height: 2.2rem; }

/* Promo CTA banner */
.g618-cta-banner {
  background: var(--g618-grad-promo); border-radius: var(--g618-radius);
  padding: 1.8rem 1.4rem; text-align: center; margin: 1.6rem 0; color: #062326;
}
.g618-cta-banner h3 { color: #062326; font-size: 1.9rem; margin: 0 0 0.5rem; }
.g618-cta-banner p { color: #0c3033; margin: 0 0 1rem; font-size: 1.4rem; }
.g618-cta-banner .g618-btn-cta { background: #0D1117; color: var(--g618-mint); }

/* App download */
.g618-app-banner {
  background: var(--g618-grad-pink); border-radius: var(--g618-radius);
  padding: 1.6rem; display: flex; align-items: center; gap: 1.2rem; margin: 1.4rem 0;
}
.g618-app-banner img { width: 72px; height: 72px; border-radius: 16px; }
.g618-app-banner h3 { color: #3a1320; font-size: 1.6rem; margin: 0; }
.g618-app-banner p { color: #5a2640; font-size: 1.3rem; margin: 0.3rem 0 0.8rem; }
.g618-app-banner .g618-btn { background: #0D1117; color: var(--g618-pink); }

/* Text links inside content */
.g618-text-link { color: var(--g618-pink); font-weight: 700; text-decoration: underline; }

/* ------------------------------------------------------------------ */
/* Footer                                                             */
/* ------------------------------------------------------------------ */
.g618-footer {
  background: var(--g618-bg-alt); border-top: 1px solid var(--g618-border);
  padding: 2rem 1.4rem 1rem; margin-top: 2rem;
}
.g618-footer-brand p { color: var(--g618-text-dim); font-size: 1.3rem; line-height: 2rem; }
.g618-footer-promo { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.2rem 0; }
.g618-footer-promo .g618-btn { flex: 1 1 auto; min-height: 40px; font-size: 1.3rem; padding: 0.6rem 1rem; }
.g618-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin: 1.2rem 0; }
.g618-footer-links a { color: var(--g618-text-dim); font-size: 1.3rem; }
.g618-footer-links a:hover { color: var(--g618-primary); }
.g618-copyright {
  text-align: center; color: var(--g618-text-dim); font-size: 1.2rem;
  border-top: 1px solid var(--g618-border); padding-top: 1rem; margin-top: 1rem;
}

/* ------------------------------------------------------------------ */
/* Mobile bottom navigation                                           */
/* ------------------------------------------------------------------ */
.g618-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13, 17, 23, 0.98); border-top: 1px solid var(--g618-border);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 62px;
}
.g618-bottom-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px; background: transparent; border: 0;
  color: var(--g618-text-dim); cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.2rem; padding: 0.3rem;
  transition: color .15s ease, transform .15s ease;
}
.g618-bottom-nav-btn i { font-size: 22px; }
.g618-bottom-nav-btn span { font-size: 11px; }
.g618-bottom-nav-btn:active { transform: scale(0.92); }
.g618-bottom-nav-btn--active { color: var(--g618-primary); }
.g618-bottom-nav-btn--active i { color: var(--g618-pink); }

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

@media (min-width: 769px) {
  .g618-wrapper { max-width: 960px; }
  main { padding-bottom: 2rem; }
  .g618-bottom-nav { display: none; }
  .g618-game-grid { grid-template-columns: repeat(6, 1fr); }
  .g618-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .g618-carousel-track { height: 320px; }
  .g618-desktop-nav {
    display: flex; gap: 1.4rem; align-items: center;
  }
  .g618-desktop-nav a { color: var(--g618-text-dim); font-size: 1.4rem; }
  .g618-desktop-nav a:hover { color: var(--g618-primary); }
  .g618-hamburger { display: none; }
}
