/* ============================================================
   TT88 Login - Shared stylesheet (basefiles)
   Class prefix : w7859-
   Palette      : #FFD700 #2C3E50 #FA8072 #8B0000 #F8F9FA #FF9800
   ============================================================ */

:root {
  --w7859-gold: #FFD700;
  --w7859-navy: #2C3E50;
  --w7859-coral: #FA8072;
  --w7859-dark-red: #8B0000;
  --w7859-light: #F8F9FA;
  --w7859-orange: #FF9800;
  --w7859-bg: #1a2531;
  --w7859-bg-2: #22303f;
  --w7859-text: #f3f5f8;
  --w7859-muted: #b8c4d2;
  --w7859-border: rgba(255, 215, 0, 0.18);
  --w7859-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  --w7859-radius: 14px;
}

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

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

body {
  font-family: "Segoe UI", "Inter", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: linear-gradient(160deg, var(--w7859-bg) 0%, var(--w7859-bg-2) 100%);
  color: var(--w7859-text);
  line-height: 1.5;
  font-size: 1.5rem;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }

a { color: var(--w7859-gold); text-decoration: none; }
a:hover { color: var(--w7859-orange); }

.w7859-container { width: 100%; max-width: 430px; padding: 0 1.2rem; margin: 0 auto; }
.w7859-wrapper { padding: 2rem 1.2rem; }

/* ---------- Header ---------- */
.w7859-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--w7859-navy) 0%, var(--w7859-dark-red) 100%);
  border-bottom: 2px solid var(--w7859-gold);
  box-shadow: var(--w7859-shadow);
}
.w7859-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 1rem;
}
.w7859-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--w7859-gold);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 0.5px;
}
.w7859-logo img { width: 30px; height: 30px; border-radius: 6px; }
.w7859-logo small { display: block; font-size: 1.05rem; color: var(--w7859-light); font-weight: 500; }
.w7859-header-actions { display: flex; align-items: center; gap: 0.5rem; }

.w7859-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  min-height: 38px;
  font-family: inherit;
}
.w7859-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.w7859-btn-primary { background: linear-gradient(90deg, var(--w7859-gold), var(--w7859-orange)); color: var(--w7859-dark-red); }
.w7859-btn-secondary { background: transparent; color: var(--w7859-gold); border: 1.5px solid var(--w7859-gold); }
.w7859-btn-ghost { background: var(--w7859-bg-2); color: var(--w7859-light); }
.w7859-menu-toggle {
  background: transparent;
  border: none;
  color: var(--w7859-gold);
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

/* ---------- Mobile dropdown menu ---------- */
.w7859-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 78%;
  max-width: 320px;
  height: 100vh;
  background: var(--w7859-navy);
  padding: 5rem 1.5rem 2rem;
  z-index: 9999;
  transition: right 0.28s ease;
  overflow-y: auto;
  border-left: 2px solid var(--w7859-gold);
}
.w7859-mobile-menu.w7859-menu-open { right: 0; }
.w7859-mobile-menu h3 { color: var(--w7859-gold); font-size: 1.5rem; margin: 1.2rem 0 0.6rem; }
.w7859-mobile-menu a {
  display: block;
  color: var(--w7859-light);
  padding: 0.85rem 0.5rem;
  border-bottom: 1px dashed rgba(255, 215, 0, 0.15);
  font-size: 1.4rem;
}
.w7859-mobile-menu a:hover { background: rgba(255, 215, 0, 0.08); color: var(--w7859-gold); }
.w7859-menu-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  color: var(--w7859-gold);
  font-size: 2.2rem;
  cursor: pointer;
}
.w7859-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
}
.w7859-overlay.w7859-menu-open { display: block; }

/* ---------- Hero / Carousel ---------- */
.w7859-hero { margin-top: 1rem; }
.w7859-carousel {
  position: relative;
  border-radius: var(--w7859-radius);
  overflow: hidden;
  box-shadow: var(--w7859-shadow);
}
.w7859-slides { position: relative; aspect-ratio: 16 / 9; }
.w7859-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}
.w7859-slide img { width: 100%; height: 100%; object-fit: cover; }
.w7859-slide.w7859-slide-active { opacity: 1; }
.w7859-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: var(--w7859-light);
  font-weight: 700;
  font-size: 1.35rem;
}
.w7859-dot-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 0;
}
.w7859-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.4);
  border: none; cursor: pointer;
}
.w7859-dot.w7859-dot-active { background: var(--w7859-gold); width: 20px; border-radius: 4px; }

.w7859-hero-cta {
  display: flex; gap: 0.8rem; justify-content: center; margin-top: 0.6rem;
}
.w7859-hero-cta .w7859-btn { flex: 1; }

/* ---------- Section heading ---------- */
.w7859-section { padding: 2rem 0 1rem; }
.w7859-section-title {
  font-size: 1.9rem;
  color: var(--w7859-gold);
  margin-bottom: 0.5rem;
  font-weight: 800;
  display: flex; align-items: center; gap: 0.6rem;
}
.w7859-section-title i { font-size: 2.2rem; }
.w7859-section-sub { color: var(--w7859-muted); font-size: 1.3rem; margin-bottom: 1.2rem; }

.w7859-h1 {
  font-size: 2.1rem;
  line-height: 1.3;
  margin: 1.5rem 0;
  color: var(--w7859-light);
  font-weight: 800;
}
.w7859-h1 span { color: var(--w7859-gold); }

.w7859-text-block { color: var(--w7859-muted); font-size: 1.4rem; line-height: 1.7; }
.w7859-text-block p { margin-bottom: 1rem; }
.w7859-text-block a { color: var(--w7859-orange); font-weight: 600; }

/* ---------- Game grid ---------- */
.w7859-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 0.5rem 0 1rem;
}
.w7859-game-card {
  background: var(--w7859-bg-2);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--w7859-border);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.w7859-game-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--w7859-shadow);
  border-color: var(--w7859-gold);
}
.w7859-game-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.w7859-game-card .w7859-game-name {
  padding: 0.5rem;
  font-size: 1.15rem;
  text-align: center;
  color: var(--w7859-light);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.w7859-cat-anchor { scroll-margin-top: 80px; padding-top: 1rem; }

/* ---------- Feature / Info cards ---------- */
.w7859-card-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin: 1rem 0;
}
.w7859-feature-card {
  background: var(--w7859-bg-2);
  border-radius: var(--w7859-radius);
  padding: 1.3rem;
  border-left: 4px solid var(--w7859-gold);
  box-shadow: var(--w7859-shadow);
}
.w7859-feature-card i { font-size: 2.4rem; color: var(--w7859-orange); margin-bottom: 0.6rem; }
.w7859-feature-card h3 { color: var(--w7859-gold); font-size: 1.5rem; margin-bottom: 0.5rem; }
.w7859-feature-card p { color: var(--w7859-muted); font-size: 1.25rem; line-height: 1.55; }

/* ---------- Highlight banner ---------- */
.w7859-banner {
  background: linear-gradient(90deg, var(--w7859-dark-red), var(--w7859-orange));
  border-radius: var(--w7859-radius);
  padding: 1.4rem;
  color: var(--w7859-light);
  margin: 1.5rem 0;
  text-align: center;
  box-shadow: var(--w7859-shadow);
}
.w7859-banner h3 { font-size: 1.7rem; margin-bottom: 0.4rem; }
.w7859-banner p { font-size: 1.25rem; opacity: 0.95; margin-bottom: 0.8rem; }
.w7859-banner .w7859-btn { margin: 0 auto; }

/* ---------- Testimonials ---------- */
.w7859-testimonial {
  background: var(--w7859-bg-2);
  border-radius: var(--w7859-radius);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  border: 1px solid var(--w7859-border);
}
.w7859-testimonial .w7859-stars { color: var(--w7859-gold); font-size: 1.3rem; margin-bottom: 0.4rem; }
.w7859-testimonial p { font-size: 1.3rem; color: var(--w7859-muted); font-style: italic; }
.w7859-testimonial .w7859-author { margin-top: 0.6rem; font-size: 1.15rem; color: var(--w7859-gold); font-weight: 700; }

/* ---------- Winners strip ---------- */
.w7859-winner-list { display: flex; flex-direction: column; gap: 0.5rem; }
.w7859-winner {
  display: flex; justify-content: space-between;
  padding: 0.7rem 1rem;
  background: var(--w7859-bg-2);
  border-radius: 8px;
  font-size: 1.25rem;
}
.w7859-winner span:last-child { color: var(--w7859-gold); font-weight: 700; }

/* ---------- Payment grid ---------- */
.w7859-pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.8rem;
}
.w7859-pay-item {
  background: var(--w7859-light);
  color: var(--w7859-navy);
  border-radius: 8px;
  padding: 0.8rem 0.3rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
}

/* ---------- FAQ ---------- */
.w7859-faq-item {
  background: var(--w7859-bg-2);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.7rem;
  border-left: 3px solid var(--w7859-orange);
}
.w7859-faq-item h4 { color: var(--w7859-gold); font-size: 1.35rem; margin-bottom: 0.4rem; }
.w7859-faq-item p { color: var(--w7859-muted); font-size: 1.25rem; line-height: 1.55; }

/* ---------- CTA block ---------- */
.w7859-cta {
  background: linear-gradient(135deg, var(--w7859-navy), var(--w7859-dark-red));
  border-radius: var(--w7859-radius);
  padding: 1.6rem;
  text-align: center;
  margin: 1.5rem 0;
  border: 1px solid var(--w7859-gold);
}
.w7859-cta h3 { color: var(--w7859-gold); font-size: 1.8rem; margin-bottom: 0.6rem; }
.w7859-cta p { color: var(--w7859-light); font-size: 1.3rem; margin-bottom: 1rem; }

/* ---------- Footer ---------- */
.w7859-footer {
  background: var(--w7859-navy);
  border-top: 2px solid var(--w7859-gold);
  padding: 2rem 1.2rem 1rem;
  margin-top: 2rem;
}
.w7859-footer h4 { color: var(--w7859-gold); font-size: 1.5rem; margin-bottom: 0.7rem; }
.w7859-footer p { color: var(--w7859-muted); font-size: 1.25rem; margin-bottom: 0.8rem; line-height: 1.6; }
.w7859-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; margin: 0.5rem 0 1rem;
}
.w7859-footer-links a {
  color: var(--w7859-light); font-size: 1.25rem;
  text-decoration: underline;
}
.w7859-footer-links a:hover { color: var(--w7859-gold); }
.w7859-footer-buttons {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.8rem 0 1.2rem;
}
.w7859-copyright {
  text-align: center;
  color: var(--w7859-muted);
  font-size: 1.15rem;
  border-top: 1px dashed rgba(255, 215, 0, 0.15);
  padding-top: 1rem;
  margin-top: 1rem;
}

/* ---------- Mobile bottom nav ---------- */
.w7859-bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 62px;
  background: linear-gradient(90deg, var(--w7859-navy), var(--w7859-dark-red));
  border-top: 2px solid var(--w7859-gold);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.4);
}
.w7859-bottom-nav button, .w7859-bottom-nav a {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--w7859-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s ease, transform 0.18s ease;
}
.w7859-bottom-nav button i, .w7859-bottom-nav a i { font-size: 22px; }
.w7859-bottom-nav .material-symbols-outlined { font-size: 24px; }
.w7859-bottom-nav button:hover, .w7859-bottom-nav a:hover { color: var(--w7859-gold); transform: translateY(-2px); }
.w7859-bottom-nav .w7859-active { color: var(--w7859-gold); }

/* ---------- Reveal animation ---------- */
.w7859-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.w7859-reveal.w7859-visible { opacity: 1; transform: translateY(0); }

/* ---------- Mobile bottom padding for nav clearance ---------- */
.w7859-main { padding-bottom: 84px; }

/* ---------- Desktop layout ---------- */
@media (min-width: 769px) {
  body { max-width: 960px; }
  .w7859-container { max-width: 960px; }
  .w7859-header-inner { max-width: 960px; }
  .w7859-game-grid { grid-template-columns: repeat(6, 1fr); }
  .w7859-card-row { grid-template-columns: repeat(4, 1fr); }
  .w7859-bottom-nav { display: none; }
  .w7859-main { padding-bottom: 0; }
}
