/* ===========================================================
   456b basefiles stylesheet
   All custom classes / variables use the wf517- prefix.
   Palette: #0F0F23 (bg) | #87CEEB (sky) | #FF7F50 (coral)
            #40E0D0 (turquoise) | #E65100 (deep orange)
   Mobile canvas: 320-430px. Centered on wide screens.
   =========================================================== */

:root {
  --wf517-bg: #0F0F23;
  --wf517-bg-2: #161634;
  --wf517-bg-3: #1f1f48;
  --wf517-sky: #87CEEB;
  --wf517-coral: #FF7F50;
  --wf517-turq: #40E0D0;
  --wf517-deep: #E65100;
  --wf517-text: #f4f7ff;
  --wf517-muted: #aeb6d8;
  --wf517-line: rgba(135, 206, 235, 0.18);
  --wf517-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  --wf517-radius: 14px;
  --wf517-header-h: 60px;
  --wf517-nav-h: 64px;
  --wf517-maxw: 480px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--wf517-bg);
  color: var(--wf517-text);
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", Roboto, system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.55;
  background-image:
    radial-gradient(circle at 12% 0%, rgba(64, 224, 208, 0.10), transparent 38%),
    radial-gradient(circle at 92% 8%, rgba(255, 127, 80, 0.10), transparent 40%);
}

a { color: var(--wf517-turq); text-decoration: none; }
a:hover { color: var(--wf517-coral); }
img { max-width: 100%; display: block; }

.wf517-wrap {
  width: 100%;
  max-width: var(--wf517-maxw);
  margin: 0 auto;
  padding: 0 14px;
}

/* ---------- Top header (edge-aligned functional head) ---------- */
.wf517-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--wf517-header-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: linear-gradient(180deg, #0c0c20 0%, #14143a 100%);
  border-bottom: 1px solid var(--wf517-line);
}

.wf517-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  min-width: 0;
}
.wf517-logo img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  background: var(--wf517-bg-3);
}
.wf517-logo b {
  font-size: 18px;
  letter-spacing: 0.4px;
  color: var(--wf517-text);
}
.wf517-logo b span { color: var(--wf517-turq); }

.wf517-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wf517-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13.5px;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.wf517-btn-login {
  background: transparent;
  color: var(--wf517-sky);
  border: 1px solid var(--wf517-line);
}
.wf517-btn-login:hover { color: var(--wf517-turq); border-color: var(--wf517-turq); }
.wf517-btn-register {
  background: linear-gradient(135deg, var(--wf517-coral) 0%, var(--wf517-deep) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(230, 81, 0, 0.35);
}
.wf517-btn-register:hover { transform: translateY(-1px); }
.wf517-btn:active { transform: translateY(1px); }

.wf517-menu-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--wf517-line);
  background: var(--wf517-bg-3);
  color: var(--wf517-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.wf517-menu-btn svg { width: 20px; height: 20px; }

/* ---------- Expandable nav drawer ---------- */
.wf517-navmenu {
  position: fixed;
  top: var(--wf517-header-h);
  left: 0;
  right: 0;
  max-width: var(--wf517-maxw);
  margin: 0 auto;
  background: linear-gradient(180deg, #11112c 0%, #181842 100%);
  border-bottom: 1px solid var(--wf517-line);
  padding: 14px 16px 18px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.24s ease, opacity 0.2s ease;
  z-index: 49;
  box-shadow: var(--wf517-shadow);
}
.wf517-navmenu.wf517-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.wf517-navmenu h4 {
  margin: 6px 0 8px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--wf517-sky);
}
.wf517-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.wf517-nav-link {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  background: var(--wf517-bg-3);
  border: 1px solid var(--wf517-line);
  font-size: 13.5px;
  color: var(--wf517-text);
  font-weight: 600;
}
.wf517-nav-link:hover { color: var(--wf517-turq); border-color: var(--wf517-turq); }

body.wf517-menu-open { overflow: hidden; }

/* ---------- Page shell ---------- */
.wf517-main {
  padding-top: 14px;
  padding-bottom: calc(var(--wf517-nav-h) + 24px);
}

.wf517-hero h1 {
  font-size: 22px;
  line-height: 1.3;
  margin: 8px 0 8px;
  color: var(--wf517-text);
}
.wf517-hero h1 em { color: var(--wf517-coral); font-style: normal; }
.wf517-hero p {
  color: var(--wf517-muted);
  font-size: 14px;
  margin: 0 0 14px;
}

/* ---------- Banner carousel ---------- */
.wf517-banner {
  position: relative;
  border-radius: var(--wf517-radius);
  overflow: hidden;
  box-shadow: var(--wf517-shadow);
  margin-bottom: 16px;
  background: var(--wf517-bg-2);
}
.wf517-banner-track {
  position: relative;
  aspect-ratio: 16 / 9;
}
.wf517-banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  cursor: pointer;
}
.wf517-banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wf517-banner-slide.wf517-active {
  opacity: 1;
}
.wf517-banner-cta {
  position: absolute;
  left: 14px;
  bottom: 16px;
  background: linear-gradient(135deg, var(--wf517-coral), var(--wf517-deep));
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(230,81,0,0.4);
}
.wf517-banner-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 6px;
}
.wf517-banner-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
}
.wf517-banner-dot.wf517-active {
  background: var(--wf517-turq);
  width: 18px;
  border-radius: 5px;
}

/* ---------- Section heads / category chips ---------- */
.wf517-section {
  margin: 18px 0 8px;
}
.wf517-section h2 {
  margin: 0 0 10px;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wf517-section h2::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--wf517-coral), var(--wf517-deep));
}
.wf517-section .wf517-sub {
  color: var(--wf517-muted);
  font-size: 13px;
  margin: -4px 0 10px;
}

.wf517-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 8px;
  scrollbar-width: none;
}
.wf517-chips::-webkit-scrollbar { display: none; }
.wf517-chip {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--wf517-line);
  background: var(--wf517-bg-2);
  font-size: 12.5px;
  color: var(--wf517-text);
  cursor: pointer;
}
.wf517-chip:hover { color: var(--wf517-turq); border-color: var(--wf517-turq); }

/* ---------- Game grid (4 cols @320, 5 @ >=375) ---------- */
.wf517-games {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (min-width: 360px) {
  .wf517-games { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 380px) {
  .wf517-games { grid-template-columns: repeat(5, 1fr); gap: 12px; }
}

.wf517-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  background: var(--wf517-bg-2);
  border: 1px solid var(--wf517-line);
  border-radius: 12px;
  padding: 8px 6px 10px;
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.wf517-game:hover {
  transform: translateY(-2px);
  border-color: var(--wf517-turq);
  box-shadow: 0 6px 16px rgba(64, 224, 208, 0.15);
}
.wf517-game-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--wf517-bg-3);
  margin-bottom: 6px;
}
.wf517-game-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wf517-game-name {
  font-size: 11.5px;
  line-height: 1.25;
  color: var(--wf517-text);
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 28px;
}

/* ---------- Info / supplementary blocks ---------- */
.wf517-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 10px 0;
}
.wf517-info-card {
  background: var(--wf517-bg-2);
  border: 1px solid var(--wf517-line);
  border-radius: 12px;
  padding: 12px;
}
.wf517-info-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--wf517-turq);
}
.wf517-info-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--wf517-muted);
}
.wf517-info-card ul {
  margin: 6px 0 0;
  padding-left: 16px;
  font-size: 12.5px;
  color: var(--wf517-muted);
}
.wf517-info-card li { margin-bottom: 3px; }

.wf517-faq { margin: 8px 0; }
.wf517-faq-item {
  background: var(--wf517-bg-2);
  border: 1px solid var(--wf517-line);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
}
.wf517-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--wf517-text);
  font-weight: 600;
  font-size: 13.5px;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.wf517-faq-q::after {
  content: "+";
  color: var(--wf517-coral);
  font-size: 18px;
}
.wf517-faq-item.wf517-open .wf517-faq-q::after { content: "–"; }
.wf517-faq-a {
  display: none;
  padding: 0 14px 12px;
  color: var(--wf517-muted);
  font-size: 13px;
}
.wf517-faq-item.wf517-open .wf517-faq-a { display: block; }

/* ---------- Winners strip (horizontal) ---------- */
.wf517-winners {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  margin: 10px 0;
}
.wf517-winners::-webkit-scrollbar { display: none; }
.wf517-winner {
  flex: 0 0 auto;
  background: var(--wf517-bg-2);
  border: 1px solid var(--wf517-line);
  border-radius: 999px;
  padding: 6px 12px 6px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--wf517-text);
}
.wf517-winner b { color: var(--wf517-turq); }
.wf517-winner i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wf517-coral), var(--wf517-deep));
  color: #fff;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

/* ---------- SEO long-form text ---------- */
.wf517-seo {
  background: var(--wf517-bg-2);
  border: 1px solid var(--wf517-line);
  border-radius: 12px;
  padding: 14px;
  margin: 14px 0;
  color: var(--wf517-muted);
  font-size: 13.5px;
}
.wf517-seo h2 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--wf517-text);
}
.wf517-seo h3 {
  margin: 12px 0 4px;
  font-size: 14px;
  color: var(--wf517-turq);
}
.wf517-seo p { margin: 0 0 8px; }
.wf517-seo a { color: var(--wf517-sky); }

/* ---------- Extended footer (sectioned list) ---------- */
.wf517-ext {
  margin: 22px 0 12px;
  border-top: 1px solid var(--wf517-line);
  padding-top: 18px;
}
.wf517-ext-col { margin-bottom: 16px; }
.wf517-ext-col h3 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--wf517-sky);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.wf517-ext-col p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--wf517-muted);
}
.wf517-ext-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.wf517-ext-list li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: var(--wf517-bg-2);
  border: 1px solid var(--wf517-line);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--wf517-text);
}
.wf517-ext-list li a:hover { color: var(--wf517-turq); border-color: var(--wf517-turq); }

.wf517-ext-promos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.wf517-promo-card {
  background: linear-gradient(135deg, rgba(255,127,80,0.18), rgba(230,81,0,0.12));
  border: 1px solid rgba(255,127,80,0.35);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: transform 0.18s ease;
}
.wf517-promo-card:hover { transform: translateY(-2px); }
.wf517-promo-card h4 {
  margin: 0 0 4px;
  font-size: 13.5px;
  color: var(--wf517-coral);
}
.wf517-promo-card p {
  margin: 0;
  font-size: 12px;
  color: var(--wf517-muted);
}

.wf517-disclaimer {
  background: rgba(64, 224, 208, 0.06);
  border: 1px solid var(--wf517-line);
  border-radius: 12px;
  padding: 12px;
  font-size: 12px;
  color: var(--wf517-muted);
  margin: 6px 0 4px;
}

/* ---------- Footer copyright ---------- */
.wf517-foot {
  text-align: center;
  font-size: 12px;
  color: var(--wf517-muted);
  padding: 14px 0 calc(var(--wf517-nav-h) + 18px);
  border-top: 1px solid var(--wf517-line);
  margin-top: 8px;
}

/* ---------- Mobile bottom nav (brand emphasis band) ---------- */
.wf517-bottomnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  max-width: var(--wf517-maxw);
  margin: 0 auto;
  height: var(--wf517-nav-h);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  background: linear-gradient(180deg, #11112c 0%, #0b0b1e 100%);
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--wf517-deep), var(--wf517-coral), var(--wf517-turq)) 1;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.4);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.wf517-navbtn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  color: var(--wf517-muted);
  font-size: 10.5px;
  font-weight: 600;
  background: transparent;
  border: none;
  padding: 4px 2px;
  cursor: pointer;
  transition: transform 0.22s ease, color 0.2s ease;
}
.wf517-navbtn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 0.2s ease, stroke 0.2s ease, transform 0.22s ease;
}
.wf517-navbtn .wf517-nav-label {
  letter-spacing: 0.2px;
}

/* Active state: monochrome fill + accent indicator */
.wf517-navbtn.wf517-current {
  color: var(--wf517-turq);
  transform: translateY(-4px);
}
.wf517-navbtn.wf517-current svg {
  fill: rgba(64, 224, 208, 0.22);
  stroke: var(--wf517-turq);
}
.wf517-navbtn.wf517-current::after {
  content: "";
  position: absolute;
  top: 2px;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--wf517-coral), var(--wf517-deep));
}

/* Promo center buttons get coral accent */
.wf517-navbtn.wf517-nav-promo { color: var(--wf517-coral); }
.wf517-navbtn.wf517-nav-promo svg { stroke: var(--wf517-coral); }
.wf517-navbtn:hover { transform: translateY(-2px); }

/* Hide bottom nav on very wide screens is intentionally NOT done:
   mobile canvas remains, so nav stays visible. */
