/* l44444 basefiles - theme.css - all classes use w4d5d- prefix */
/* Color palette: #F4A460 #7CFC00 #98FB98 #0D1117 #495057 #00FA9A */

:root {
  --w4d5d-primary: #F4A460;     /* brand accent */
  --w4d5d-accent: #7CFC00;      /* action green */
  --w4d5d-mint: #00FA9A;        /* highlight */
  --w4d5d-bg: #0D1117;          /* dark background */
  --w4d5d-bg-2: #11181f;        /* surface */
  --w4d5d-card: #161d25;        /* card surface */
  --w4d5d-muted: #495057;       /* muted text/border */
  --w4d5d-text: #98FB98;        /* light text */
  --w4d5d-text-soft: rgba(152, 251, 152, 0.82);
  --w4d5d-radius: 14px;
  --w4d5d-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  --w4d5d-maxw: 430px;
  --w4d5d-header-h: 56px;
  --w4d5d-bottom-h: 62px;
}

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

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

body {
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--w4d5d-bg);
  color: var(--w4d5d-text);
  font-size: 1.5rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.w4d5d-wrapper {
  width: 100%;
  max-width: var(--w4d5d-maxw);
  margin: 0 auto;
  position: relative;
}

.w4d5d-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}

/* ============ Header ============ */
.w4d5d-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--w4d5d-header-h);
  background: linear-gradient(180deg, #0f1620 0%, #0D1117 100%);
  border-bottom: 1px solid var(--w4d5d-muted);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.w4d5d-header-inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.w4d5d-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.w4d5d-logo img { width: 30px; height: 30px; border-radius: 8px; }
.w4d5d-logo .w4d5d-brand {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--w4d5d-primary);
  letter-spacing: 0.5px;
}

.w4d5d-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.w4d5d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 20px;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  font-family: inherit;
}
.w4d5d-btn:active { transform: scale(0.95); }
.w4d5d-btn-register {
  background: linear-gradient(135deg, #F4A460 0%, #FFB347 100%);
  color: #1a1205;
  box-shadow: 0 3px 10px rgba(244, 164, 96, 0.35);
}
.w4d5d-btn-login {
  background: linear-gradient(135deg, #7CFC00 0%, #00FA9A 100%);
  color: #04240f;
  box-shadow: 0 3px 10px rgba(124, 252, 0, 0.30);
}

.w4d5d-icon-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--w4d5d-muted);
  background: var(--w4d5d-card);
  color: var(--w4d5d-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.8rem;
}

/* ============ Mobile Menu ============ */
.w4d5d-menu-panel {
  position: fixed;
  top: 0; right: 0;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: #0b1118;
  border-left: 1px solid var(--w4d5d-muted);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform .28s ease;
  padding: 70px 18px 30px;
  overflow-y: auto;
}
.w4d5d-menu-panel.w4d5d-menu-open { transform: translateX(0); }
.w4d5d-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s;
}
.w4d5d-menu-overlay.w4d5d-menu-open { opacity: 1; visibility: visible; }
.w4d5d-menu-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  border-radius: 10px;
  color: var(--w4d5d-text);
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(73, 80, 87, 0.3);
}
.w4d5d-menu-panel a:hover { background: rgba(244, 164, 96, 0.08); color: var(--w4d5d-primary); }
.w4d5d-menu-panel a i.material-icons,
.w4d5d-menu-panel a i.fas { color: var(--w4d5d-mint); font-size: 1.9rem; }
.w4d5d-menu-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: var(--w4d5d-card); border: 1px solid var(--w4d5d-muted);
  border-radius: 50%; color: var(--w4d5d-text); cursor: pointer; font-size: 1.8rem;
}
.w4d5d-no-scroll { overflow: hidden; }

/* ============ Main ============ */
main { padding-top: calc(var(--w4d5d-header-h) + 6px); }

/* Hero */
.w4d5d-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin: 12px 0;
  background: var(--w4d5d-bg-2);
  box-shadow: var(--w4d5d-shadow);
}
.w4d5d-slide {
  display: none;
  position: relative;
}
.w4d5d-slide img { width: 100%; height: 180px; object-fit: cover; }
.w4d5d-slide-active { display: block; }
.w4d5d-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(13,17,23,0.92) 30%, transparent);
  padding: 14px;
}
.w4d5d-slide-cap h2 {
  font-size: 1.9rem; color: var(--w4d5d-primary); margin-bottom: 4px; font-weight: 800;
}
.w4d5d-slide-cap p { font-size: 1.3rem; color: var(--w4d5d-text-soft); }
.w4d5d-hero-cta {
  display: inline-block;
  margin-top: 8px;
  background: linear-gradient(135deg, #F4A460, #FFB347);
  color: #1a1205;
  padding: 8px 18px;
  border-radius: 18px;
  font-weight: 700;
  font-size: 1.35rem;
}

/* Section */
.w4d5d-section { padding: 18px 0; }
.w4d5d-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--w4d5d-primary);
  margin-bottom: 12px;
}
.w4d5d-section-title i { color: var(--w4d5d-accent); }
.w4d5d-section-title .w4d5d-more {
  margin-left: auto;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--w4d5d-mint);
}

/* Tabs */
.w4d5d-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 10px;
  scrollbar-width: none;
}
.w4d5d-tabs::-webkit-scrollbar { display: none; }
.w4d5d-tab {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 16px;
  background: var(--w4d5d-card);
  border: 1px solid var(--w4d5d-muted);
  color: var(--w4d5d-text-soft);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.w4d5d-tab-active {
  background: linear-gradient(135deg, #F4A460, #FFB347);
  color: #1a1205;
  border-color: transparent;
}

/* Game grid */
.w4d5d-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.w4d5d-card {
  background: var(--w4d5d-card);
  border: 1px solid var(--w4d5d-muted);
  border-radius: 12px;
  padding: 6px;
  text-align: center;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  overflow: hidden;
}
.w4d5d-card:active { transform: scale(0.96); }
.w4d5d-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 9px;
}
.w4d5d-card-name {
  font-size: 1.2rem;
  color: var(--w4d5d-text);
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.w4d5d-card-tag {
  display: inline-block;
  font-size: 1rem;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(0, 250, 154, 0.15);
  color: var(--w4d5d-mint);
  margin-top: 4px;
}

/* Promo banner */
.w4d5d-promo {
  background: linear-gradient(135deg, #11251a 0%, #0d1117 100%);
  border: 1px solid rgba(124, 252, 0, 0.35);
  border-radius: 14px;
  padding: 14px;
  margin: 14px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.w4d5d-promo-icon {
  font-size: 2.6rem;
  color: var(--w4d5d-accent);
}
.w4d5d-promo-text { flex: 1; }
.w4d5d-promo-text h3 { font-size: 1.6rem; color: var(--w4d5d-primary); margin-bottom: 3px; }
.w4d5d-promo-text p { font-size: 1.25rem; color: var(--w4d5d-text-soft); }
.w4d5d-promo-btn {
  background: linear-gradient(135deg, #7CFC00, #00FA9A);
  color: #04240f;
  padding: 8px 16px;
  border-radius: 18px;
  font-weight: 700;
  font-size: 1.3rem;
}

/* Info cards */
.w4d5d-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.w4d5d-info-card {
  background: var(--w4d5d-card);
  border: 1px solid var(--w4d5d-muted);
  border-radius: 12px;
  padding: 14px;
}
.w4d5d-info-card h3 {
  font-size: 1.45rem; color: var(--w4d5d-primary); margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.w4d5d-info-card h3 i { color: var(--w4d5d-mint); font-size: 1.7rem; }
.w4d5d-info-card p { font-size: 1.25rem; color: var(--w4d5d-text-soft); line-height: 1.45; }

.w4d5d-text-block {
  background: var(--w4d5d-card);
  border: 1px solid var(--w4d5d-muted);
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
}
.w4d5d-text-block h3 { font-size: 1.6rem; color: var(--w4d5d-primary); margin-bottom: 8px; }
.w4d5d-text-block p { font-size: 1.35rem; color: var(--w4d5d-text-soft); margin-bottom: 8px; line-height: 1.6; }
.w4d5d-text-block ul { padding-left: 18px; color: var(--w4d5d-text-soft); }
.w4d5d-text-block li { font-size: 1.3rem; margin-bottom: 4px; line-height: 1.5; }

/* RTP table */
.w4d5d-rtp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(73,80,87,0.4);
  font-size: 1.3rem;
}
.w4d5d-rtp-row:last-child { border-bottom: none; }
.w4d5d-rtp-bar {
  flex: 1;
  height: 7px;
  background: #1c2530;
  border-radius: 4px;
  margin: 0 10px;
  overflow: hidden;
}
.w4d5d-rtp-fill {
  height: 100%;
  background: linear-gradient(90deg, #F4A460, #00FA9A);
}
.w4d5d-rtp-val { color: var(--w4d5d-mint); font-weight: 700; min-width: 50px; text-align: right; }

/* Winners */
.w4d5d-winner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--w4d5d-card);
  border: 1px solid var(--w4d5d-muted);
  border-radius: 10px;
  padding: 9px;
  margin-bottom: 8px;
}
.w4d5d-winner-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F4A460, #7CFC00);
  display: flex; align-items: center; justify-content: center;
  color: #04240f; font-weight: 800; font-size: 1.4rem;
}
.w4d5d-winner-info { flex: 1; }
.w4d5d-winner-info strong { color: var(--w4d5d-text); font-size: 1.3rem; display: block; }
.w4d5d-winner-info span { color: var(--w4d5d-text-soft); font-size: 1.15rem; }
.w4d5d-winner-amount { color: var(--w4d5d-mint); font-weight: 800; font-size: 1.4rem; }

/* Payment */
.w4d5d-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.w4d5d-pay-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--w4d5d-card);
  border: 1px solid var(--w4d5d-muted);
  border-radius: 18px;
  font-size: 1.2rem;
  color: var(--w4d5d-text);
}
.w4d5d-pay-chip i { color: var(--w4d5d-mint); }

/* FAQ */
.w4d5d-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--w4d5d-primary);
  font-size: 1.4rem;
  padding: 10px 0;
  list-style: none;
  display: flex; align-items: center; gap: 8px;
}
.w4d5d-faq summary::-webkit-details-marker { display: none; }
.w4d5d-faq summary::before {
  content: "+";
  color: var(--w4d5d-mint);
  font-size: 1.8rem;
  margin-left: auto;
}
.w4d5d-faq[open] summary::before { content: "−"; }
.w4d5d-faq p { font-size: 1.3rem; color: var(--w4d5d-text-soft); padding-bottom: 10px; }

/* Reveal animation */
.w4d5d-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.w4d5d-revealed { opacity: 1; transform: translateY(0); }

/* Footer */
.w4d5d-footer {
  background: #0a0f15;
  border-top: 1px solid var(--w4d5d-muted);
  margin-top: 18px;
  padding: 22px 0 calc(var(--w4d5d-bottom-h) + 22px);
}
.w4d5d-footer h4 {
  font-size: 1.5rem; color: var(--w4d5d-primary); margin-bottom: 8px; margin-top: 14px;
}
.w4d5d-footer p, .w4d5d-footer a { font-size: 1.25rem; color: var(--w4d5d-text-soft); }
.w4d5d-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  margin: 10px 0;
}
.w4d5d-footer-links a { padding: 4px 0; border-bottom: 1px dashed rgba(73,80,87,0.3); }
.w4d5d-footer-copy {
  text-align: center; margin-top: 16px; font-size: 1.15rem;
  color: rgba(152,251,152,0.55);
}

/* ============ Bottom Nav ============ */
.w4d5d-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--w4d5d-bottom-h);
  background: linear-gradient(180deg, #0f1620 0%, #060a0f 100%);
  border-top: 1px solid var(--w4d5d-muted);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.w4d5d-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: var(--w4d5d-text-soft);
  font-size: 1.05rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  padding: 4px 0;
  position: relative;
  transition: color .15s;
}
.w4d5d-bottomnav-btn i { font-size: 2.2rem; }
.w4d5d-bottomnav-btn .material-icons { font-size: 2.4rem; }
.w4d5d-bottomnav-btn:hover { color: var(--w4d5d-mint); }
.w4d5d-bottomnav-active { color: var(--w4d5d-primary); }
.w4d5d-bottomnav-active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 28px; height: 3px;
  background: var(--w4d5d-primary);
  border-radius: 0 0 4px 4px;
}
.w4d5d-bottomnav-promo {
  background: linear-gradient(135deg, #F4A460, #7CFC00);
  color: #04240f !important;
  width: 48px; height: 48px;
  border-radius: 50%;
  margin-top: -22px;
  box-shadow: 0 4px 12px rgba(124,252,0,0.35);
  border: 3px solid #060a0f;
}
.w4d5d-bottomnav-promo i { font-size: 2.2rem; }

/* Desktop */
@media (min-width: 769px) {
  .w4d5d-bottomnav { display: none; }
  .w4d5d-wrapper, .w4d5d-header-inner, .w4d5d-container { max-width: 430px; }
}
/* Mobile bottom padding */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}
