/* =========================================================================
   D88 — theme-12fc.css
   All custom classes use the w12fc- prefix.
   Mobile-first: viewport capped at 430px, scaled up on desktop.
   Palette: #0000FF (brand blue) + #2D2D2D (dark) on a dark backdrop.
   ========================================================================= */

:root {
  --w12fc-primary: #0000FF;
  --w12fc-primary-soft: #3a4cff;
  --w12fc-primary-deep: #0000b3;
  --w12fc-bg: #2D2D2D;
  --w12fc-bg-deep: #1c1c1f;
  --w12fc-bg-card: #353539;
  --w12fc-bg-elev: #3f3f44;
  --w12fc-text: #f4f6ff;
  --w12fc-text-muted: #b6b8c6;
  --w12fc-accent: #ffd140;
  --w12fc-accent-2: #ff4d6d;
  --w12fc-border: rgba(255,255,255,0.08);
  --w12fc-radius: 14px;
  --w12fc-radius-sm: 10px;
  --w12fc-shadow: 0 10px 30px rgba(0,0,0,0.35);
  --w12fc-maxw: 430px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: radial-gradient(120% 80% at 50% 0%, #3a3a52 0%, var(--w12fc-bg) 45%, var(--w12fc-bg-deep) 100%);
  color: var(--w12fc-text);
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  font-size: 1.5rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

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

.w12fc-container {
  width: 100%;
  padding: 0 1.4rem;
}

/* ===================== Header ===================== */
.w12fc-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(28,28,31,0.96), rgba(45,45,45,0.88));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--w12fc-border);
  transition: padding .2s ease, background .2s ease;
}
.w12fc-header-compact {
  background: rgba(20,20,23,0.98);
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
.w12fc-header-inner {
  max-width: var(--w12fc-maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.4rem;
  gap: 0.8rem;
}
.w12fc-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}
.w12fc-brand-logo {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--w12fc-primary), var(--w12fc-primary-soft));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  box-shadow: 0 4px 14px rgba(0,0,255,0.45);
  flex-shrink: 0;
}
.w12fc-brand-name {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
}
.w12fc-brand-name span { color: var(--w12fc-accent); }

.w12fc-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.w12fc-menu-btn {
  background: transparent;
  border: 1px solid var(--w12fc-border);
  color: var(--w12fc-text);
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.7rem;
  flex-shrink: 0;
}

.w12fc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
  min-height: 38px;
  line-height: 1;
}
.w12fc-btn:active { transform: scale(0.96); }
.w12fc-btn-login {
  background: transparent;
  color: var(--w12fc-text);
  border: 1px solid var(--w12fc-primary-soft);
}
.w12fc-btn-register {
  background: linear-gradient(135deg, var(--w12fc-primary), var(--w12fc-primary-soft));
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,255,0.35);
}
.w12fc-btn-accent {
  background: linear-gradient(135deg, var(--w12fc-accent), #ff9f1c);
  color: #2D2D2D;
  box-shadow: 0 6px 16px rgba(255,209,64,0.35);
}
.w12fc-btn-block { display: flex; width: 100%; }
.w12fc-btn-lg { padding: 1.1rem 1.6rem; font-size: 1.5rem; min-height: 48px; }

/* Hide login text on very small screens */
@media (max-width: 360px) {
  .w12fc-btn-login .w12fc-btn-label { display: none; }
}

/* ===================== Mobile menu ===================== */
.w12fc-mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: 82%;
  max-width: 320px;
  height: 100vh;
  background: var(--w12fc-bg-deep);
  z-index: 9999;
  transform: translateX(110%);
  transition: transform .25s ease;
  padding: 7rem 1.6rem 2rem;
  overflow-y: auto;
  border-left: 1px solid var(--w12fc-border);
  box-shadow: -10px 0 30px rgba(0,0,0,0.4);
}
.w12fc-mobile-menu.w12fc-menu-open { transform: translateX(0); }
.w12fc-mobile-menu a {
  display: block;
  padding: 1rem 1rem;
  border-radius: 10px;
  color: var(--w12fc-text);
  font-size: 1.45rem;
  border-bottom: 1px solid var(--w12fc-border);
}
.w12fc-mobile-menu a:hover { background: var(--w12fc-bg-card); color: var(--w12fc-accent); }
.w12fc-mobile-menu h4 {
  color: var(--w12fc-accent);
  font-size: 1.3rem;
  margin: 1.4rem 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.w12fc-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.w12fc-menu-overlay.w12fc-menu-open { opacity: 1; pointer-events: auto; }

/* ===================== Hero ===================== */
.w12fc-main { padding-top: 6.4rem; }
@media (max-width: 768px) {
  .w12fc-main { padding-bottom: 84px; }
}

.w12fc-hero {
  padding: 1.6rem 1.4rem 0.8rem;
  text-align: center;
}
.w12fc-hero h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 0 0 0.8rem;
  background: linear-gradient(90deg, #fff, var(--w12fc-primary-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.w12fc-hero p {
  color: var(--w12fc-text-muted);
  font-size: 1.45rem;
  margin: 0 auto 1.2rem;
  max-width: 36ch;
}
.w12fc-hero-cta {
  display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap;
}

/* ===================== Carousel ===================== */
.w12fc-carousel {
  position: relative;
  margin: 1rem 1.4rem 1.2rem;
  border-radius: var(--w12fc-radius);
  overflow: hidden;
  box-shadow: var(--w12fc-shadow);
}
.w12fc-carousel-track { position: relative; }
.w12fc-carousel-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.w12fc-carousel-slide.w12fc-slide-active { display: block; }
.w12fc-carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.w12fc-carousel-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.2rem 1rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  color: #fff;
}
.w12fc-carousel-caption strong { font-size: 1.6rem; display: block; }
.w12fc-carousel-caption span { font-size: 1.25rem; color: var(--w12fc-accent); }
.w12fc-carousel-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.w12fc-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none; cursor: pointer;
}
.w12fc-carousel-dot.w12fc-dot-active { background: var(--w12fc-accent); width: 22px; border-radius: 4px; }

/* ===================== Section ===================== */
.w12fc-section {
  padding: 1.6rem 1.4rem;
}
.w12fc-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; gap: 0.6rem;
}
.w12fc-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  display: flex; align-items: center; gap: 0.6rem;
  margin: 0;
}
.w12fc-section-title i { color: var(--w12fc-accent); }
.w12fc-section-link {
  font-size: 1.25rem;
  color: var(--w12fc-primary-soft);
  font-weight: 600;
}

/* ===================== Game grid ===================== */
.w12fc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.w12fc-grid-4 { grid-template-columns: repeat(4, 1fr); }
.w12fc-card {
  background: var(--w12fc-bg-card);
  border: 1px solid var(--w12fc-border);
  border-radius: var(--w12fc-radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  display: block;
  text-align: center;
}
.w12fc-card:hover {
  transform: translateY(-3px);
  border-color: var(--w12fc-primary-soft);
  box-shadow: 0 8px 20px rgba(0,0,255,0.25);
}
.w12fc-card-img {
  width: 100%; aspect-ratio: 1/1;
  object-fit: cover;
  background: #000;
}
.w12fc-card-name {
  font-size: 1.15rem;
  color: var(--w12fc-text);
  padding: 0.5rem 0.4rem;
  line-height: 1.2;
  min-height: 2.4em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.w12fc-cat-tag {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: rgba(0,0,255,0.25);
  color: var(--w12fc-primary-soft);
  border: 1px solid rgba(58,76,255,0.4);
  margin-bottom: 0.8rem;
}

/* ===================== Features / Info blocks ===================== */
.w12fc-info {
  background: var(--w12fc-bg-card);
  border-radius: var(--w12fc-radius);
  padding: 1.4rem;
  border: 1px solid var(--w12fc-border);
  margin-bottom: 1rem;
}
.w12fc-info h2 {
  font-size: 1.7rem; margin: 0 0 0.6rem; color: #fff;
}
.w12fc-info h3 {
  font-size: 1.4rem; margin: 1rem 0 0.4rem; color: var(--w12fc-accent);
}
.w12fc-info p { color: var(--w12fc-text-muted); font-size: 1.35rem; margin: 0 0 0.6rem; line-height: 1.55; }
.w12fc-info ul { padding-left: 1.4rem; color: var(--w12fc-text-muted); }
.w12fc-info li { margin-bottom: 0.4rem; font-size: 1.32rem; line-height: 1.5; }

.w12fc-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.w12fc-feature {
  background: var(--w12fc-bg-card);
  border: 1px solid var(--w12fc-border);
  border-radius: var(--w12fc-radius-sm);
  padding: 1rem;
  text-align: center;
}
.w12fc-feature i { font-size: 2.2rem; color: var(--w12fc-primary-soft); margin-bottom: 0.4rem; }
.w12fc-feature b { display: block; color: #fff; font-size: 1.3rem; margin-bottom: 0.2rem; }
.w12fc-feature span { color: var(--w12fc-text-muted); font-size: 1.15rem; line-height: 1.4; }

/* ===================== Steps ===================== */
.w12fc-steps { counter-reset: step; padding-left: 0; list-style: none; margin: 0; }
.w12fc-steps li {
  position: relative;
  padding: 0.6rem 0 0.6rem 3.2rem;
  margin-bottom: 0.6rem;
  border-left: 2px solid var(--w12fc-primary-soft);
  padding-left: 2.6rem;
  margin-left: 1rem;
  color: var(--w12fc-text-muted);
  font-size: 1.32rem; line-height: 1.5;
}
.w12fc-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -1.4rem; top: 0.5rem;
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--w12fc-primary), var(--w12fc-primary-soft));
  color: #fff;
  border-radius: 50%;
  font-size: 1.2rem; font-weight: 700;
  display: grid; place-items: center;
}

/* ===================== Testimonials ===================== */
.w12fc-testi {
  background: var(--w12fc-bg-card);
  border-radius: var(--w12fc-radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--w12fc-accent);
}
.w12fc-testi p { margin: 0 0 0.5rem; font-size: 1.3rem; color: var(--w12fc-text); line-height: 1.5; }
.w12fc-testi b { color: var(--w12fc-accent); font-size: 1.2rem; }
.w12fc-stars { color: var(--w12fc-accent); font-size: 1.1rem; letter-spacing: 1px; }

/* ===================== Winners ===================== */
.w12fc-winner-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 0.9rem;
  background: var(--w12fc-bg-card);
  border-radius: var(--w12fc-radius-sm);
  margin-bottom: 0.5rem;
  border: 1px solid var(--w12fc-border);
}
.w12fc-winner-row b { color: #fff; font-size: 1.3rem; }
.w12fc-winner-row span { color: var(--w12fc-accent); font-weight: 700; font-size: 1.3rem; }
.w12fc-winner-row small { color: var(--w12fc-text-muted); font-size: 1.1rem; display: block; }

/* ===================== Payment pills ===================== */
.w12fc-pills {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.w12fc-pill {
  background: var(--w12fc-bg-card);
  border: 1px solid var(--w12fc-border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  color: var(--w12fc-text);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.w12fc-pill i { color: var(--w12fc-primary-soft); }

/* ===================== RTP table ===================== */
.w12fc-table {
  width: 100%; border-collapse: collapse;
  background: var(--w12fc-bg-card);
  border-radius: var(--w12fc-radius-sm);
  overflow: hidden;
  font-size: 1.25rem;
}
.w12fc-table th, .w12fc-table td {
  padding: 0.7rem 0.8rem; text-align: left;
  border-bottom: 1px solid var(--w12fc-border);
}
.w12fc-table th { background: var(--w12fc-bg-elev); color: var(--w12fc-accent); font-size: 1.2rem; }
.w12fc-table td { color: var(--w12fc-text-muted); }
.w12fc-table b { color: #fff; }

/* ===================== FAQ ===================== */
.w12fc-faq { border-top: 1px solid var(--w12fc-border); }
.w12fc-faq-item { border-bottom: 1px solid var(--w12fc-border); padding: 0.8rem 0; }
.w12fc-faq-item h3 {
  margin: 0 0 0.4rem; font-size: 1.4rem; color: var(--w12fc-accent);
}
.w12fc-faq-item p { margin: 0; color: var(--w12fc-text-muted); font-size: 1.3rem; line-height: 1.55; }

/* ===================== CTA banner ===================== */
.w12fc-cta {
  background: linear-gradient(135deg, var(--w12fc-primary-deep), var(--w12fc-primary-soft));
  border-radius: var(--w12fc-radius);
  padding: 1.6rem;
  text-align: center;
  margin: 1rem 1.4rem;
  box-shadow: 0 10px 30px rgba(0,0,255,0.35);
}
.w12fc-cta h2 { color: #fff; margin: 0 0 0.4rem; font-size: 1.8rem; }
.w12fc-cta p { color: rgba(255,255,255,0.85); margin: 0 0 1rem; font-size: 1.3rem; }

/* ===================== Footer ===================== */
.w12fc-footer {
  background: var(--w12fc-bg-deep);
  border-top: 1px solid var(--w12fc-border);
  padding: 1.6rem 1.4rem 2rem;
  color: var(--w12fc-text-muted);
  font-size: 1.25rem;
}
.w12fc-footer h3 { color: #fff; font-size: 1.35rem; margin: 1rem 0 0.5rem; }
.w12fc-footer p { line-height: 1.55; }
.w12fc-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.6rem 0 1rem;
}
.w12fc-footer-links a {
  color: var(--w12fc-text);
  background: var(--w12fc-bg-card);
  border: 1px solid var(--w12fc-border);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 1.18rem;
}
.w12fc-footer-links a:hover { color: var(--w12fc-accent); border-color: var(--w12fc-primary-soft); }
.w12fc-promo-row {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.6rem 0 1rem;
}
.w12fc-promo-row .w12fc-btn { flex: 1 1 auto; min-width: 120px; }
.w12fc-copy {
  border-top: 1px solid var(--w12fc-border);
  margin-top: 1rem; padding-top: 1rem;
  text-align: center; font-size: 1.15rem; color: var(--w12fc-text-muted);
}

/* ===================== Bottom nav ===================== */
.w12fc-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, rgba(40,40,46,0.98), rgba(20,20,23,1));
  border-top: 1px solid var(--w12fc-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}
.w12fc-bottomnav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: var(--w12fc-text-muted);
  font-size: 1.05rem;
  cursor: pointer;
  min-width: 60px;
  min-height: 60px;
  position: relative;
  transition: color .15s ease;
}
.w12fc-bottomnav-btn i,
.w12fc-bottomnav-btn .material-icons-outlined,
.w12fc-bottomnav-btn ion-icon {
  font-size: 22px;
}
.w12fc-bottomnav-btn ion-icon { width: 24px; height: 24px; }
.w12fc-bottomnav-btn:active { transform: scale(0.92); }
.w12fc-bottomnav-btn:hover { color: var(--w12fc-primary-soft); }
.w12fc-bottomnav-active { color: var(--w12fc-accent); }
.w12fc-bottomnav-active::after {
  content: "";
  position: absolute; top: 0;
  width: 26px; height: 3px;
  background: var(--w12fc-accent);
  border-radius: 0 0 4px 4px;
}
.w12fc-bottomnav-badge {
  position: absolute;
  top: 6px; right: 18px;
  background: var(--w12fc-accent-2);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0 5px;
  min-width: 16px;
  height: 16px;
  display: grid; place-items: center;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .w12fc-bottomnav { display: none; }
  .w12fc-main { padding-bottom: 0; }
}

/* Desktop tweaks */
@media (min-width: 600px) {
  .w12fc-grid { grid-template-columns: repeat(4, 1fr); }
  .w12fc-grid-4 { grid-template-columns: repeat(6, 1fr); }
  .w12fc-feature-grid { grid-template-columns: repeat(3, 1fr); }
}

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

/* ===================== Toast ===================== */
.w12fc-toast {
  position: fixed;
  left: 50%; bottom: 84px;
  transform: translate(-50%, 20px);
  background: rgba(28,28,31,0.97);
  color: #fff;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-size: 1.3rem;
  z-index: 10000;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  border: 1px solid var(--w12fc-primary-soft);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}
.w12fc-toast.w12fc-toast-show { opacity: 1; transform: translate(-50%, 0); }

/* ===================== Utility ===================== */
.w12fc-text-center { text-align: center; }
.w12fc-mt { margin-top: 1rem; }
.w12fc-mb { margin-bottom: 1rem; }
.w12fc-divider {
  height: 1px; background: var(--w12fc-border); margin: 1.4rem 0; border: none;
}
.w12fc-kw { color: var(--w12fc-accent); font-weight: 700; }
.w12fc-link-text {
  color: var(--w12fc-primary-soft);
  font-weight: 700;
  border-bottom: 1px dashed rgba(58,76,255,0.5);
}
.w12fc-link-text:hover { color: var(--w12fc-accent); }
