/* =============================================================
   Lucky Bingo - theme-420c.css
   Mobile-first PH bingo & casino theme. All custom classes use
   the s420- prefix. Palette: #8B4513 / #1A1A1A / #A0522D /
   #2C3E50 / #87CEEB (deep cocoa + sky-blue accent).
   ============================================================= */

:root {
  --s420-brown: #8B4513;
  --s420-dark: #1A1A1A;
  --s420-sienna: #A0522D;
  --s420-blue: #2C3E50;
  --s420-sky: #87CEEB;
  --s420-cream: #FFF8EE;
  --s420-gold: #F4C44B;
  --s420-line: rgba(247, 228, 196, 0.14);
  --s420-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}

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

html { font-size: 62.5%; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  background:
    radial-gradient(1100px 540px at 50% -160px, rgba(135, 206, 235, 0.18), transparent 60%),
    linear-gradient(180deg, #1A1A1A 0%, #241309 60%, #1A1A1A 100%);
  color: var(--s420-cream);
  line-height: 1.5;
  font-size: 1.5rem;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

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

/* ---------- Shell (mobile-first, max-width: 430px) ----------------------- */
.s420-shell {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: rgba(26, 26, 26, 0.6);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.45);
}

main { padding-bottom: 96px; }

/* ---------- Header ------------------------------------------------------- */
.s420-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(90deg, #1A1A1A, #3a1d0a 60%, #1A1A1A);
  border-bottom: 2px solid var(--s420-brown);
}
.s420-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.s420-logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--s420-gold), var(--s420-brown));
  display: flex; align-items: center; justify-content: center;
  color: #1A1A1A; font-weight: 800; font-size: 1.7rem;
}
.s420-brand-name {
  font-size: 1.7rem; font-weight: 800; color: var(--s420-gold);
  letter-spacing: 0.2px; white-space: nowrap;
}
.s420-brand-name span { color: var(--s420-sky); }
.s420-header-actions { display: flex; align-items: center; gap: 6px; }

.s420-btn {
  border: none; cursor: pointer; border-radius: 10px;
  font-size: 1.35rem; font-weight: 700; padding: 9px 14px;
  display: inline-flex; align-items: center; gap: 6px; line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s;
}
.s420-btn:active { transform: translateY(1px); }
.s420-btn-login {
  background: transparent; color: var(--s420-cream);
  border: 1.5px solid var(--s420-sky);
}
.s420-btn-register {
  background: linear-gradient(135deg, var(--s420-gold), var(--s420-brown));
  color: #1A1A1A;
  box-shadow: 0 4px 14px rgba(244, 196, 75, 0.35);
}
.s420-icon-btn {
  background: transparent; border: none; color: var(--s420-cream);
  font-size: 2rem; padding: 6px; cursor: pointer; line-height: 1;
}

/* ---------- Mobile slide menu ------------------------------------------- */
.s420-menu-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55);
  opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 9998;
}
.s420-menu-backdrop.s420-show { opacity: 1; pointer-events: auto; }
.s420-mobile-menu {
  position: fixed; top: 0; right: -86%;
  width: 82%; max-width: 340px; height: 100vh;
  background: linear-gradient(180deg, #2C3E50, #1A1A1A);
  z-index: 9999; padding: 18px 16px; overflow-y: auto;
  transition: right 0.28s ease;
  border-left: 2px solid var(--s420-brown);
}
.s420-mobile-menu.s420-menu-open { right: 0; }
.s420-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; border-bottom: 1px solid var(--s420-line); margin-bottom: 10px;
}
.s420-menu-head h3 { color: var(--s420-gold); font-size: 1.8rem; }
.s420-menu-head button {
  background: transparent; border: none; color: var(--s420-cream);
  font-size: 2.2rem; cursor: pointer; line-height: 1;
}
.s420-menu-section-title {
  font-size: 1.25rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--s420-sky); margin: 16px 6px 8px;
}
.s420-menu-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; color: var(--s420-cream);
  border-radius: 10px; font-size: 1.45rem; font-weight: 600;
}
.s420-menu-link:hover, .s420-menu-link:active {
  background: rgba(135, 206, 235, 0.14); color: var(--s420-sky);
}
.s420-menu-link i { font-size: 1.7rem; color: var(--s420-gold); }
.s420-menu-cta {
  margin-top: 14px; width: 100%; justify-content: center;
  background: linear-gradient(135deg, var(--s420-gold), var(--s420-brown));
  color: #1A1A1A; padding: 12px; font-size: 1.5rem;
}

/* ---------- Hero carousel ----------------------------------------------- */
.s420-hero {
  position: relative; overflow: hidden;
  border-bottom: 2px solid var(--s420-brown);
}
.s420-hero-slide {
  display: none; position: relative;
  padding: 26px 16px 30px;
  background-size: cover; background-position: center;
}
.s420-hero-slide.s420-active { display: block; animation: s420fade 0.6s ease; }
@keyframes s420fade { from { opacity: 0; } to { opacity: 1; } }
.s420-hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0.35), rgba(26,26,26,0.85));
}
.s420-hero-inner { position: relative; z-index: 2; }
.s420-hero-tag {
  display: inline-block; background: var(--s420-sky); color: #1A1A1A;
  font-size: 1.15rem; font-weight: 800; padding: 4px 10px;
  border-radius: 20px; letter-spacing: 0.08em; text-transform: uppercase;
}
.s420-hero h1 {
  font-size: 2.6rem; line-height: 1.2; margin: 10px 0 6px;
  color: var(--s420-cream);
}
.s420-hero h1 b { color: var(--s420-gold); }
.s420-hero p { font-size: 1.4rem; color: #ecd9b6; margin-bottom: 14px; }
.s420-hero-cta { display: flex; gap: 8px; flex-wrap: wrap; }
.s420-hero-dots {
  position: relative; z-index: 3;
  display: flex; justify-content: center; gap: 6px;
  margin-top: -8px; padding-bottom: 12px;
}
.s420-hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.35); cursor: pointer; border: none;
}
.s420-hero-dot.s420-active { background: var(--s420-gold); width: 22px; border-radius: 6px; }

/* ---------- Section frame ----------------------------------------------- */
.s420-section { padding: 22px 14px 6px; }
.s420-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.s420-section-title {
  font-size: 1.85rem; font-weight: 800; color: var(--s420-cream);
  display: flex; align-items: center; gap: 8px;
}
.s420-section-title i { color: var(--s420-gold); font-size: 2rem; }
.s420-section-link { font-size: 1.25rem; color: var(--s420-sky); font-weight: 600; }

/* ---------- Category tabs ---------------------------------------------- */
.s420-cat-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px;
  scrollbar-width: none;
}
.s420-cat-tabs::-webkit-scrollbar { display: none; }
.s420-cat-tab {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 20px;
  background: rgba(135, 206, 235, 0.1); color: var(--s420-cream);
  border: 1px solid var(--s420-line); font-size: 1.3rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
}
.s420-cat-tab.s420-active {
  background: linear-gradient(135deg, var(--s420-gold), var(--s420-brown));
  color: #1A1A1A; border-color: transparent;
}

/* ---------- Game grid & cards ------------------------------------------ */
.s420-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.s420-game-card {
  background: linear-gradient(160deg, #2a1810, #1A1A1A);
  border: 1px solid var(--s420-line); border-radius: 12px;
  overflow: hidden; position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.s420-game-card:active { transform: scale(0.97); }
.s420-game-thumb {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
}
.s420-game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.s420-game-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(26,26,26,0.85));
}
.s420-game-play {
  position: absolute; top: 6px; right: 6px; z-index: 2;
  background: rgba(0, 0, 0, 0.55); color: var(--s420-sky);
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.s420-game-name {
  position: absolute; bottom: 6px; left: 8px; right: 8px; z-index: 2;
  font-size: 1.2rem; font-weight: 700; color: var(--s420-cream);
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.s420-game-tag {
  position: absolute; top: 6px; left: 6px; z-index: 2;
  background: var(--s420-brown); color: var(--s420-cream);
  font-size: 1rem; font-weight: 700; padding: 2px 6px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.s420-game-tag.hot { background: linear-gradient(135deg, #d44, #822); }
.s420-game-tag.new { background: linear-gradient(135deg, var(--s420-sky), var(--s420-blue)); color: #1A1A1A; }

/* ---------- Feature / promo blocks ------------------------------------- */
.s420-features {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.s420-feature {
  background: linear-gradient(160deg, #2C3E50, #1A1A1A);
  border: 1px solid var(--s420-line); border-radius: 12px;
  padding: 14px 12px; text-align: center;
}
.s420-feature i { font-size: 2.4rem; color: var(--s420-gold); }
.s420-feature h3 { font-size: 1.4rem; color: var(--s420-cream); margin: 6px 0 4px; }
.s420-feature p { font-size: 1.2rem; color: #c7bda9; }

.s420-promo-banner {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(120deg, var(--s420-brown), var(--s420-sienna));
  border-radius: 14px; padding: 14px; color: var(--s420-cream);
  margin: 6px 0; border: 1px solid var(--s420-gold);
}
.s420-promo-banner i { font-size: 2.8rem; color: var(--s420-gold); }
.s420-promo-banner h3 { font-size: 1.6rem; color: var(--s420-cream); }
.s420-promo-banner p { font-size: 1.25rem; color: #f3e6cf; }

/* ---------- SEO long text ---------------------------------------------- */
.s420-prose {
  background: rgba(44, 62, 80, 0.35);
  border: 1px solid var(--s420-line); border-radius: 14px;
  padding: 16px; color: #ddd3bf;
}
.s420-prose h2 { font-size: 1.85rem; color: var(--s420-gold); margin-bottom: 8px; }
.s420-prose h3 { font-size: 1.5rem; color: var(--s420-sky); margin: 14px 0 6px; }
.s420-prose p { font-size: 1.35rem; margin-bottom: 10px; }
.s420-prose ul { padding-left: 18px; margin-bottom: 10px; }
.s420-prose li { font-size: 1.3rem; margin-bottom: 4px; }
.s420-prose a { color: var(--s420-sky); font-weight: 600; }

/* ---------- FAQ -------------------------------------------------------- */
.s420-faq-item {
  background: rgba(26, 26, 26, 0.55);
  border: 1px solid var(--s420-line); border-radius: 10px;
  margin-bottom: 8px; overflow: hidden;
}
.s420-faq-q {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 12px 14px; cursor: pointer;
  font-size: 1.4rem; font-weight: 700; color: var(--s420-cream);
}
.s420-faq-q .s420-faq-chev { transition: transform 0.2s; color: var(--s420-gold); }
.s420-faq-item.s420-open .s420-faq-chev { transform: rotate(180deg); }
.s420-faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 14px; color: #cfc4ab; font-size: 1.3rem;
}
.s420-faq-item.s420-open .s420-faq-a {
  max-height: 500px; padding: 0 14px 12px;
}

/* ---------- Footer ----------------------------------------------------- */
.s420-footer {
  background: linear-gradient(180deg, #1A1A1A, #0d0d0d);
  border-top: 2px solid var(--s420-brown);
  padding: 22px 14px 18px; color: #b6ac96;
}
.s420-footer-cols {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.s420-footer h4 {
  font-size: 1.35rem; color: var(--s420-gold);
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.08em;
}
.s420-footer a {
  display: block; color: #c7bda9; font-size: 1.25rem;
  padding: 4px 0;
}
.s420-footer a:hover { color: var(--s420-sky); }
.s420-footer-bottom {
  margin-top: 16px; padding-top: 12px;
  border-top: 1px solid var(--s420-line);
  font-size: 1.15rem; color: #8a8273; text-align: center;
}

/* ---------- Mobile bottom nav (5 buttons) ------------------------------ */
.s420-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, #2C3E50, #0d0d0d);
  border-top: 2px solid var(--s420-brown);
  max-width: 430px; margin: 0 auto;
  height: 64px;
}
.s420-bottom-nav button, .s420-bottom-nav a {
  flex: 1 1 0; min-width: 60px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; background: transparent; border: none; cursor: pointer;
  color: #c7bda9; font-size: 1.05rem; font-weight: 600;
  text-decoration: none; transition: color 0.15s, transform 0.15s;
}
.s420-bottom-nav button:active, .s420-bottom-nav a:active { transform: scale(0.92); }
.s420-bottom-nav .s420-nav-icon { font-size: 2.2rem; line-height: 1; }
.s420-bottom-nav .s420-active-tab { color: var(--s420-gold); }
.s420-bottom-nav .s420-nav-cta { color: var(--s420-gold); }
.s420-bottom-nav .s420-nav-cta .s420-nav-icon {
  background: linear-gradient(135deg, var(--s420-gold), var(--s420-brown));
  color: #1A1A1A; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(244, 196, 75, 0.4);
}

/* ---------- Utilities -------------------------------------------------- */
.s420-hidden { display: none !important; }
.s420-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s, transform 0.5s; }
.s420-reveal.s420-in { opacity: 1; transform: none; }
.s420-row { display: flex; gap: 8px; flex-wrap: wrap; }
.s420-center { text-align: center; }
.s420-mt8 { margin-top: 8px; } .s420-mt16 { margin-top: 16px; }

/* ---------- Desktop (>= 769px) ---------------------------------------- */
@media (min-width: 769px) {
  .s420-bottom-nav { display: none; }
  .s420-shell { max-width: 960px; }
  .s420-game-grid { grid-template-columns: repeat(6, 1fr); }
  .s420-features { grid-template-columns: repeat(4, 1fr); }
  main { padding-bottom: 24px; }
  .s420-footer-cols { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Small phone tweaks ---------------------------------------- */
@media (max-width: 360px) {
  .s420-brand-name { font-size: 1.5rem; }
  .s420-hero h1 { font-size: 2.2rem; }
  .s420-btn { padding: 8px 10px; font-size: 1.25rem; }
}
