/*!
 * fb777pro core stylesheet
 * Mobile-first (max 430px) PH casino site
 * All custom classes use the "w091b-" prefix
 */
:root {
  --w091b-bg: #333333;
  --w091b-bg-soft: #3f3742;
  --w091b-bg-card: #2a2a2a;
  --w091b-primary: #9932CC;
  --w091b-secondary: #6A5ACD;
  --w091b-text: #f4f1fa;
  --w091b-text-muted: #b8aec5;
  --w091b-accent: #ffd24a;
  --w091b-success: #34d399;
  --w091b-danger: #ff6b6b;
  --w091b-radius: 1.2rem;
  --w091b-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.35);
}

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

html {
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(180deg, var(--w091b-bg) 0%, #2b2438 100%);
  color: var(--w091b-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--w091b-accent); text-decoration: none; }

/* ---------- Layout ---------- */
.w091b-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.w091b-container { width: 100%; }

main.w091b-main {
  padding-top: 6rem;
  padding-bottom: 9rem;
}

/* ---------- Header ---------- */
.w091b-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: rgba(40, 28, 50, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 0.1rem solid rgba(153, 50, 204, 0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  height: 5.6rem;
}

.w091b-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--w091b-text);
}
.w091b-logo img { width: 2.8rem; height: 2.8rem; border-radius: 0.6rem; }
.w091b-logo .w091b-logo-accent { color: var(--w091b-primary); }

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

.w091b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 2rem;
  padding: 0.7rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 3.6rem;
  text-decoration: none;
}
.w091b-btn:active { transform: scale(0.94); }

.w091b-btn-login {
  background: transparent;
  color: var(--w091b-text);
  border: 0.15rem solid var(--w091b-secondary);
}
.w091b-btn-register {
  background: linear-gradient(135deg, var(--w091b-primary), var(--w091b-secondary));
  color: #fff;
  box-shadow: 0 0.4rem 1rem rgba(153, 50, 204, 0.45);
}

.w091b-menu-btn {
  background: transparent;
  border: none;
  color: var(--w091b-text);
  font-size: 1.9rem;
  padding: 0.6rem;
  cursor: pointer;
  min-width: 4rem;
  min-height: 4rem;
}

/* ---------- Mobile menu ---------- */
.w091b-mobile-menu {
  position: fixed;
  top: 5.6rem; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: rgba(35, 25, 45, 0.99);
  border-bottom: 0.1rem solid rgba(153, 50, 204, 0.4);
  padding: 1rem 1.4rem;
  transform: translateY(-130%);
  transition: transform 0.28s ease;
  z-index: 9999;
}
.w091b-mobile-menu.w091b-menu-open { transform: translateY(0); }
.w091b-mobile-menu a {
  display: block;
  padding: 1rem 0.6rem;
  color: var(--w091b-text);
  font-size: 1.4rem;
  border-bottom: 0.1rem solid rgba(255,255,255,0.06);
}
.w091b-mobile-menu a:active { background: rgba(153,50,204,0.18); }

/* ---------- Hero carousel ---------- */
.w091b-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--w091b-radius);
  overflow: hidden;
  box-shadow: var(--w091b-shadow);
  margin: 1rem 0;
}
.w091b-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.w091b-slide.w091b-slide-active { display: block; }
.w091b-slide img { width: 100%; height: 17rem; object-fit: cover; }
.w091b-dots {
  position: absolute;
  bottom: 0.8rem; left: 0; right: 0;
  text-align: center;
}
.w091b-dot {
  display: inline-block;
  width: 0.8rem; height: 0.8rem;
  margin: 0 0.3rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
}
.w091b-dot.w091b-dot-active { background: var(--w091b-accent); }

/* ---------- Headings ---------- */
.w091b-h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 1.6rem 0 0.8rem;
  background: linear-gradient(90deg, var(--w091b-primary), var(--w091b-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 2.6rem;
}
.w091b-h2 {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--w091b-accent);
  margin: 1.6rem 0 0.8rem;
  border-left: 0.4rem solid var(--w091b-primary);
  padding-left: 0.8rem;
}
.w091b-h3 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--w091b-text);
  margin: 1.2rem 0 0.6rem;
}

.w091b-section {
  margin: 1.8rem 0;
  padding: 1.4rem;
  background: var(--w091b-bg-card);
  border-radius: var(--w091b-radius);
  box-shadow: var(--w091b-shadow);
}
.w091b-section p {
  color: var(--w091b-text-muted);
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
}

/* ---------- Game grid ---------- */
.w091b-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-top: 0.8rem;
}
.w091b-game-card {
  background: var(--w091b-bg-soft);
  border-radius: 0.8rem;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border: 0.1rem solid rgba(153, 50, 204, 0.25);
}
.w091b-game-card:active { transform: scale(0.95); }
.w091b-game-card img {
  width: 100%; height: 7.5rem; object-fit: cover;
}
.w091b-game-name {
  font-size: 1.1rem;
  padding: 0.4rem 0.3rem;
  color: var(--w091b-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

/* ---------- CTA ---------- */
.w091b-cta {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, var(--w091b-primary), var(--w091b-secondary));
  color: #fff;
  font-weight: 800;
  padding: 1.3rem;
  border-radius: 1rem;
  margin: 1.2rem 0;
  font-size: 1.5rem;
  box-shadow: 0 0.5rem 1.4rem rgba(153, 50, 204, 0.5);
}
.w091b-text-link {
  color: var(--w091b-accent);
  font-weight: 700;
  text-decoration: underline;
}

/* ---------- Feature list ---------- */
.w091b-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}
.w091b-feature {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--w091b-bg-soft);
  border-radius: 0.8rem;
}
.w091b-feature i { color: var(--w091b-primary); font-size: 1.8rem; min-width: 2rem; }
.w091b-feature h4 { font-size: 1.35rem; margin-bottom: 0.3rem; color: var(--w091b-text); }
.w091b-feature p { font-size: 1.25rem; color: var(--w091b-text-muted); margin: 0; }

/* ---------- Testimonials ---------- */
.w091b-testimonial {
  padding: 1rem;
  background: var(--w091b-bg-soft);
  border-radius: 0.8rem;
  margin-bottom: 0.8rem;
  border-left: 0.3rem solid var(--w091b-secondary);
}
.w091b-testimonial .w091b-stars { color: var(--w091b-accent); margin-bottom: 0.3rem; }
.w091b-testimonial p { font-size: 1.3rem; color: var(--w091b-text); margin: 0; }
.w091b-testimonial .w091b-author { font-size: 1.15rem; color: var(--w091b-text-muted); margin-top: 0.4rem; }

/* ---------- Payment / winners ---------- */
.w091b-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.w091b-chip {
  background: var(--w091b-bg-soft);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  color: var(--w091b-text);
  border: 0.1rem solid rgba(106, 90, 205, 0.45);
}

.w091b-table { width: 100%; border-collapse: collapse; margin-top: 0.8rem; }
.w091b-table th, .w091b-table td {
  padding: 0.7rem 0.6rem;
  text-align: left;
  font-size: 1.25rem;
  border-bottom: 0.1rem solid rgba(255,255,255,0.08);
}
.w091b-table th { color: var(--w091b-accent); }
.w091b-table td { color: var(--w091b-text-muted); }

/* ---------- Footer ---------- */
.w091b-footer {
  background: #211a2c;
  padding: 2rem 1.2rem 9rem;
  margin-top: 2rem;
  border-top: 0.2rem solid var(--w091b-primary);
}
.w091b-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}
.w091b-footer-links a {
  font-size: 1.2rem;
  color: var(--w091b-text-muted);
  background: rgba(255,255,255,0.05);
  padding: 0.5rem 0.9rem;
  border-radius: 0.6rem;
}
.w091b-footer p { font-size: 1.25rem; color: var(--w091b-text-muted); margin-bottom: 0.6rem; }
.w091b-footer .w091b-copy { font-size: 1.1rem; color: #7c7388; margin-top: 1rem; }

/* ---------- Bottom nav ---------- */
.w091b-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 6.2rem;
  background: linear-gradient(180deg, rgba(35,25,45,0.98), rgba(25,18,35,1));
  border-top: 0.15rem solid rgba(153,50,204,0.5);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -0.4rem 1rem rgba(0,0,0,0.4);
}
.w091b-bottom-nav button, .w091b-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--w091b-text-muted);
  font-size: 1.05rem;
  text-decoration: none;
  min-width: 6rem;
  min-height: 6rem;
  gap: 0.2rem;
  transition: color 0.18s ease, transform 0.18s ease;
}
.w091b-bottom-nav button:active, .w091b-bottom-nav a:active { transform: scale(0.9); }
.w091b-bottom-nav .w091b-nav-icon { font-size: 2.2rem; line-height: 1; }
.w091b-bottom-nav .w091b-active-nav { color: var(--w091b-accent); }
.w091b-bottom-nav .material-icons.w091b-nav-icon { font-size: 2.4rem; }

/* ---------- Reveal animation ---------- */
.w091b-reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.w091b-reveal.w091b-revealed { opacity: 1; transform: translateY(0); }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .w091b-bottom-nav { display: none; }
  main.w091b-main { padding-bottom: 3rem; }
  .w091b-footer { padding-bottom: 2rem; }
}

/* ---------- Mobile max 430px tuning ---------- */
@media (max-width: 430px) {
  body { font-size: 1.4rem; }
  .w091b-h1 { font-size: 2rem; }
  .w091b-h2 { font-size: 1.7rem; }
  .w091b-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .w091b-game-card img { height: 6.8rem; }
  .w091b-game-name { font-size: 1rem; }
  .w091b-slide img { height: 15rem; }
  .w091b-section { padding: 1.2rem; }
}
