/* ============================================
   ji3.click - Common Styles (theme.css)
   All custom classes use prefix: w5149-
   Palette: #7FFF00 | #FFB6C1 | #FF4500 | #004D40 | #2D2D2D
   Mobile-first. Max width 430px viewport optimised.
   ============================================ */

:root {
  --w5149-primary: #7FFF00;
  --w5149-pink: #FFB6C1;
  --w5149-orange: #FF4500;
  --w5149-deep: #004D40;
  --w5149-bg: #2D2D2D;
  --w5149-text: #F5F5F5;
  --w5149-muted: #B8B8B8;
  --w5149-card: #1F1F1F;
  --w5149-border: #3A3A3A;
  --w5149-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  --w5149-radius: 14px;
}

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

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

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

body.w5149-no-scroll { overflow: hidden; }

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

.w5149-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.4rem;
}

.w5149-wrapper { padding-top: 6rem; padding-bottom: 1rem; }

/* ===== Header ===== */
.w5149-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #003832 0%, #004D40 100%);
  border-bottom: 2px solid var(--w5149-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.w5149-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.2rem;
  min-height: 5.6rem;
}
.w5149-brand {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--w5149-primary);
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: 0.5px;
}
.w5149-brand img { width: 3rem; height: 3rem; border-radius: 6px; }
.w5149-brand .w5149-brand-dot { color: var(--w5149-orange); }

.w5149-header-actions { display: flex; align-items: center; gap: 0.5rem; }

.w5149-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.35rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  transition: transform 0.15s ease, filter 0.15s ease;
  min-height: 3.6rem;
  line-height: 1;
}
.w5149-btn:active { transform: scale(0.96); }
.w5149-btn-primary { background: var(--w5149-primary); color: #0E2A0E; }
.w5149-btn-secondary { background: var(--w5149-orange); color: #fff; }
.w5149-btn-outline {
  background: transparent; color: var(--w5149-primary);
  border: 2px solid var(--w5149-primary);
}
.w5149-btn-block { display: flex; width: 100%; }

.w5149-menu-btn {
  background: transparent; border: none; color: var(--w5149-primary);
  font-size: 2.2rem; cursor: pointer; padding: 0.4rem 0.8rem;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ===== Mobile slide menu ===== */
.w5149-mobile-menu {
  position: fixed;
  top: 0; right: -85%;
  width: 80%; max-width: 320px;
  height: 100%;
  background: #15302C;
  z-index: 9999;
  padding: 6rem 2rem 2rem;
  transform: translateX(0);
  transition: right 0.28s ease;
  overflow-y: auto;
  box-shadow: -6px 0 20px rgba(0,0,0,0.5);
}
.w5149-mobile-menu.w5149-menu-open { right: 0; }
.w5149-mobile-menu h3 {
  color: var(--w5149-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.w5149-mobile-menu a {
  display: block;
  padding: 1rem 0.4rem;
  color: var(--w5149-text);
  border-bottom: 1px solid rgba(127,255,0,0.12);
  font-size: 1.45rem;
}
.w5149-mobile-menu a:hover { color: var(--w5149-primary); text-decoration: none; }
.w5149-menu-close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  background: transparent; border: none; color: #fff;
  font-size: 2.4rem; cursor: pointer;
}
.w5149-menu-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9990;
}
.w5149-menu-overlay.w5149-menu-open { display: block; }

/* ===== Hero / Carousel ===== */
.w5149-hero {
  margin: 1rem 0 0;
}
.w5149-carousel {
  position: relative;
  border-radius: var(--w5149-radius);
  overflow: hidden;
  box-shadow: var(--w5149-shadow);
  background: #111;
}
.w5149-slide { display: none; position: relative; }
.w5149-slide:first-child { display: block; }
.w5149-slide img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; cursor: pointer; }
.w5149-slide-cap {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(0,0,0,0.6);
  color: #fff; padding: 0.5rem 1rem; border-radius: 8px;
  font-size: 1.3rem; font-weight: 700;
}
.w5149-dots {
  display: flex; gap: 0.6rem; justify-content: center;
  padding: 0.8rem 0;
}
.w5149-dot {
  width: 1rem; height: 1rem; border-radius: 50%;
  background: #555; cursor: pointer; border: none;
}
.w5149-dot.w5149-dot-active { background: var(--w5149-primary); }

/* ===== Section titles ===== */
.w5149-section { margin: 2.2rem 0 1.2rem; }
.w5149-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.w5149-section-title {
  font-size: 1.9rem; font-weight: 800; color: var(--w5149-primary);
  border-left: 4px solid var(--w5149-orange);
  padding-left: 0.8rem;
}
.w5149-more { font-size: 1.25rem; color: var(--w5149-pink); }

h1.w5149-h1 {
  font-size: 2.2rem; font-weight: 800;
  color: #fff; margin: 1.5rem 0 0.8rem;
  line-height: 1.25;
}
h2.w5149-h2 {
  font-size: 1.9rem; font-weight: 700; color: var(--w5149-primary);
  margin: 1.6rem 0 0.8rem;
}
h3.w5149-h3 {
  font-size: 1.6rem; font-weight: 700; color: var(--w5149-pink);
  margin: 1.2rem 0 0.6rem;
}
p { margin-bottom: 1rem; color: var(--w5149-text); }
.w5149-muted { color: var(--w5149-muted); }

/* ===== Filter tabs (visual only) ===== */
.w5149-filters {
  display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 0.8rem 0 1.2rem;
}
.w5149-filter-tab {
  background: var(--w5149-card); color: var(--w5149-text);
  border: 1px solid var(--w5149-border);
  padding: 0.5rem 1.1rem; border-radius: 999px;
  font-size: 1.25rem; cursor: pointer;
}
.w5149-filter-tab.w5149-filter-active {
  background: var(--w5149-primary); color: #0E2A0E; border-color: var(--w5149-primary);
}

/* ===== Game grid ===== */
.w5149-game-group { margin-bottom: 1.6rem; }
.w5149-group-title {
  font-size: 1.5rem; font-weight: 700; color: var(--w5149-pink);
  margin-bottom: 0.8rem; padding-bottom: 0.4rem;
  border-bottom: 1px dashed var(--w5149-border);
}
.w5149-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.w5149-game-card {
  background: var(--w5149-card);
  border: 1px solid var(--w5149-border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
  display: block;
}
.w5149-game-card:hover { transform: translateY(-2px); border-color: var(--w5149-primary); text-decoration: none; }
.w5149-game-card img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #111;
}
.w5149-game-name {
  font-size: 1.15rem; color: var(--w5149-text); text-align: center;
  padding: 0.5rem 0.3rem; font-weight: 600; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ===== Generic cards / features ===== */
.w5149-card {
  background: var(--w5149-card);
  border: 1px solid var(--w5149-border);
  border-radius: var(--w5149-radius);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--w5149-shadow);
}
.w5149-card-accent { border-top: 3px solid var(--w5149-primary); }
.w5149-feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin: 0.8rem 0;
}
.w5149-feature {
  background: #181818;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--w5149-border);
}
.w5149-feature .icon { font-size: 2.2rem; color: var(--w5149-orange); display: block; margin-bottom: 0.3rem; }
.w5149-feature b { color: var(--w5149-primary); font-size: 1.3rem; }
.w5149-feature p { font-size: 1.2rem; color: var(--w5149-muted); margin: 0; }

/* ===== Promo CTA banner ===== */
.w5149-cta {
  background: linear-gradient(135deg, #FF4500 0%, #004D40 100%);
  border-radius: var(--w5149-radius);
  padding: 1.6rem;
  text-align: center;
  margin: 1.6rem 0;
  color: #fff;
  box-shadow: var(--w5149-shadow);
}
.w5149-cta h2 { color: #fff; margin-top: 0; }
.w5149-cta p { color: #FFE9E0; }
.w5149-link-text { color: var(--w5149-primary); font-weight: 800; }

/* ===== RTP table ===== */
.w5149-rtp-table {
  width: 100%; border-collapse: collapse; font-size: 1.25rem;
  margin-top: 0.6rem;
}
.w5149-rtp-table th, .w5149-rtp-table td {
  border: 1px solid var(--w5149-border);
  padding: 0.7rem 0.8rem; text-align: left;
}
.w5149-rtp-table th { background: #003832; color: var(--w5149-primary); }
.w5149-rtp-table tr:nth-child(even) td { background: #1A1A1A; }

/* ===== Testimonials ===== */
.w5149-testimonials { display: grid; gap: 0.8rem; }
.w5149-testimonial {
  background: #181818; border-left: 3px solid var(--w5149-pink);
  border-radius: 8px; padding: 1rem 1.2rem;
}
.w5149-testimonial .who { color: var(--w5149-primary); font-weight: 700; font-size: 1.3rem; }
.w5149-testimonial .stars { color: #FFD700; font-size: 1.2rem; }

/* ===== Payment methods ===== */
.w5149-pay-row {
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center;
  margin-top: 0.8rem;
}
.w5149-pay-chip {
  background: #fff; color: #004D40; font-weight: 700;
  padding: 0.5rem 1rem; border-radius: 8px; font-size: 1.2rem;
  display: inline-flex; align-items: center; gap: 0.3rem;
}

/* ===== Winners ===== */
.w5149-winner {
  display: flex; justify-content: space-between;
  padding: 0.6rem 0; border-bottom: 1px dashed var(--w5149-border);
  font-size: 1.3rem;
}
.w5149-winner .amt { color: var(--w5149-primary); font-weight: 800; }

/* ===== FAQ accordion ===== */
.w5149-faq { border: 1px solid var(--w5149-border); border-radius: 10px; margin-bottom: 0.7rem; overflow: hidden; background: #181818; }
.w5149-faq-q {
  width: 100%; text-align: left; background: transparent; color: #fff;
  border: none; padding: 1rem 1.2rem; font-size: 1.4rem; cursor: pointer; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center;
}
.w5149-faq-q .w5149-faq-icon { color: var(--w5149-primary); }
.w5149-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; padding: 0 1.2rem; color: var(--w5149-muted); }
.w5149-faq.w5149-faq-open .w5149-faq-a { max-height: 400px; padding: 0 1.2rem 1rem; }

/* ===== Footer ===== */
.w5149-footer {
  background: #15302C;
  border-top: 3px solid var(--w5149-primary);
  padding: 2.2rem 1.4rem 9rem;
  margin-top: 2rem;
  color: var(--w5149-muted);
}
.w5149-footer-inner { max-width: 430px; margin: 0 auto; }
.w5149-footer h4 { color: var(--w5149-primary); font-size: 1.5rem; margin-bottom: 0.6rem; }
.w5149-footer p { font-size: 1.25rem; line-height: 1.6; color: var(--w5149-muted); }
.w5149-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; margin: 0.8rem 0 1rem;
}
.w5149-footer-links a { color: var(--w5149-text); font-size: 1.2rem; }
.w5149-footer-links a:hover { color: var(--w5149-primary); }
.w5149-footer-promos {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.8rem 0;
}
.w5149-footer-copy {
  border-top: 1px solid rgba(127,255,0,0.18);
  padding-top: 1rem; margin-top: 1rem;
  font-size: 1.15rem; color: #888;
}

/* ===== Bottom nav ===== */
.w5149-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 6.2rem;
  background: linear-gradient(180deg, #003832 0%, #002824 100%);
  border-top: 2px solid var(--w5149-primary);
  display: flex; justify-content: space-around; align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -3px 14px rgba(0,0,0,0.5);
}
.w5149-bottom-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; cursor: pointer; padding: 0.4rem 0;
  transition: color 0.15s ease, transform 0.15s ease;
}
.w5149-bottom-nav-btn .icon { font-size: 2.2rem; color: var(--w5149-pink); }
.w5149-bottom-nav-btn .label { font-size: 1.05rem; color: #fff; font-weight: 600; }
.w5149-bottom-nav-btn:active { transform: scale(0.92); }
.w5149-bottom-nav-btn.w5149-nav-current .icon { color: var(--w5149-primary); }
.w5149-bottom-nav-btn.w5149-nav-current .label { color: var(--w5149-primary); }

/* ===== Back to top ===== */
.w5149-top-btn {
  position: fixed; right: 1.2rem; bottom: 7.2rem;
  width: 4rem; height: 4rem; border-radius: 50%;
  background: var(--w5149-orange); color: #fff;
  border: none; font-size: 1.8rem; cursor: pointer;
  display: none; z-index: 900;
  box-shadow: var(--w5149-shadow);
}
.w5149-top-btn.w5149-top-show { display: block; }

/* ===== Desktop layout ===== */
@media (min-width: 769px) {
  body { background: #1A1A1A; }
  .w5149-container, .w5149-footer-inner, .w5149-header-inner { max-width: 720px; }
  .w5149-grid { grid-template-columns: repeat(5, 1fr); }
  .w5149-bottom-nav { display: none; }
  .w5149-footer { padding-bottom: 2.2rem; }
  .w5149-feature-row { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1025px) {
  .w5149-container, .w5149-footer-inner, .w5149-header-inner { max-width: 960px; }
}

/* Mobile bottom padding so content is never hidden by nav */
@media (max-width: 768px) {
  main.w5149-main { padding-bottom: 7rem; }
}
