/*
 * jljl33 layout stylesheet (en-PH)
 * Mobile-first: max container width 430px. All classes use the w431e- prefix.
 * Palette: #FF4500 (primary) | #A0522D (secondary) | #212F3D (dark bg)
 */

:root {
  --w431e-primary: #FF4500;
  --w431e-primary-dark: #c2370a;
  --w431e-secondary: #A0522D;
  --w431e-bg: #212F3D;
  --w431e-bg-2: #1a2530;
  --w431e-bg-3: #2a3a4a;
  --w431e-text: #f5f0e8;
  --w431e-text-muted: #b8b3a8;
  --w431e-gold: #f5b54a;
  --w431e-card: #2c3b4a;
  --w431e-border: #3a4a5a;
  --w431e-radius: 12px;
  --w431e-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --w431e-maxw: 430px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

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

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Roboto", system-ui, -apple-system, sans-serif;
  background: var(--w431e-bg);
  color: var(--w431e-text);
  line-height: 1.5rem;
  font-size: 1.6rem;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }

a { color: var(--w431e-primary); text-decoration: none; }

.w431e-skip {
  position: absolute; left: -999px; top: 0;
  background: var(--w431e-primary); color: #fff; padding: 8px 14px; z-index: 99999;
}
.w431e-skip:focus { left: 8px; top: 8px; }

/* ===== Layout containers ===== */
.w431e-wrapper {
  width: 100%;
  max-width: var(--w431e-maxw);
  margin: 0 auto;
  padding: 0 12px;
  position: relative;
}

main.w431e-main {
  padding-top: 70px;
  padding-bottom: 90px;
}

.w431e-section { padding: 26px 0 8px; }
.w431e-section-alt {
  background: linear-gradient(180deg, var(--w431e-bg-2), var(--w431e-bg));
  margin: 18px -12px 0;
  padding: 26px 12px 22px;
  border-top: 1px solid var(--w431e-border);
}

.w431e-eyebrow {
  display: inline-block;
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--w431e-gold);
  font-weight: 700;
  margin-bottom: 6px;
}

h1, h2, h3 { line-height: 1.3; margin: 0 0 12px; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.55rem; }

p { margin: 0 0 12px; color: var(--w431e-text); }

/* ===== Header ===== */
.w431e-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(33, 47, 61, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--w431e-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.w431e-header-inner {
  max-width: var(--w431e-maxw);
  margin: 0 auto;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.w431e-logo {
  display: flex; align-items: center; gap: 8px;
  flex: 1; min-width: 0;
  color: var(--w431e-text);
}
.w431e-logo img { width: 32px; height: 32px; border-radius: 8px; }
.w431e-logo b {
  font-size: 1.55rem;
  letter-spacing: 0.5px;
  color: var(--w431e-primary);
  font-weight: 800;
}
.w431e-logo span { font-size: 1.1rem; color: var(--w431e-text-muted); }

.w431e-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 1.25rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  min-height: 40px;
  line-height: 1;
}
.w431e-btn-primary {
  background: linear-gradient(135deg, var(--w431e-primary), var(--w431e-primary-dark));
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 69, 0, 0.4);
}
.w431e-btn-ghost {
  background: transparent;
  color: var(--w431e-text);
  border: 1.5px solid var(--w431e-border);
}
.w431e-btn-gold {
  background: linear-gradient(135deg, var(--w431e-gold), #d99425);
  color: #2a1a05;
}
.w431e-btn:hover { transform: translateY(-1px); }
.w431e-btn:active { transform: scale(0.96); }

.w431e-menu-btn {
  background: transparent;
  border: 1px solid var(--w431e-border);
  color: var(--w431e-text);
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 2rem;
}

/* ===== Mobile dropdown menu ===== */
.w431e-mobile-menu {
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--w431e-bg-2);
  border-bottom: 1px solid var(--w431e-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  z-index: 9999;
}
.w431e-mobile-menu.w431e-menu-open { max-height: 80vh; overflow-y: auto; }
.w431e-mobile-menu ul { list-style: none; margin: 0; padding: 6px 12px; }
.w431e-mobile-menu li { border-bottom: 1px solid rgba(255,255,255,0.06); }
.w431e-mobile-menu li:last-child { border-bottom: none; }
.w431e-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 6px;
  color: var(--w431e-text);
  font-size: 1.3rem;
}
.w431e-mobile-menu a i { color: var(--w431e-primary); width: 22px; text-align: center; }

/* ===== Hero carousel ===== */
.w431e-hero { margin-top: 10px; }
.w431e-carousel {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--w431e-shadow);
  background: var(--w431e-bg-2);
}
.w431e-slide {
  position: relative;
  display: none;
  cursor: pointer;
}
.w431e-slide.w431e-active { display: block; }
.w431e-slide img { width: 100%; height: 180px; object-fit: cover; }
.w431e-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 16px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
}
.w431e-slide-cap b { color: var(--w431e-gold); font-size: 1.35rem; display: block; }
.w431e-slide-cap span { font-size: 1.15rem; opacity: 0.92; }

.w431e-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
  z-index: 4;
}
.w431e-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none; cursor: pointer;
}
.w431e-dot.w431e-active { background: var(--w431e-primary); width: 22px; border-radius: 6px; }

/* ===== Chips / filters ===== */
.w431e-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 12px;
  -webkit-overflow-scrolling: touch;
}
.w431e-chips::-webkit-scrollbar { display: none; }
.w431e-chip {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--w431e-card);
  color: var(--w431e-text-muted);
  font-size: 1.15rem;
  border: 1px solid var(--w431e-border);
  cursor: pointer;
  white-space: nowrap;
}
.w431e-chip-active {
  background: var(--w431e-primary);
  color: #fff;
  border-color: var(--w431e-primary);
}

/* ===== Game grid ===== */
.w431e-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 6px;
}
.w431e-game {
  display: block;
  background: var(--w431e-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--w431e-border);
  text-align: center;
  transition: transform .15s ease, border-color .15s ease;
  cursor: pointer;
}
.w431e-game:hover { transform: translateY(-2px); border-color: var(--w431e-primary); }
.w431e-game-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0e1822;
}
.w431e-game-name {
  display: block;
  font-size: 1.05rem;
  color: var(--w431e-text);
  padding: 6px 4px 8px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Cards / features ===== */
.w431e-card {
  background: var(--w431e-card);
  border-radius: var(--w431e-radius);
  padding: 16px;
  margin: 10px 0;
  border: 1px solid var(--w431e-border);
  box-shadow: var(--w431e-shadow);
}
.w431e-card-title {
  color: var(--w431e-gold);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}
.w431e-feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.w431e-feature {
  background: var(--w431e-bg-3);
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--w431e-border);
}
.w431e-feature i { font-size: 2.2rem; color: var(--w431e-primary); }
.w431e-feature b { display: block; margin-top: 6px; font-size: 1.15rem; }
.w431e-feature span { font-size: 1.05rem; color: var(--w431e-text-muted); }

/* ===== Steps ===== */
.w431e-steps { list-style: none; padding: 0; margin: 8px 0 0; counter-reset: step; }
.w431e-steps li {
  position: relative;
  padding: 10px 10px 10px 46px;
  margin-bottom: 8px;
  background: var(--w431e-bg-3);
  border-radius: 10px;
  counter-increment: step;
  font-size: 1.2rem;
}
.w431e-steps li::before {
  content: counter(step);
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  background: var(--w431e-primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
}

/* ===== RTP table ===== */
.w431e-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.15rem;
  margin-top: 8px;
}
.w431e-rtp-table th, .w431e-rtp-table td {
  text-align: left;
  padding: 9px 8px;
  border-bottom: 1px solid var(--w431e-border);
}
.w431e-rtp-table th { color: var(--w431e-gold); font-size: 1.1rem; }
.w431e-rtp-bar {
  height: 6px;
  border-radius: 4px;
  background: var(--w431e-bg-3);
  overflow: hidden;
  margin-top: 4px;
}
.w431e-rtp-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--w431e-primary), var(--w431e-gold));
}

/* ===== Testimonials ===== */
.w431e-testi {
  background: var(--w431e-bg-3);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
  border-left: 3px solid var(--w431e-primary);
}
.w431e-testi b { color: var(--w431e-gold); }
.w431e-stars { color: var(--w431e-gold); font-size: 1.1rem; }

/* ===== Winners strip ===== */
.w431e-winners {
  background: linear-gradient(135deg, var(--w431e-secondary), #6e3a1f);
  border-radius: 12px;
  padding: 12px;
  margin-top: 10px;
}
.w431e-winner {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.18);
  font-size: 1.15rem;
}
.w431e-winner:last-child { border-bottom: none; }
.w431e-winner b { color: var(--w431e-gold); }

/* ===== Payment row ===== */
.w431e-pay-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.w431e-pay {
  background: #fff;
  color: #212F3D;
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
}

/* ===== CTA banner ===== */
.w431e-cta {
  background: linear-gradient(135deg, var(--w431e-primary), var(--w431e-secondary));
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  margin: 14px 0;
  color: #fff;
}
.w431e-cta h2 { color: #fff; }
.w431e-cta p { color: rgba(255,255,255,0.92); }

/* ===== Inline promo link ===== */
.w431e-link {
  color: var(--w431e-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== FAQ ===== */
.w431e-faq { margin-top: 8px; }
.w431e-faq details {
  background: var(--w431e-card);
  border: 1px solid var(--w431e-border);
  border-radius: 10px;
  padding: 0 14px;
  margin-bottom: 8px;
}
.w431e-faq summary {
  padding: 13px 0;
  cursor: pointer;
  font-weight: 700;
  color: var(--w431e-text);
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.w431e-faq summary::-webkit-details-marker { display: none; }
.w431e-faq summary::after {
  content: "+";
  color: var(--w431e-primary);
  font-size: 1.6rem;
  font-weight: 700;
}
.w431e-faq details[open] summary::after { content: "−"; }
.w431e-faq p { padding: 0 0 12px; color: var(--w431e-text-muted); }

/* ===== Footer ===== */
.w431e-footer {
  background: var(--w431e-bg-2);
  border-top: 2px solid var(--w431e-primary);
  padding: 24px 0 110px;
  margin-top: 26px;
}
.w431e-footer-brand { font-size: 1.2rem; color: var(--w431e-text-muted); margin-bottom: 12px; }
.w431e-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.w431e-footer-links a {
  background: var(--w431e-card);
  color: var(--w431e-text);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 1.1rem;
  border: 1px solid var(--w431e-border);
}
.w431e-footer-links a:hover { border-color: var(--w431e-primary); color: var(--w431e-primary); }
.w431e-copy {
  border-top: 1px solid var(--w431e-border);
  margin-top: 14px;
  padding-top: 14px;
  font-size: 1.05rem;
  color: var(--w431e-text-muted);
  text-align: center;
}

/* ===== Mobile bottom nav (fixed) ===== */
.w431e-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: rgba(26, 37, 48, 0.98);
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--w431e-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -3px 12px rgba(0,0,0,0.35);
}
.w431e-bottom-nav a, .w431e-bottom-nav button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: var(--w431e-text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 6px 2px;
  transition: color .15s ease, transform .15s ease;
  position: relative;
}
.w431e-bottom-nav i { font-size: 2.2rem; }
.w431e-bottom-nav .material-icons,
.w431e-bottom-nav .bi { font-size: 2.2rem; }
.w431e-bottom-nav a:hover, .w431e-bottom-nav button:hover { color: var(--w431e-text); }
.w431e-bottom-nav a:active, .w431e-bottom-nav button:active { transform: scale(0.9); }
.w431e-bottom-nav .w431e-active-tab { color: var(--w431e-primary); }
.w431e-bottom-nav .w431e-active-tab::before {
  content: "";
  position: absolute;
  top: 0; left: 30%; right: 30%;
  height: 3px;
  background: var(--w431e-primary);
  border-radius: 0 0 6px 6px;
}
.w431e-badge {
  position: absolute;
  top: 6px; right: 22%;
  background: var(--w431e-primary);
  color: #fff;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 0 5px;
  line-height: 1.4;
}

/* ===== Desktop ===== */
@media (min-width: 769px) {
  .w431e-bottom-nav { display: none; }
  main.w431e-main { padding-bottom: 40px; }
  .w431e-footer { padding-bottom: 40px; }
  .w431e-grid { grid-template-columns: repeat(6, 1fr); }
}

/* ===== Small phones ===== */
@media (max-width: 360px) {
  .w431e-grid { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 1.85rem; }
}
