/* ============================================================
 * 188d - layout.css
 * All custom classes use the prefix `w3359-`.
 * Palette: #4169E1 royal blue / #4682B4 steel blue
 *          #2C3E50 dark slate (bg) / #00BFFF deep sky blue (accent)
 * ============================================================ */

:root {
  --w3359-primary: #4169E1;
  --w3359-steel: #4682B4;
  --w3359-dark: #2C3E50;
  --w3359-deep: #1c2a38;
  --w3359-accent: #00BFFF;
  --w3359-bg: #0f1923;
  --w3359-card: #182838;
  --w3359-card-2: #213246;
  --w3359-text: #f5f9ff;
  --w3359-muted: #9fb3c8;
  --w3359-gold: #ffd56b;
  --w3359-success: #38d39f;
  --w3359-danger: #ff6b6b;
  --w3359-radius: 14px;
  --w3359-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

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

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

body {
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, system-ui, sans-serif;
  background: linear-gradient(180deg, var(--w3359-bg) 0%, var(--w3359-deep) 100%);
  color: var(--w3359-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
}

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

.w3359-container { width: 100%; padding: 0 1.2rem; }
.w3359-wrapper { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }

/* ---------- Header ---------- */
.w3359-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(90deg, var(--w3359-dark), var(--w3359-steel));
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  border-bottom: 2px solid var(--w3359-accent);
}

.w3359-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 0.5px;
}
.w3359-brand img { width: 30px; height: 30px; border-radius: 6px; }
.w3359-brand .w3359-brand-name {
  background: linear-gradient(90deg, #fff, var(--w3359-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.w3359-btn {
  border: none;
  cursor: pointer;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 0.6rem 1.2rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 36px;
}
.w3359-btn:active { transform: scale(0.95); }
.w3359-btn-login {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.w3359-btn-register {
  background: linear-gradient(90deg, var(--w3359-accent), var(--w3359-primary));
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 191, 255, 0.4);
}
.w3359-btn-register:hover { color: #fff; filter: brightness(1.1); }

.w3359-menu-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
}
.w3359-menu-btn:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- Mobile expandable menu ---------- */
.w3359-mobile-menu {
  position: fixed;
  top: 56px; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--w3359-deep);
  border-bottom: 2px solid var(--w3359-primary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
  z-index: 9999;
  box-shadow: var(--w3359-shadow);
}
.w3359-mobile-menu.w3359-menu-open { max-height: 540px; }
.w3359-mobile-menu ul { list-style: none; padding: 0.6rem 0; }
.w3359-mobile-menu li a {
  display: block;
  padding: 1rem 1.4rem;
  color: var(--w3359-text);
  font-weight: 600;
  border-left: 3px solid transparent;
}
.w3359-mobile-menu li a:hover {
  background: rgba(0, 191, 255, 0.08);
  border-left-color: var(--w3359-accent);
  color: var(--w3359-accent);
}

/* ---------- Layout main padding ---------- */
.w3359-main {
  padding-top: 64px;
  padding-bottom: 1rem;
}
@media (max-width: 768px) {
  .w3359-main { padding-bottom: 84px; }
}

/* ---------- Section ---------- */
.w3359-section { padding: 1.6rem 0; }
.w3359-section-alt { background: rgba(70, 130, 180, 0.08); }
.w3359-section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
}
.w3359-section-title::before {
  content: "";
  width: 5px; height: 22px;
  background: linear-gradient(180deg, var(--w3359-accent), var(--w3359-primary));
  border-radius: 3px;
}
.w3359-lead { color: var(--w3359-muted); margin-bottom: 1rem; font-size: 1.45rem; }

/* ---------- Carousel ---------- */
.w3359-carousel {
  position: relative;
  border-radius: var(--w3359-radius);
  overflow: hidden;
  box-shadow: var(--w3359-shadow);
  margin-top: 1rem;
}
.w3359-slide {
  display: none;
  width: 100%;
  position: relative;
}
.w3359-slide img { width: 100%; height: 200px; object-fit: cover; }
.w3359-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem;
  background: linear-gradient(0deg, rgba(15, 25, 35, 0.92), transparent);
  color: #fff;
}
.w3359-slide-caption h2 { font-size: 1.8rem; margin-bottom: 0.3rem; }
.w3359-slide-caption p { font-size: 1.3rem; color: var(--w3359-muted); }
.w3359-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.w3359-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  border: none;
}
.w3359-dot.w3359-dot-active { background: var(--w3359-accent); width: 22px; border-radius: 4px; }

/* ---------- Hero CTA ---------- */
.w3359-hero-cta {
  background: linear-gradient(135deg, var(--w3359-primary), var(--w3359-steel));
  border-radius: var(--w3359-radius);
  padding: 1.4rem;
  margin: 1rem 0;
  text-align: center;
  box-shadow: var(--w3359-shadow);
}
.w3359-hero-cta h1 {
  font-size: 2.4rem;
  margin-bottom: 0.6rem;
  color: #fff;
  line-height: 1.25;
}
.w3359-hero-cta p { color: rgba(255, 255, 255, 0.85); margin-bottom: 1rem; font-size: 1.4rem; }
.w3359-cta-btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--w3359-gold), #ff9f43);
  color: var(--w3359-dark);
  font-weight: 800;
  padding: 1rem 2.4rem;
  border-radius: 30px;
  font-size: 1.6rem;
  box-shadow: 0 6px 18px rgba(255, 213, 107, 0.4);
  cursor: pointer;
  border: none;
}
.w3359-cta-btn:hover { color: var(--w3359-dark); filter: brightness(1.05); }

/* ---------- Game grid ---------- */
.w3359-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.6rem 0 1rem;
}
.w3359-cat-header h2 {
  font-size: 1.9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}
.w3359-cat-header h2 i { color: var(--w3359-accent); }
.w3359-cat-link { font-size: 1.3rem; font-weight: 600; color: var(--w3359-gold); }

.w3359-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
@media (min-width: 380px) {
  .w3359-grid { grid-template-columns: repeat(4, 1fr); }
}
.w3359-game-card {
  background: var(--w3359-card);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.w3359-game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 191, 255, 0.25);
  border-color: var(--w3359-accent);
}
.w3359-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.w3359-game-name {
  padding: 0.5rem 0.4rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Feature / info cards ---------- */
.w3359-card {
  background: var(--w3359-card);
  border-radius: var(--w3359-radius);
  padding: 1.4rem;
  margin-bottom: 1rem;
  box-shadow: var(--w3359-shadow);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.w3359-card h3 { font-size: 1.6rem; margin-bottom: 0.6rem; color: var(--w3359-accent); }
.w3359-card p { color: var(--w3359-muted); font-size: 1.4rem; }

.w3359-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.w3359-feature {
  background: var(--w3359-card);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  border-top: 3px solid var(--w3359-accent);
}
.w3359-feature i { font-size: 2.4rem; color: var(--w3359-accent); margin-bottom: 0.5rem; }
.w3359-feature h4 { font-size: 1.4rem; margin-bottom: 0.3rem; color: #fff; }
.w3359-feature p { font-size: 1.2rem; color: var(--w3359-muted); }

/* ---------- RTP table ---------- */
.w3359-rpt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.3rem;
  background: var(--w3359-card);
  border-radius: 10px;
  overflow: hidden;
}
.w3359-rpt-table th, .w3359-rpt-table td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.w3359-rpt-table th { background: var(--w3359-card-2); color: var(--w3359-accent); font-weight: 700; }
.w3359-rpt-table td:last-child { color: var(--w3359-success); font-weight: 700; }

/* ---------- Testimonials ---------- */
.w3359-testimonial {
  background: var(--w3359-card);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 4px solid var(--w3359-gold);
}
.w3359-testimonial .w3359-stars { color: var(--w3359-gold); margin-bottom: 0.4rem; font-size: 1.2rem; }
.w3359-testimonial p { font-size: 1.35rem; margin-bottom: 0.5rem; }
.w3359-testimonial .w3359-author { font-size: 1.2rem; color: var(--w3359-accent); font-weight: 700; }

/* ---------- Winners showcase ---------- */
.w3359-winners {
  background: var(--w3359-card);
  border-radius: 12px;
  overflow: hidden;
  height: 240px;
}
.w3359-winners-track { will-change: transform; }
.w3359-winner-row {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 1.3rem;
}
.w3359-winner-row .w3359-amount { color: var(--w3359-success); font-weight: 700; }

/* ---------- Payment methods ---------- */
.w3359-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.w3359-pay-item {
  background: var(--w3359-card);
  border-radius: 10px;
  padding: 0.8rem;
  text-align: center;
  font-size: 1.2rem;
  color: var(--w3359-muted);
}
.w3359-pay-item i { font-size: 2rem; color: var(--w3359-accent); display: block; margin-bottom: 0.3rem; }

/* ---------- FAQ ---------- */
.w3359-faq-item {
  background: var(--w3359-card);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.7rem;
}
.w3359-faq-item h3 { font-size: 1.4rem; color: var(--w3359-gold); margin-bottom: 0.4rem; }
.w3359-faq-item p { font-size: 1.35rem; color: var(--w3359-muted); }

/* ---------- App download CTA ---------- */
.w3359-app-cta {
  background: linear-gradient(135deg, var(--w3359-dark), var(--w3359-primary));
  border-radius: var(--w3359-radius);
  padding: 1.6rem;
  text-align: center;
  margin: 1rem 0;
  border: 1px solid var(--w3359-accent);
}
.w3359-app-cta h3 { color: #fff; font-size: 1.8rem; margin-bottom: 0.5rem; }
.w3359-app-cta p { color: rgba(255, 255, 255, 0.8); margin-bottom: 1rem; font-size: 1.4rem; }
.w3359-app-btns { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.w3359-app-btn {
  background: #fff;
  color: var(--w3359-dark);
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  border: none;
}

/* ---------- Footer ---------- */
.w3359-footer {
  background: var(--w3359-deep);
  padding: 2rem 1.2rem 6rem;
  border-top: 3px solid var(--w3359-primary);
  margin-top: 1.5rem;
}
.w3359-footer h4 { color: var(--w3359-accent); font-size: 1.5rem; margin-bottom: 0.7rem; }
.w3359-footer p { color: var(--w3359-muted); font-size: 1.3rem; margin-bottom: 1rem; }
.w3359-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.w3359-footer-links a {
  background: var(--w3359-card);
  color: var(--w3359-text);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.w3359-footer-links a:hover { background: var(--w3359-primary); color: #fff; }
.w3359-footer-bottom {
  text-align: center;
  color: var(--w3359-muted);
  font-size: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- Bottom nav (mobile) ---------- */
.w3359-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 62px;
  background: linear-gradient(90deg, var(--w3359-deep), var(--w3359-dark));
  border-top: 2px solid var(--w3359-accent);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}
.w3359-bottom-nav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--w3359-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  gap: 2px;
  transition: color 0.2s, transform 0.2s;
}
.w3359-bottom-nav-btn i,
.w3359-bottom-nav-btn span.material-icons-outlined,
.w3359-bottom-nav-btn ion-icon {
  font-size: 22px;
}
.w3359-bottom-nav-btn ion-icon { font-size: 24px; }
.w3359-bottom-nav-btn:hover { color: var(--w3359-accent); transform: translateY(-2px); }
.w3359-bottom-nav-btn:active { transform: scale(0.92); }
.w3359-bottom-nav-active { color: var(--w3359-accent); }
.w3359-bottom-nav-active::after {
  content: "";
  width: 28px; height: 3px;
  background: var(--w3359-accent);
  border-radius: 2px;
  margin-top: 2px;
}
.w3359-nav-badge {
  position: absolute;
  top: 6px; right: 18px;
  background: var(--w3359-danger);
  color: #fff;
  font-size: 0.9rem;
  padding: 1px 5px;
  border-radius: 8px;
}

@media (min-width: 769px) {
  .w3359-bottom-nav { display: none; }
  body { max-width: 430px; }
  .w3359-footer { padding-bottom: 2rem; }
}

/* ---------- Utilities ---------- */
.w3359-text-center { text-align: center; }
.w3359-mt-1 { margin-top: 0.6rem; }
.w3359-mt-2 { margin-top: 1rem; }
.w3359-text-gold { color: var(--w3359-gold); }
.w3359-text-accent { color: var(--w3359-accent); }
.w3359-promo-link {
  color: var(--w3359-gold);
  font-weight: 700;
  cursor: pointer;
}
.w3359-promo-link:hover { color: var(--w3359-accent); }
.w3359-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--w3359-primary), transparent);
  margin: 1.2rem 0;
}

/* ---------- Help page components (safety / how-to-play) ---------- */
.w3359-hero-help {
  background: linear-gradient(135deg, var(--w3359-dark), var(--w3359-primary));
  border: 1px solid var(--w3359-accent);
  border-radius: var(--w3359-radius);
  padding: 1.6rem 1.4rem;
  margin: 1rem 0;
  text-align: center;
  box-shadow: var(--w3359-shadow);
}
.w3359-hero-help h1 {
  font-size: 2.1rem;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}
.w3359-hero-help p { color: rgba(255, 255, 255, 0.85); font-size: 1.4rem; margin-bottom: 1rem; }

/* Numbered step list used by help pages */
.w3359-step-list { list-style: none; counter-reset: w3359step; }
.w3359-step-list li {
  counter-increment: w3359step;
  position: relative;
  padding: 0.9rem 0.9rem 0.9rem 4.2rem;
  background: var(--w3359-card);
  border-radius: 10px;
  margin-bottom: 0.7rem;
  font-size: 1.4rem;
  color: var(--w3359-muted);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.w3359-step-list li::before {
  content: counter(w3359step);
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--w3359-accent), var(--w3359-primary));
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.w3359-step-list li strong { color: var(--w3359-text); }

/* Checklist with green check icons */
.w3359-check-list { list-style: none; }
.w3359-check-list li {
  padding: 0.6rem 0.4rem 0.6rem 2.4rem;
  position: relative;
  font-size: 1.4rem;
  color: var(--w3359-muted);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
}
.w3359-check-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0.4rem;
  color: var(--w3359-success);
}
.w3359-check-list li strong { color: var(--w3359-text); }

/* Highlighted tip box */
.w3359-tip-box {
  background: rgba(0, 191, 255, 0.08);
  border-left: 4px solid var(--w3359-accent);
  border-radius: 10px;
  padding: 1rem;
  font-size: 1.35rem;
  color: var(--w3359-muted);
  margin: 1rem 0;
}
.w3359-tip-box strong { color: var(--w3359-gold); }

/* Horizontal scrolling game strip */
.w3359-game-row {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
}
.w3359-game-row .w3359-game-card { flex: 0 0 84px; }
