/*
 * jlqq.homes - core stylesheet (layout-b474.css)
 * Mobile-first HTML5 casino layout. All custom classes use the wb474- prefix
 * to avoid collisions with vendor CSS. Comments are written in English only.
 * Palette: #495057 | #1C2833 | #9AFF9A | #FA8072 | #F08080
 */

/* ---------- Design tokens ---------- */
:root {
  --wb474-bg: #1C2833;
  --wb474-bg-2: #141d27;
  --wb474-bg-3: #0f1721;
  --wb474-surface: #495057;
  --wb474-surface-2: #3a4148;
  --wb474-primary: #9AFF9A;
  --wb474-accent: #FA8072;
  --wb474-danger: #F08080;
  --wb474-gold: #FFD580;
  --wb474-text: #f5f7fa;
  --wb474-text-muted: #b8c0cc;
  --wb474-border: rgba(154, 255, 154, 0.16);
  --wb474-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --wb474-radius: 14px;
  --wb474-radius-sm: 10px;
  --wb474-max: 430px;
  --wb474-font: "Segoe UI", "Helvetica Neue", Roboto, system-ui, -apple-system, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--wb474-font);
  font-size: 1.5rem;
  line-height: 1.5rem;
  color: var(--wb474-text);
  background: radial-gradient(circle at 30% -10%, #233041 0%, var(--wb474-bg) 55%, var(--wb474-bg-3) 100%);
  background-attachment: fixed;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--wb474-primary); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Layout primitives ---------- */
.wb474-container { width: 100%; max-width: var(--wb474-max); margin: 0 auto; padding: 0 1.2rem; }
.wb474-wrapper { padding: 1.6rem 0; }
.wb474-grid { display: grid; gap: 1rem; }
.wb474-visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.wb474-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(20, 29, 39, 0.96), rgba(20, 29, 39, 0.88));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wb474-border);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.wb474-header-scrolled {
  background: rgba(15, 23, 33, 0.98);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.wb474-header-inner {
  max-width: var(--wb474-max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem; gap: 0.8rem;
}
.wb474-brand { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.wb474-brand-icon {
  width: 32px; height: 32px; border-radius: 9px; object-fit: cover;
  border: 1px solid var(--wb474-border); box-shadow: var(--wb474-shadow);
}
.wb474-brand-name {
  font-size: 1.9rem; font-weight: 800; letter-spacing: 0.4px;
  background: linear-gradient(90deg, var(--wb474-primary), var(--wb474-gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wb474-brand-tag { font-size: 1rem; color: var(--wb474-text-muted); margin-left: 0.2rem; }
.wb474-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.wb474-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-size: 1.35rem; font-weight: 700; padding: 0.7rem 1.1rem;
  border-radius: 999px; transition: transform 0.15s ease, filter 0.15s ease;
  min-height: 36px; line-height: 1;
}
.wb474-btn:active { transform: scale(0.95); }
.wb474-btn-primary {
  background: linear-gradient(135deg, var(--wb474-accent), var(--wb474-danger));
  color: #1a0d0c; box-shadow: 0 6px 16px rgba(240, 128, 128, 0.35);
}
.wb474-btn-outline {
  border: 1.5px solid var(--wb474-primary); color: var(--wb474-primary);
  background: rgba(154, 255, 154, 0.06);
}
.wb474-btn-ghost { color: var(--wb474-text); padding: 0.6rem 0.8rem; }
.wb474-menu-btn {
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(154, 255, 154, 0.08); border: 1px solid var(--wb474-border);
  color: var(--wb474-primary); font-size: 1.8rem;
}

/* ---------- Mobile slide-down menu ---------- */
.wb474-mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: 80%; max-width: 320px;
  background: var(--wb474-bg-2); z-index: 9999;
  transform: translateX(105%); transition: transform 0.3s ease;
  padding: 7rem 1.4rem 2rem; box-shadow: var(--wb474-shadow); overflow-y: auto;
}
.wb474-mobile-menu.wb474-menu-open { transform: translateX(0); }
.wb474-menu-title { font-size: 1.6rem; font-weight: 800; color: var(--wb474-primary); margin: 0 0 1rem; }
.wb474-mobile-menu a {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1rem 0.8rem; border-radius: var(--wb474-radius-sm);
  color: var(--wb474-text); font-size: 1.4rem; font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.wb474-mobile-menu a:hover, .wb474-mobile-menu a:focus {
  background: rgba(154, 255, 154, 0.08); color: var(--wb474-primary);
}
.wb474-mobile-menu a i, .wb474-mobile-menu a .material-icons { font-size: 1.7rem; width: 22px; text-align: center; }
.wb474-menu-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 9998;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.wb474-menu-overlay.wb474-menu-open { opacity: 1; pointer-events: auto; }

/* ---------- Hero / Carousel ---------- */
.wb474-carousel {
  position: relative; border-radius: var(--wb474-radius); overflow: hidden;
  box-shadow: var(--wb474-shadow); margin: 1rem 0;
}
.wb474-carousel-viewport { overflow: hidden; }
.wb474-carousel-track { display: flex; transition: transform 0.45s ease; }
.wb474-carousel-slide { position: relative; min-width: 100%; flex-shrink: 0; }
.wb474-carousel-slide img { width: 100%; height: 200px; object-fit: cover; }
.wb474-carousel-caption {
  position: absolute; left: 1.2rem; bottom: 1.2rem; right: 1.2rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  padding: 1.5rem 0.6rem 0.4rem; border-radius: 0 0 var(--wb474-radius) var(--wb474-radius);
}
.wb474-carousel-caption h2 { margin: 0 0 0.3rem; font-size: 1.8rem; color: var(--wb474-gold); }
.wb474-carousel-caption p { margin: 0 0 0.6rem; font-size: 1.2rem; color: var(--wb474-text); }
.wb474-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(20, 29, 39, 0.7); color: var(--wb474-primary);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.wb474-carousel-arrow:hover { background: rgba(20, 29, 39, 0.9); }
.wb474-carousel-prev { left: 0.6rem; }
.wb474-carousel-next { right: 0.6rem; }
.wb474-carousel-dots { position: absolute; bottom: 0.6rem; left: 0; right: 0; display: flex; justify-content: center; gap: 0.5rem; }
.wb474-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.4); transition: all 0.2s ease;
}
.wb474-carousel-dot-active { background: var(--wb474-primary); width: 22px; border-radius: 5px; }

/* ---------- Section heading ---------- */
.wb474-section { padding: 1.6rem 0; }
.wb474-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; gap: 0.6rem; }
.wb474-section-title {
  font-size: 1.8rem; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 0.5rem;
  color: var(--wb474-text);
}
.wb474-section-title i, .wb474-section-title .material-icons { color: var(--wb474-primary); font-size: 1.9rem; }
.wb474-section-more { font-size: 1.25rem; color: var(--wb474-gold); font-weight: 600; }

/* ---------- H1 / page intro ---------- */
.wb474-hero-h1 {
  font-size: 2.2rem; font-weight: 800; line-height: 1.25; margin: 0.4rem 0 0.6rem;
  background: linear-gradient(90deg, var(--wb474-primary), var(--wb474-gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wb474-hero-lead { font-size: 1.4rem; color: var(--wb474-text-muted); margin: 0 0 0.8rem; line-height: 1.7; }
.wb474-text-link { color: var(--wb474-gold); font-weight: 700; text-decoration: underline; }

/* ---------- Game grid ---------- */
.wb474-game-section { margin-bottom: 0.6rem; }
.wb474-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
}
.wb474-game-card {
  display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(180deg, var(--wb474-surface), var(--wb474-surface-2));
  border: 1px solid var(--wb474-border); border-radius: var(--wb474-radius-sm);
  padding: 0.55rem 0.4rem 0.6rem; text-align: center; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wb474-game-card:active { transform: scale(0.96); box-shadow: 0 0 0 2px var(--wb474-primary); }
.wb474-game-thumb {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 8px; object-fit: cover; margin-bottom: 0.4rem;
  background: var(--wb474-bg-3);
}
.wb474-game-name {
  font-size: 1.1rem; font-weight: 600; color: var(--wb474-text); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.8rem;
}
.wb474-game-badge {
  position: relative;
}
.wb474-game-badge::before {
  content: "HOT"; position: absolute; top: -6px; left: -6px; z-index: 2;
  background: linear-gradient(135deg, var(--wb474-accent), var(--wb474-danger));
  color: #1a0d0c; font-size: 0.9rem; font-weight: 800; padding: 2px 6px; border-radius: 6px;
}

/* ---------- Content cards ---------- */
.wb474-card {
  background: linear-gradient(180deg, rgba(73, 80, 87, 0.55), rgba(58, 65, 72, 0.55));
  border: 1px solid var(--wb474-border); border-radius: var(--wb474-radius);
  padding: 1.2rem; margin-bottom: 1rem;
}
.wb474-card h2 {
  font-size: 1.7rem; font-weight: 800; margin: 0 0 0.6rem; color: var(--wb474-gold);
  display: flex; align-items: center; gap: 0.5rem;
}
.wb474-card h2 i, .wb474-card h2 .material-icons { color: var(--wb474-primary); font-size: 1.8rem; }
.wb474-card h3 { font-size: 1.4rem; font-weight: 700; margin: 0.8rem 0 0.3rem; color: var(--wb474-primary); }
.wb474-card p { margin: 0 0 0.7rem; color: var(--wb474-text-muted); line-height: 1.7; font-size: 1.32rem; }
.wb474-card ul { margin: 0 0 0.6rem; padding-left: 1.4rem; color: var(--wb474-text-muted); line-height: 1.7; font-size: 1.32rem; }
.wb474-card li { margin-bottom: 0.4rem; }
.wb474-card li b, .wb474-card p b { color: var(--wb474-primary); }

/* ---------- Steps ---------- */
.wb474-steps { counter-reset: step; padding: 0; list-style: none; margin: 0; }
.wb474-steps li {
  position: relative; padding: 0.6rem 0 0.6rem 3.2rem; margin-bottom: 0.4rem;
  border-left: 2px solid var(--wb474-border); margin-left: 0.6rem;
  color: var(--wb474-text-muted); font-size: 1.32rem; line-height: 1.6;
}
.wb474-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: -1.4rem; top: 0.5rem;
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--wb474-primary), var(--wb474-gold));
  color: #141d27; font-weight: 800; font-size: 1.2rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.wb474-steps li b { color: var(--wb474-text); }

/* ---------- RTP / stat grid ---------- */
.wb474-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.wb474-stat {
  background: rgba(20, 29, 39, 0.55); border: 1px solid var(--wb474-border);
  border-radius: var(--wb474-radius-sm); padding: 0.8rem; text-align: center;
}
.wb474-stat-num { font-size: 2rem; font-weight: 800; color: var(--wb474-primary); line-height: 1; }
.wb474-stat-label { font-size: 1.1rem; color: var(--wb474-text-muted); margin-top: 0.3rem; }

/* ---------- Winners list ---------- */
.wb474-winner {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 0.8rem; border-radius: var(--wb474-radius-sm);
  background: rgba(73, 80, 87, 0.35); margin-bottom: 0.5rem;
}
.wb474-winner-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--wb474-accent), var(--wb474-gold));
  display: inline-flex; align-items: center; justify-content: center;
  color: #1a0d0c; font-weight: 800; font-size: 1.3rem;
}
.wb474-winner-info { flex: 1; min-width: 0; font-size: 1.2rem; color: var(--wb474-text); }
.wb474-winner-info small { display: block; color: var(--wb474-text-muted); font-size: 1.05rem; }
.wb474-winner-amount { font-weight: 800; color: var(--wb474-gold); font-size: 1.3rem; }

/* ---------- Payment chips ---------- */
.wb474-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.wb474-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(154, 255, 154, 0.08); border: 1px solid var(--wb474-border);
  padding: 0.5rem 0.9rem; border-radius: 999px; font-size: 1.15rem; color: var(--wb474-text);
}
.wb474-chip i, .wb474-chip .material-icons { color: var(--wb474-primary); font-size: 1.4rem; }

/* ---------- Download CTA ---------- */
.wb474-cta {
  background: linear-gradient(135deg, rgba(240, 128, 128, 0.18), rgba(154, 255, 154, 0.12));
  border: 1px solid var(--wb474-border); border-radius: var(--wb474-radius);
  padding: 1.4rem; text-align: center;
}
.wb474-cta h2 { color: var(--wb474-gold); margin: 0 0 0.5rem; font-size: 1.8rem; font-weight: 800; }
.wb474-cta p { color: var(--wb474-text-muted); margin: 0 0 1rem; font-size: 1.3rem; line-height: 1.6; }
.wb474-cta-actions { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.wb474-faq-item {
  border-bottom: 1px solid var(--wb474-border); padding: 0.8rem 0;
}
.wb474-faq-q { font-weight: 700; color: var(--wb474-primary); font-size: 1.35rem; margin-bottom: 0.3rem; }
.wb474-faq-a { color: var(--wb474-text-muted); font-size: 1.25rem; line-height: 1.6; }

/* ---------- Inline CTA bar ---------- */
.wb474-cta-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  background: linear-gradient(135deg, var(--wb474-surface), var(--wb474-surface-2));
  border: 1px solid var(--wb474-border); border-radius: var(--wb474-radius);
  padding: 0.8rem 1rem; margin: 0.6rem 0 1rem;
}
.wb474-cta-bar p { margin: 0; color: var(--wb474-text); font-size: 1.3rem; font-weight: 600; }

/* ---------- Footer ---------- */
.wb474-footer {
  background: var(--wb474-bg-3); border-top: 1px solid var(--wb474-border);
  padding: 1.8rem 1.2rem 2rem; margin-top: 1rem;
}
.wb474-footer-brand { font-size: 1.6rem; font-weight: 800; color: var(--wb474-gold); margin-bottom: 0.4rem; }
.wb474-footer-desc { font-size: 1.2rem; color: var(--wb474-text-muted); line-height: 1.6; margin: 0 0 1rem; }
.wb474-footer-promos { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.wb474-footer-link {
  display: inline-block; font-size: 1.15rem; padding: 0.4rem 0.8rem;
  border: 1px solid var(--wb474-border); border-radius: 999px; color: var(--wb474-primary);
}
.wb474-footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem 1rem; margin-bottom: 1rem; }
.wb474-footer-cols a { font-size: 1.15rem; color: var(--wb474-text-muted); }
.wb474-footer-cols a:hover { color: var(--wb474-primary); }
.wb474-footer-copy { font-size: 1.05rem; color: var(--wb474-text-muted); border-top: 1px solid var(--wb474-border); padding-top: 0.8rem; text-align: center; }

/* ---------- Mobile bottom navigation ---------- */
.wb474-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  display: flex; justify-content: space-around; align-items: stretch;
  background: linear-gradient(180deg, rgba(20, 29, 39, 0.98), rgba(15, 23, 33, 1));
  border-top: 1px solid var(--wb474-border); height: 62px;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.4);
}
.wb474-bottom-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; color: var(--wb474-text-muted); font-size: 1rem; font-weight: 600;
  transition: color 0.2s ease, transform 0.15s ease;
}
.wb474-bottom-btn i, .wb474-bottom-btn .material-icons, .wb474-bottom-btn ion-icon, .wb474-bottom-btn .bi {
  font-size: 22px; line-height: 1;
}
.wb474-bottom-btn .material-icons { font-size: 24px; }
.wb474-bottom-btn ion-icon { font-size: 24px; }
.wb474-bottom-btn:active { transform: scale(0.92); }
.wb474-bottom-btn.wb474-bottom-active { color: var(--wb474-primary); }
.wb474-bottom-btn.wb474-bottom-promo { color: var(--wb474-gold); }
.wb474-bottom-btn .wb474-bottom-dot {
  position: absolute; top: 0.5rem; right: 50%; transform: translateX(1.4rem);
  background: var(--wb474-danger); color: #1a0d0c; font-size: 0.85rem; font-weight: 800;
  border-radius: 999px; padding: 0 5px; min-width: 14px; line-height: 14px;
}
.wb474-bottom-btn { position: relative; }

/* ---------- Utility ---------- */
.wb474-mt-0 { margin-top: 0 !important; }
.wb474-pt-header { padding-top: 64px; }
.wb474-hidden { display: none !important; }

/* ---------- Responsive + desktop tweaks ---------- */
@media (min-width: 769px) {
  .wb474-bottom-nav { display: none; }
  body { padding-bottom: 0; }
}
@media (max-width: 768px) {
  main.wb474-main { padding-bottom: 84px; }
  .wb474-header-actions .wb474-btn { padding: 0.55rem 0.8rem; font-size: 1.25rem; }
  .wb474-game-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 360px) {
  .wb474-game-grid { grid-template-columns: repeat(2, 1fr); }
  .wb474-hero-h1 { font-size: 1.9rem; }
}
