/* =====================================================================
   888phl apk - Core Stylesheet (layout-5534.css)
   Mobile-first HTML5 casino portal design.
   All custom classes use the g345- prefix for namespace isolation.
   Palette: #1B263B | #F5DEB3 | #FF1493 | #CD853F
   ===================================================================== */

:root {
  --g345-primary: #1B263B;        /* deep navy background */
  --g345-secondary: #F5DEB3;      /* warm wheat text */
  --g345-accent: #FF1493;         /* vivid pink CTA */
  --g345-gold: #CD853F;           /* peru gold */
  --g345-dark: #111A2A;
  --g345-card: #18233A;
  --g345-card-2: #21304E;
  --g345-muted: #9AA8C0;
  --g345-border: #2A3A5C;
  --g345-success: #2ECC71;
  --g345-warning: #F1C40F;
  --g345-radius: 12px;
  --g345-radius-lg: 18px;
  --g345-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --g345-shadow-pink: 0 8px 22px rgba(255, 20, 147, 0.35);
  --g345-header-h: 62px;
  --g345-bottom-h: 62px;
  --g345-max: 430px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
  background: var(--g345-primary);
  color: var(--g345-secondary);
  line-height: 1.5;
  font-size: 1.4rem;
  max-width: var(--g345-max);
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--g345-secondary); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }

/* ---------- Layout helpers ---------- */
.g345-container { width: 100%; max-width: var(--g345-max); margin: 0 auto; padding: 0 14px; }
.g345-wrapper { padding: 18px 14px; }
.g345-section { padding: 24px 0; }
.g345-grid { display: grid; gap: 10px; }

/* ---------- Header ---------- */
.g345-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--g345-dark), var(--g345-primary));
  border-bottom: 1px solid var(--g345-border);
  transition: all .25s ease;
}
.g345-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--g345-header-h); padding: 0 12px;
  max-width: var(--g345-max); margin: 0 auto;
}
.g345-header-compact { box-shadow: var(--g345-shadow); }
.g345-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 1.6rem; color: var(--g345-secondary);
}
.g345-logo img { width: 28px; height: 28px; border-radius: 6px; }
.g345-logo span { background: linear-gradient(90deg, var(--g345-accent), var(--g345-gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.g345-actions { display: flex; align-items: center; gap: 8px; }
.g345-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px; font-size: 1.3rem;
  font-weight: 600; transition: transform .15s ease, box-shadow .2s ease;
}
.g345-btn:active { transform: scale(0.96); }
.g345-btn-login { background: var(--g345-card-2); color: var(--g345-secondary); border: 1px solid var(--g345-border); }
.g345-btn-register { background: linear-gradient(135deg, var(--g345-accent), var(--g345-gold)); color: #fff; box-shadow: var(--g345-shadow-pink); }

.g345-toggle {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--g345-card-2); color: var(--g345-secondary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.g345-toggle-active { background: var(--g345-accent); color: #fff; }

/* ---------- Mobile slide-down menu ---------- */
.g345-mobile-menu {
  position: fixed; top: var(--g345-header-h); left: 0; right: 0; z-index: 9999;
  background: var(--g345-dark);
  max-height: 0; overflow: hidden; transition: max-height .25s ease;
  border-bottom: 1px solid var(--g345-border);
}
.g345-menu-active { max-height: 520px; overflow-y: auto; }
.g345-menu-list { list-style: none; padding: 8px 16px 16px; }
.g345-menu-list li a {
  display: block; padding: 12px 8px; font-size: 1.4rem;
  color: var(--g345-secondary); border-bottom: 1px solid var(--g345-border);
}
.g345-menu-list li a:hover { color: var(--g345-accent); }
.g345-menu-list .g345-menu-group-title {
  padding: 14px 8px 6px; font-size: 1.1rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--g345-gold); font-weight: 700;
}

/* ---------- Main content padding ---------- */
main { padding-top: calc(var(--g345-header-h) + 6px); }
@media (max-width: 768px) { main { padding-bottom: calc(var(--g345-bottom-h) + 12px); } }

/* ---------- Hero carousel ---------- */
.g345-carousel {
  position: relative; border-radius: var(--g345-radius-lg);
  overflow: hidden; box-shadow: var(--g345-shadow); margin: 14px;
  aspect-ratio: 16 / 9;
}
.g345-carousel-track { position: relative; width: 100%; height: 100%; }
.g345-carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity var(--g345-carousel-transition, 600ms) ease;
  display: flex; align-items: flex-end;
}
.g345-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.g345-slide-active { opacity: 1; }
.g345-carousel-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  padding: 36px 14px 12px;
}
.g345-carousel-caption h2 { font-size: 1.6rem; color: #fff; margin-bottom: 6px; }
.g345-carousel-caption p { font-size: 1.25rem; color: var(--g345-secondary); }
.g345-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,.45); color: #fff; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
}
.g345-carousel-arrow:hover { background: var(--g345-accent); }
.g345-arrow-prev { left: 8px; }
.g345-arrow-next { right: 8px; }
.g345-carousel-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 3;
}
.g345-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.4); cursor: pointer; transition: all .2s;
}
.g345-dot-active { background: var(--g345-accent); width: 22px; border-radius: 6px; }

/* ---------- Section heading ---------- */
.g345-section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 14px 8px;
}
.g345-section-head h2 { font-size: 1.8rem; color: var(--g345-secondary); }
.g345-section-head h2 span { color: var(--g345-accent); }
.g345-section-link { font-size: 1.25rem; color: var(--g345-gold); }

/* ---------- Game grid ---------- */
.g345-game-section { padding: 6px 0 18px; }
.g345-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  padding: 0 14px;
}
.g345-game-card {
  background: var(--g345-card); border: 1px solid var(--g345-border);
  border-radius: var(--g345-radius); overflow: hidden; text-align: center;
  transition: transform .15s ease, box-shadow .2s ease;
}
.g345-game-card:active { transform: scale(0.97); }
.g345-game-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-bottom: 1px solid var(--g345-border);
}
.g345-game-card .g345-game-name {
  display: block; padding: 6px 4px; font-size: 1.15rem;
  color: var(--g345-secondary); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.g345-game-card:hover { box-shadow: var(--g345-shadow-pink); border-color: var(--g345-accent); }

/* ---------- Info / promo cards ---------- */
.g345-card {
  background: var(--g345-card); border: 1px solid var(--g345-border);
  border-radius: var(--g345-radius-lg); padding: 18px 16px; margin: 12px 14px;
  box-shadow: var(--g345-shadow);
}
.g345-card h3 { font-size: 1.5rem; color: var(--g345-gold); margin-bottom: 10px; }
.g345-card p { font-size: 1.3rem; color: var(--g345-secondary); margin-bottom: 10px; }
.g345-card ul { list-style: none; padding-left: 0; }
.g345-card li { padding: 6px 0 6px 22px; position: relative; font-size: 1.3rem; color: var(--g345-secondary); }
.g345-card li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--g345-success); position: absolute; left: 0; }

/* ---------- Promo banner ---------- */
.g345-promo-banner {
  background: linear-gradient(135deg, var(--g345-accent), var(--g345-gold));
  color: #fff; padding: 22px 16px; margin: 14px; border-radius: var(--g345-radius-lg);
  text-align: center; box-shadow: var(--g345-shadow-pink);
}
.g345-promo-banner h3 { font-size: 1.7rem; margin-bottom: 8px; }
.g345-promo-banner p { font-size: 1.25rem; margin-bottom: 14px; opacity: .92; }
.g345-promo-cta {
  display: inline-block; background: #fff; color: var(--g345-accent);
  padding: 10px 24px; border-radius: 999px; font-weight: 700; font-size: 1.3rem;
}

/* ---------- Inline promo link ---------- */
.g345-promo-link {
  color: var(--g345-accent); font-weight: 700; cursor: pointer;
  border-bottom: 1px dashed var(--g345-accent);
}
.g345-promo-link:hover { color: var(--g345-gold); border-bottom-color: var(--g345-gold); }

/* ---------- Text content ---------- */
.g345-content { padding: 10px 14px 24px; font-size: 1.3rem; color: var(--g345-secondary); }
.g345-content h2 { font-size: 1.7rem; color: #fff; margin: 18px 0 8px; padding-bottom: 4px; border-bottom: 2px solid var(--g345-accent); display: inline-block; }
.g345-content h3 { font-size: 1.45rem; color: var(--g345-gold); margin: 14px 0 6px; }
.g345-content p { margin-bottom: 10px; line-height: 1.6; }
.g345-content a { color: var(--g345-accent); }
.g345-content ul, .g345-content ol { padding-left: 20px; margin-bottom: 10px; }
.g345-content li { margin-bottom: 4px; }

/* ---------- Testimonials ---------- */
.g345-testimonial {
  background: var(--g345-card-2); border-radius: var(--g345-radius);
  padding: 14px 16px; margin: 10px 14px; border-left: 3px solid var(--g345-accent);
}
.g345-testimonial .g345-quote { font-size: 1.3rem; color: var(--g345-secondary); margin-bottom: 6px; }
.g345-testimonial .g345-author { font-size: 1.2rem; color: var(--g345-gold); font-weight: 600; }

/* ---------- Winners strip ---------- */
.g345-winners {
  background: var(--g345-dark); padding: 12px 14px; margin: 14px;
  border-radius: var(--g345-radius); border: 1px solid var(--g345-border);
}
.g345-winner-item { display: flex; justify-content: space-between; padding: 6px 0; font-size: 1.25rem; border-bottom: 1px dashed var(--g345-border); }
.g345-winner-item:last-child { border-bottom: none; }
.g345-winner-name { color: var(--g345-gold); }
.g345-winner-amount { color: var(--g345-success); font-weight: 700; }

/* ---------- Payment row ---------- */
.g345-payment-row { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 14px; }
.g345-payment-chip {
  background: var(--g345-card-2); padding: 8px 14px; border-radius: 999px;
  font-size: 1.2rem; border: 1px solid var(--g345-border); color: var(--g345-secondary);
}

/* ---------- FAQ ---------- */
.g345-faq { border: 1px solid var(--g345-border); border-radius: var(--g345-radius); margin: 10px 14px; overflow: hidden; }
.g345-faq summary {
  padding: 12px 14px; font-size: 1.35rem; cursor: pointer;
  background: var(--g345-card); color: var(--g345-secondary); list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.g345-faq summary::after { content: "+"; font-size: 1.8rem; color: var(--g345-accent); }
.g345-faq[open] summary::after { content: "-"; }
.g345-faq-body { padding: 12px 14px; font-size: 1.25rem; color: var(--g345-secondary); background: var(--g345-card-2); }

/* ---------- Footer ---------- */
.g345-footer {
  background: var(--g345-dark); padding: 24px 14px;
  border-top: 1px solid var(--g345-border); margin-top: 10px;
}
.g345-footer-brand { font-size: 1.3rem; color: var(--g345-secondary); margin-bottom: 14px; line-height: 1.6; }
.g345-footer-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.g345-footer-link {
  background: var(--g345-card-2); border: 1px solid var(--g345-border);
  padding: 6px 12px; border-radius: 8px; font-size: 1.15rem; color: var(--g345-secondary);
}
.g345-footer-link:hover { color: var(--g345-accent); border-color: var(--g345-accent); }
.g345-footer-bottom { font-size: 1.15rem; color: var(--g345-muted); border-top: 1px solid var(--g345-border); padding-top: 12px; }

/* ---------- Bottom navigation ---------- */
.g345-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--g345-bottom-h);
  background: linear-gradient(180deg, var(--g345-primary), var(--g345-dark));
  border-top: 1px solid var(--g345-border);
  display: flex; justify-content: space-around; align-items: center;
  box-shadow: 0 -4px 16px rgba(0,0,0,.4);
}
.g345-bottom-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--g345-muted); font-size: 1.05rem; background: transparent;
  transition: color .2s ease, transform .15s ease;
}
.g345-bottom-nav-btn .g345-nav-icon { font-size: 2.2rem; line-height: 1; }
.g345-bottom-nav-btn .material-icons,
.g345-bottom-nav-btn .ion-icon { font-size: 2.2rem; }
.g345-bottom-nav-btn:active { transform: scale(0.92); color: var(--g345-accent); }
.g345-bottom-nav-btn:hover { color: var(--g345-accent); }
.g345-nav-current { color: var(--g345-accent); }
.g345-nav-current .g345-nav-icon,
.g345-nav-current .material-icons { color: var(--g345-accent); }

/* ---------- Reveal animation ---------- */
.g345-reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.g345-revealed { opacity: 1; transform: translateY(0); }

/* ---------- Desktop rules ---------- */
@media (min-width: 769px) {
  .g345-bottom-nav { display: none; }
  .g345-toggle { display: none; }
  .g345-desktop-nav { display: flex; gap: 18px; }
  .g345-desktop-nav a { font-size: 1.25rem; color: var(--g345-secondary); }
  .g345-desktop-nav a:hover { color: var(--g345-accent); }
}
@media (max-width: 768px) { .g345-desktop-nav { display: none; } }
