/* ============================================================
   Sunwin Ltd - Theme Stylesheet
   All custom classes use the "v672-" prefix.
   Palette: #FFEF94 | #FAFAD2 | #FFB347 | #8FBC8F | #1A1A2E
   Mobile-first. Root font 62.5% (1rem = 10px).
   Comments in English only.
   ============================================================ */

:root {
  --v672-primary: #FFB347;
  --v672-accent: #FFEF94;
  --v672-soft: #FAFAD2;
  --v672-mint: #8FBC8F;
  --v672-bg: #1A1A2E;
  --v672-bg2: #16162a;
  --v672-card: #232342;
  --v672-card2: #2a2a4a;
  --v672-text: #FAFAD2;
  --v672-text-dim: #c9c9e0;
  --v672-gold: #FFB347;
  --v672-danger: #ff6b6b;
  --v672-radius: 1.2rem;
  --v672-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.35);
  --v672-header-h: 5.6rem;
  --v672-bottom-h: 6.2rem;
}

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

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--v672-bg);
  color: var(--v672-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--v672-gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Layout ---------- */
.v672-container { width: 100%; padding: 0 1.2rem; }
.v672-wrapper { padding-top: var(--v672-header-h); padding-bottom: calc(var(--v672-bottom-h) + 1rem); }
.v672-section { padding: 2rem 0; }
.v672-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--v672-accent);
  margin-bottom: 1rem; text-align: center;
}
.v672-section-title .material-icons,
.v672-section-title i { vertical-align: middle; color: var(--v672-gold); margin-right: 0.4rem; }

/* ---------- Header ---------- */
.v672-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--v672-bg2), var(--v672-bg));
  border-bottom: 0.2rem solid var(--v672-primary);
  max-width: 430px; margin: 0 auto;
}
.v672-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--v672-header-h); padding: 0 1rem;
}
.v672-logo { display: flex; align-items: center; gap: 0.6rem; }
.v672-logo img { width: 2.8rem; height: 2.8rem; border-radius: 0.6rem; }
.v672-logo-text { font-size: 1.6rem; font-weight: 800; color: var(--v672-accent); letter-spacing: 0.05rem; }
.v672-logo-text span { color: var(--v672-primary); }

.v672-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.v672-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 3.6rem; padding: 0 1.2rem; border: none; border-radius: 2rem;
  font-size: 1.3rem; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.v672-btn:hover { text-decoration: none; transform: translateY(-0.1rem); }
.v672-btn:active { transform: scale(0.96); }
.v672-btn-register { background: linear-gradient(135deg, var(--v672-primary), #ff9a3c); color: #1A1A2E; }
.v672-btn-login { background: transparent; color: var(--v672-accent); border: 0.15rem solid var(--v672-primary); }
.v672-btn-block { display: flex; width: 100%; margin: 0.6rem 0; }
.v672-btn-gold { background: linear-gradient(135deg, var(--v672-accent), var(--v672-primary)); color: #1A1A2E; }

#v672-menu-toggle {
  background: transparent; border: none; color: var(--v672-accent);
  font-size: 2.2rem; cursor: pointer; padding: 0.4rem; min-width: 4.4rem; min-height: 4.4rem;
}

/* ---------- Mobile Menu ---------- */
.v672-mobile-menu {
  position: fixed; top: var(--v672-header-h); left: 0; right: 0; z-index: 9999;
  background: var(--v672-bg2); border-bottom: 0.2rem solid var(--v672-primary);
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  max-width: 430px; margin: 0 auto;
}
.v672-mobile-menu.v672-menu-open { max-height: 60rem; }
.v672-mobile-menu ul { list-style: none; padding: 0.6rem 1rem; }
.v672-mobile-menu li { border-bottom: 0.1rem solid rgba(255, 179, 71, 0.15); }
.v672-mobile-menu li:last-child { border-bottom: none; }
.v672-mobile-menu a {
  display: flex; align-items: center; gap: 0.8rem; padding: 1.1rem 0.4rem;
  color: var(--v672-text); font-size: 1.4rem; font-weight: 600;
}
.v672-mobile-menu a:hover { color: var(--v672-gold); text-decoration: none; }
.v672-mobile-menu .material-icons,
.v672-mobile-menu i { color: var(--v672-primary); font-size: 1.8rem; }

/* ---------- Hero / Carousel ---------- */
.v672-carousel { position: relative; overflow: hidden; border-radius: var(--v672-radius); margin: 1rem 0; }
.v672-slides { display: flex; }
.v672-slide {
  min-width: 100%; position: relative; opacity: 0; transition: opacity 0.6s ease;
  display: none;
}
.v672-slide.v672-slide-active { opacity: 1; display: block; }
.v672-slide img { width: 100%; height: 18rem; object-fit: cover; border-radius: var(--v672-radius); }
.v672-slide-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(26, 26, 46, 0.92));
  padding: 1.2rem; border-radius: 0 0 var(--v672-radius) var(--v672-radius);
}
.v672-slide-overlay h2 { color: var(--v672-accent); font-size: 1.6rem; margin-bottom: 0.3rem; }
.v672-slide-overlay p { color: var(--v672-text-dim); font-size: 1.2rem; margin-bottom: 0.6rem; }
.v672-carousel-dots { display: flex; justify-content: center; gap: 0.5rem; padding: 0.6rem 0; }
.v672-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%; background: rgba(250, 250, 210, 0.4);
  border: none; cursor: pointer;
}
.v672-dot.v672-dot-active { background: var(--v672-primary); }

/* ---------- Promo Link Block ---------- */
.v672-promo-banner {
  background: linear-gradient(135deg, var(--v672-mint), #6fa86f);
  border-radius: var(--v672-radius); padding: 1.4rem; margin: 1rem 0;
  text-align: center; color: #1A1A2E;
}
.v672-promo-banner h3 { font-size: 1.6rem; margin-bottom: 0.4rem; color: #1A1A2E; }
.v672-promo-banner p { font-size: 1.25rem; margin-bottom: 0.8rem; color: #232342; }
.v672-link-text { color: var(--v672-gold); font-weight: 700; cursor: pointer; }
.v672-link-text:hover { text-decoration: underline; }

/* ---------- Game Grid ---------- */
.v672-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.v672-game-item {
  background: var(--v672-card); border-radius: 1rem; overflow: hidden;
  text-align: center; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 0.1rem solid rgba(255, 179, 71, 0.15);
}
.v672-game-item:hover { transform: translateY(-0.2rem); box-shadow: var(--v672-shadow); text-decoration: none; }
.v672-game-item img { width: 100%; height: 7.5rem; object-fit: cover; }
.v672-game-item .v672-game-name {
  font-size: 1.05rem; color: var(--v672-text); padding: 0.5rem 0.3rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.v672-filter-bar { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.6rem 0; margin-bottom: 0.6rem; }
.v672-filter-tab {
  padding: 0.6rem 1.2rem; border-radius: 2rem; background: var(--v672-card);
  color: var(--v672-text-dim); font-size: 1.2rem; font-weight: 600; border: none; cursor: pointer;
  white-space: nowrap;
}
.v672-filter-tab.v672-filter-tab-active { background: var(--v672-primary); color: #1A1A2E; }

/* ---------- Cards ---------- */
.v672-card {
  background: var(--v672-card); border-radius: var(--v672-radius); padding: 1.4rem;
  margin: 0.8rem 0; box-shadow: var(--v672-shadow);
  border-left: 0.3rem solid var(--v672-primary);
}
.v672-card h3 { color: var(--v672-accent); font-size: 1.5rem; margin-bottom: 0.6rem; }
.v672-card p { color: var(--v672-text-dim); font-size: 1.25rem; margin-bottom: 0.6rem; line-height: 1.6rem; }
.v672-card ul { padding-left: 1.4rem; color: var(--v672-text-dim); }
.v672-card li { margin-bottom: 0.4rem; font-size: 1.25rem; line-height: 1.6rem; }

.v672-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.v672-feature {
  background: var(--v672-card2); border-radius: 1rem; padding: 1rem; text-align: center;
}
.v672-feature i, .v672-feature .material-icons { font-size: 2.4rem; color: var(--v672-primary); }
.v672-feature h4 { color: var(--v672-accent); font-size: 1.2rem; margin: 0.4rem 0; }
.v672-feature p { color: var(--v672-text-dim); font-size: 1.1rem; }

/* ---------- Testimonials ---------- */
.v672-testimonial {
  background: var(--v672-card2); border-radius: 1rem; padding: 1rem; margin: 0.6rem 0;
  border-left: 0.3rem solid var(--v672-mint);
}
.v672-testimonial .v672-stars { color: var(--v672-gold); margin-bottom: 0.3rem; }
.v672-testimonial p { color: var(--v672-text-dim); font-size: 1.2rem; font-style: italic; }
.v672-testimonial .v672-author { color: var(--v672-accent); font-size: 1.1rem; margin-top: 0.4rem; font-weight: 600; }

/* ---------- Winners ---------- */
.v672-winner {
  display: flex; align-items: center; gap: 0.8rem; background: var(--v672-card2);
  border-radius: 1rem; padding: 0.8rem; margin: 0.5rem 0;
}
.v672-winner img { width: 3.2rem; height: 3.2rem; border-radius: 50%; }
.v672-winner .v672-winner-name { color: var(--v672-accent); font-size: 1.2rem; font-weight: 700; }
.v672-winner .v672-winner-amount { color: var(--v672-gold); font-size: 1.3rem; font-weight: 800; }

/* ---------- Payment / App CTA ---------- */
.v672-pay-row { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.v672-pay-chip {
  background: var(--v672-card2); color: var(--v672-text); border-radius: 2rem;
  padding: 0.5rem 1rem; font-size: 1.1rem; border: 0.1rem solid var(--v672-mint);
}
.v672-app-cta {
  background: linear-gradient(135deg, var(--v672-primary), var(--v672-accent));
  border-radius: var(--v672-radius); padding: 1.4rem; text-align: center; color: #1A1A2E; margin: 1rem 0;
}
.v672-app-cta h3 { color: #1A1A2E; font-size: 1.6rem; margin-bottom: 0.4rem; }

/* ---------- Footer ---------- */
.v672-footer {
  background: var(--v672-bg2); border-top: 0.2rem solid var(--v672-primary);
  padding: 1.6rem 1.2rem; margin-top: 1rem; color: var(--v672-text-dim);
}
.v672-footer p { font-size: 1.2rem; margin-bottom: 0.8rem; line-height: 1.6rem; }
.v672-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin: 0.6rem 0 1rem; }
.v672-footer-links a { color: var(--v672-soft); font-size: 1.15rem; }
.v672-footer-links a:hover { color: var(--v672-gold); }
.v672-footer-promo { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.8rem 0; }
.v672-footer-promo .v672-btn { flex: 1 1 auto; min-width: 12rem; }
.v672-copyright { font-size: 1.1rem; text-align: center; color: var(--v672-text-dim); padding-top: 0.8rem; border-top: 0.1rem solid rgba(250, 250, 210, 0.1); }

/* ---------- Bottom Navigation ---------- */
.v672-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--v672-bottom-h); background: var(--v672-bg2);
  border-top: 0.2rem solid var(--v672-primary);
  display: flex; justify-content: space-around; align-items: stretch;
  max-width: 430px; margin: 0 auto;
}
.v672-bottom-nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; background: transparent; border: none; color: var(--v672-text-dim);
  font-size: 1.05rem; min-width: 6rem; min-height: 6rem; cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease; text-decoration: none;
}
.v672-bottom-nav-btn:hover { text-decoration: none; color: var(--v672-gold); }
.v672-bottom-nav-btn:active { transform: scale(0.92); }
.v672-bottom-nav-btn .material-icons,
.v672-bottom-nav-btn i,
.v672-bottom-nav-btn ion-icon { font-size: 2.4rem; }
.v672-bottom-nav-btn.v672-nav-active { color: var(--v672-primary); }
.v672-bottom-nav-btn.v672-nav-active .material-icons,
.v672-bottom-nav-btn.v672-nav-active i { color: var(--v672-gold); }
.v672-nav-badge {
  position: absolute; top: 0.6rem; right: 1.6rem; background: var(--v672-danger);
  color: #fff; font-size: 0.9rem; border-radius: 1rem; padding: 0 0.4rem; min-width: 1.4rem; text-align: center;
}
.v672-bottom-nav-btn { position: relative; }

/* ---------- Back to top ---------- */
#v672-back-top {
  position: fixed; right: 1.2rem; bottom: calc(var(--v672-bottom-h) + 1rem); z-index: 1001;
  width: 4rem; height: 4rem; border-radius: 50%; background: var(--v672-primary); color: #1A1A2E;
  border: none; font-size: 2rem; cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease; display: flex; align-items: center; justify-content: center;
}
#v672-back-top.v672-back-top-show { opacity: 1; pointer-events: auto; }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  body { max-width: 430px; }
  .v672-bottom-nav { display: none; }
  .v672-wrapper { padding-bottom: 2rem; }
}

/* Mobile bottom clearance for main content */
@media (max-width: 768px) {
  .v672-wrapper { padding-bottom: calc(var(--v672-bottom-h) + 1.5rem); }
}
