/* ==========================================================================
   jl50.homes - Core stylesheet (g5a5- prefix namespace)
   Mobile-first responsive layout for the Philippine gaming audience.
   Palette: #B22222 firebrick / #CD853F peru gold / #273746 dark slate
            #F08080 light coral highlight
   ========================================================================== */

:root {
  --g5a5-primary: #B22222;
  --g5a5-accent: #CD853F;
  --g5a5-bg: #273746;
  --g5a5-bg-deep: #1c2833;
  --g5a5-bg-soft: #324351;
  --g5a5-text: #f7f1ea;
  --g5a5-text-soft: #d4c8b8;
  --g5a5-coral: #F08080;
  --g5a5-gold: #f5c453;
  --g5a5-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --g5a5-radius: 14px;
  --g5a5-radius-sm: 8px;
  --g5a5-max: 430px;
  --g5a5-header-h: 58px;
  --g5a5-bottomnav-h: 62px;
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--g5a5-bg);
  color: var(--g5a5-text);
  line-height: 1.5;
  font-size: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--g5a5-coral); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.g5a5-wrapper { width: 100%; max-width: var(--g5a5-max); margin: 0 auto; padding: 0 12px; }
main { padding-bottom: 80px; }

/* ===================== Header ===================== */
.g5a5-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--g5a5-header-h);
  background: linear-gradient(180deg, #2a3a4a 0%, #1c2833 100%);
  border-bottom: 1px solid rgba(205, 133, 63, 0.35);
  z-index: 1000;
  box-shadow: var(--g5a5-shadow);
}
.g5a5-header-inner {
  height: 100%; max-width: var(--g5a5-max); margin: 0 auto;
  padding: 0 12px; display: flex; align-items: center; gap: 10px;
}
.g5a5-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 2rem; font-weight: 800; color: var(--g5a5-text);
  letter-spacing: 0.4px;
}
.g5a5-logo img { width: 30px; height: 30px; border-radius: 6px; }
.g5a5-logo .g5a5-logo-mark { color: var(--g5a5-gold); }
.g5a5-header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.g5a5-menu-toggle {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  color: var(--g5a5-text);
}
.g5a5-menu-toggle i { font-size: 22px; }

/* ===================== Buttons ===================== */
.g5a5-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px;
  font-size: 1.4rem; font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-height: 36px; border: none; cursor: pointer;
}
.g5a5-btn:active { transform: scale(0.96); }
.g5a5-btn-login {
  background: transparent; border: 1.5px solid var(--g5a5-accent);
  color: var(--g5a5-accent);
}
.g5a5-btn-register {
  background: linear-gradient(135deg, var(--g5a5-primary) 0%, #8e1b1b 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(178, 34, 34, 0.4);
}
.g5a5-btn-cta {
  background: linear-gradient(135deg, var(--g5a5-accent) 0%, #b06d2b 100%);
  color: #1c1c1c;
  padding: 12px 22px; font-size: 1.6rem;
  box-shadow: 0 6px 18px rgba(205, 133, 63, 0.45);
}
.g5a5-btn-block { width: 100%; padding: 14px; font-size: 1.6rem; }

/* ===================== Hero / Carousel ===================== */
.g5a5-hero { margin-top: var(--g5a5-header-h); padding: 12px 0 0; }
.g5a5-carousel {
  position: relative; width: 100%;
  border-radius: var(--g5a5-radius);
  overflow: hidden; aspect-ratio: 16 / 9;
  background: var(--g5a5-bg-deep);
  box-shadow: var(--g5a5-shadow);
}
.g5a5-carousel-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.6s ease; cursor: pointer;
}
.g5a5-carousel-slide.g5a5-slide-active { opacity: 1; }
.g5a5-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.g5a5-carousel-caption {
  position: absolute; left: 12px; bottom: 14px; right: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.g5a5-carousel-caption span {
  display: inline-block; background: var(--g5a5-primary); color: #fff;
  padding: 3px 9px; border-radius: 4px; font-size: 1.15rem; font-weight: 700;
  margin-bottom: 4px;
}
.g5a5-carousel-caption strong { color: #fff; font-size: 1.6rem; font-weight: 800; }
.g5a5-carousel-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.g5a5-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.45); cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}
.g5a5-carousel-dot.g5a5-dot-active {
  background: var(--g5a5-accent); width: 22px; border-radius: 4px;
}

/* ===================== Sections ===================== */
.g5a5-section { padding: 22px 0; }
.g5a5-section-title {
  font-size: 1.9rem; font-weight: 800;
  color: var(--g5a5-text); margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}
.g5a5-section-title i { color: var(--g5a5-accent); font-size: 2rem; }
.g5a5-section-sub { color: var(--g5a5-text-soft); font-size: 1.3rem; margin-bottom: 14px; }
.g5a5-h1 {
  font-size: 2.2rem; font-weight: 800; line-height: 1.3;
  color: var(--g5a5-text); margin-bottom: 6px;
}
.g5a5-h1 span { color: var(--g5a5-gold); }
.g5a5-lead { color: var(--g5a5-text-soft); font-size: 1.4rem; line-height: 1.6; }

/* ===================== Filter row ===================== */
.g5a5-filter-row {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 4px 0 12px; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.g5a5-filter-row::-webkit-scrollbar { display: none; }
.g5a5-filter-tab {
  flex: 0 0 auto; padding: 7px 14px;
  border-radius: 999px; font-size: 1.3rem; font-weight: 600;
  background: var(--g5a5-bg-soft); color: var(--g5a5-text-soft);
  border: 1px solid rgba(205, 133, 63, 0.25);
  white-space: nowrap; cursor: pointer;
}
.g5a5-filter-tab.g5a5-tab-active {
  background: var(--g5a5-primary); color: #fff;
  border-color: var(--g5a5-primary);
}

/* ===================== Game grid ===================== */
.g5a5-cat-block { margin-bottom: 24px; scroll-margin-top: 72px; }
.g5a5-cat-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.g5a5-cat-badge {
  background: linear-gradient(135deg, var(--g5a5-primary), #d44848);
  color: #fff; font-size: 1.2rem; font-weight: 700;
  padding: 4px 10px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.g5a5-cat-title { font-size: 1.7rem; font-weight: 700; color: var(--g5a5-coral); }
.g5a5-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.g5a5-game-card {
  background: var(--g5a5-bg-soft);
  border-radius: var(--g5a5-radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer; display: block;
}
.g5a5-game-card:active { transform: scale(0.96); }
.g5a5-game-thumb {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  background: #0e1620;
}
.g5a5-game-name {
  padding: 6px 6px 8px;
  font-size: 1.1rem; text-align: center;
  color: var(--g5a5-text-soft); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ===================== Cards ===================== */
.g5a5-card {
  background: var(--g5a5-bg-soft);
  border-radius: var(--g5a5-radius);
  padding: 16px; margin-bottom: 14px;
  border: 1px solid rgba(205, 133, 63, 0.15);
}
.g5a5-card h3 { font-size: 1.6rem; color: var(--g5a5-gold); margin-bottom: 6px; }
.g5a5-card p { color: var(--g5a5-text-soft); font-size: 1.35rem; line-height: 1.6; margin-bottom: 8px; }
.g5a5-card p:last-child { margin-bottom: 0; }
.g5a5-card ul { padding-left: 18px; color: var(--g5a5-text-soft); font-size: 1.35rem; }
.g5a5-card li { margin-bottom: 5px; line-height: 1.55; }
.g5a5-card ol { padding-left: 20px; color: var(--g5a5-text-soft); font-size: 1.35rem; }
.g5a5-card ol li { margin-bottom: 6px; line-height: 1.55; }

.g5a5-inline-link {
  color: var(--g5a5-coral); font-weight: 700;
  text-decoration: underline; text-decoration-style: dotted;
  text-underline-offset: 3px; cursor: pointer;
}

/* ===================== Feature grid ===================== */
.g5a5-feature-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.g5a5-feature-item {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--g5a5-bg-soft);
  padding: 12px; border-radius: var(--g5a5-radius-sm);
  border-left: 3px solid var(--g5a5-accent);
}
.g5a5-feature-item i { font-size: 2.2rem; color: var(--g5a5-accent); flex: 0 0 auto; margin-top: 2px; }
.g5a5-feature-item h4 { font-size: 1.45rem; color: var(--g5a5-text); margin-bottom: 3px; }
.g5a5-feature-item p { font-size: 1.3rem; color: var(--g5a5-text-soft); }

/* ===================== Stats / RTP ===================== */
.g5a5-stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.g5a5-stat {
  background: var(--g5a5-bg-deep);
  border-radius: var(--g5a5-radius-sm);
  padding: 10px; text-align: center;
  border: 1px solid rgba(205, 133, 63, 0.2);
}
.g5a5-stat-num { font-size: 1.9rem; font-weight: 800; color: var(--g5a5-gold); }
.g5a5-stat-label { font-size: 1.15rem; color: var(--g5a5-text-soft); }

/* ===================== Testimonials ===================== */
.g5a5-testi {
  background: var(--g5a5-bg-soft);
  border-radius: var(--g5a5-radius-sm);
  padding: 12px; margin-bottom: 8px;
  border-left: 3px solid var(--g5a5-coral);
}
.g5a5-testi-stars { color: var(--g5a5-gold); font-size: 1.2rem; margin-bottom: 4px; }
.g5a5-testi-text { font-size: 1.3rem; color: var(--g5a5-text-soft); font-style: italic; }
.g5a5-testi-name { font-size: 1.2rem; color: var(--g5a5-accent); font-weight: 700; margin-top: 4px; }

/* ===================== Chips ===================== */
.g5a5-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.g5a5-chip {
  background: var(--g5a5-bg-deep);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px; border-radius: 999px;
  font-size: 1.2rem; color: var(--g5a5-text-soft);
  display: inline-flex; align-items: center; gap: 4px;
}
.g5a5-chip i { color: var(--g5a5-accent); }

/* ===================== Winners ===================== */
.g5a5-winner {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--g5a5-bg-deep);
  padding: 8px 12px; border-radius: var(--g5a5-radius-sm);
  margin-bottom: 6px; font-size: 1.25rem;
}
.g5a5-winner-name { color: var(--g5a5-text); font-weight: 600; }
.g5a5-winner-game { color: var(--g5a5-text-soft); font-size: 1.15rem; }
.g5a5-winner-prize { color: var(--g5a5-gold); font-weight: 800; }

/* ===================== FAQ ===================== */
.g5a5-faq-item {
  background: var(--g5a5-bg-soft);
  border-radius: var(--g5a5-radius-sm);
  padding: 12px; margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.g5a5-faq-q { font-size: 1.4rem; font-weight: 700; color: var(--g5a5-coral); margin-bottom: 4px; }
.g5a5-faq-a { font-size: 1.3rem; color: var(--g5a5-text-soft); line-height: 1.55; }

/* ===================== CTA banner ===================== */
.g5a5-cta-banner {
  background: linear-gradient(135deg, var(--g5a5-primary) 0%, #6f1818 100%);
  border-radius: var(--g5a5-radius);
  padding: 18px 14px; text-align: center;
  border: 1px solid rgba(245, 196, 83, 0.3);
  box-shadow: var(--g5a5-shadow); margin-top: 8px;
}
.g5a5-cta-banner h3 { color: var(--g5a5-gold); font-size: 1.7rem; margin-bottom: 4px; }
.g5a5-cta-banner p { color: #ffe9d6; font-size: 1.3rem; margin-bottom: 12px; }

/* ===================== Footer ===================== */
.g5a5-footer {
  background: var(--g5a5-bg-deep);
  padding: 22px 0 90px;
  border-top: 1px solid rgba(205, 133, 63, 0.25);
}
.g5a5-footer-brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.7rem; font-weight: 800; color: var(--g5a5-text); margin-bottom: 8px;
}
.g5a5-footer-brand img { width: 28px; height: 28px; border-radius: 6px; }
.g5a5-footer-desc { color: var(--g5a5-text-soft); font-size: 1.3rem; line-height: 1.55; margin-bottom: 14px; }
.g5a5-footer-promos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.g5a5-footer-link {
  display: block; text-align: center;
  background: var(--g5a5-bg-soft); color: var(--g5a5-coral);
  padding: 9px 6px; border-radius: var(--g5a5-radius-sm);
  font-size: 1.25rem; font-weight: 600;
  border: 1px solid rgba(205, 133, 63, 0.2); cursor: pointer;
}
.g5a5-footer-sitemap { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 12px; }
.g5a5-footer-sitemap a { color: var(--g5a5-text-soft); font-size: 1.2rem; }
.g5a5-footer-sitemap a:hover { color: var(--g5a5-coral); }
.g5a5-footer-copy {
  text-align: center; color: var(--g5a5-text-soft);
  font-size: 1.15rem; padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

/* ===================== Mobile drawer ===================== */
.g5a5-mobile-menu {
  position: fixed; top: 0; right: -82%;
  width: 78%; height: 100vh;
  background: var(--g5a5-bg-deep);
  z-index: 9999;
  padding: 70px 16px 24px;
  transition: right 0.3s ease;
  box-shadow: -8px 0 28px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}
.g5a5-mobile-menu.g5a5-menu-open { right: 0; }
.g5a5-mobile-menu a, .g5a5-mobile-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 12px 10px;
  font-size: 1.5rem; color: var(--g5a5-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600; text-align: left;
}
.g5a5-mobile-menu a:active, .g5a5-mobile-menu button:active { background: rgba(205, 133, 63, 0.12); }
.g5a5-mobile-menu i { color: var(--g5a5-accent); font-size: 1.8rem; width: 22px; }
.g5a5-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.g5a5-menu-overlay.g5a5-overlay-visible { opacity: 1; pointer-events: auto; }

/* ===================== Bottom navigation ===================== */
.g5a5-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--g5a5-bottomnav-h);
  background: linear-gradient(180deg, #2a3a4a 0%, #131c25 100%);
  border-top: 1px solid rgba(205, 133, 63, 0.35);
  z-index: 1000;
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}
.g5a5-navbtn {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--g5a5-text-soft);
  font-size: 1.05rem; font-weight: 600;
  position: relative;
  transition: color 0.18s ease, transform 0.18s ease;
  min-width: 60px; min-height: 60px; cursor: pointer;
}
.g5a5-navbtn i { font-size: 22px; transition: transform 0.18s ease; }
.g5a5-navbtn:active { transform: scale(0.9); color: var(--g5a5-coral); }
.g5a5-navbtn.g5a5-navbtn-current { color: var(--g5a5-accent); }
.g5a5-navbtn.g5a5-navbtn-current i { transform: translateY(-2px); }
.g5a5-navbtn-promo {
  background: linear-gradient(180deg, rgba(178, 34, 34, 0.25), rgba(178, 34, 34, 0));
  color: var(--g5a5-coral);
}
.g5a5-navbtn-promo::before {
  content: ''; position: absolute; top: 0; left: 18%; right: 18%;
  height: 2px; background: var(--g5a5-primary); border-radius: 0 0 4px 4px;
}

/* ===================== Reveal animation ===================== */
.g5a5-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.g5a5-reveal.g5a5-revealed { opacity: 1; transform: translateY(0); }

/* ===================== Utility ===================== */
.g5a5-text-center { text-align: center; }
.g5a5-mt-12 { margin-top: 12px; }
.g5a5-mb-12 { margin-bottom: 12px; }
.g5a5-divider { height: 1px; background: rgba(255, 255, 255, 0.08); margin: 14px 0; }
.g5a5-pill {
  display: inline-block; background: rgba(178, 34, 34, 0.25);
  color: var(--g5a5-coral); font-size: 1.1rem; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
}

/* ===================== Responsive ===================== */
@media (min-width: 769px) {
  .g5a5-bottomnav { display: none; }
  .g5a5-menu-toggle { display: none; }
  .g5a5-wrapper { max-width: 960px; padding: 0 20px; }
  .g5a5-header-inner { max-width: 960px; }
  .g5a5-grid { grid-template-columns: repeat(6, 1fr); }
  .g5a5-footer { padding-bottom: 28px; }
  main { padding-bottom: 24px; }
  body { font-size: 1.6rem; }
}
@media (min-width: 481px) and (max-width: 768px) {
  .g5a5-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 360px) {
  .g5a5-grid { grid-template-columns: repeat(2, 1fr); }
  .g5a5-footer-promos { grid-template-columns: 1fr; }
}
