/*!
 * f16886 base stylesheet (pg68- prefix)
 * Palette: #1E1E1E bg | #DA70D6 orchid | #FFCC02 gold | #FF7F50 coral
 * Mobile-first, max-width 430px, root font 62.5% (1rem = 10px).
 */

:root {
  --pg68-bg: #1E1E1E;
  --pg68-bg-soft: #24212a;
  --pg68-bg-card: #2a2533;
  --pg68-bg-deep: #161418;
  --pg68-primary: #DA70D6;
  --pg68-gold: #FFCC02;
  --pg68-coral: #FF7F50;
  --pg68-text: #FFFFFF;
  --pg68-text-soft: #E4DFEC;
  --pg68-text-muted: #9d97ab;
  --pg68-border: rgba(218, 112, 214, 0.22);
  --pg68-grad: linear-gradient(135deg, #DA70D6 0%, #FF7F50 100%);
  --pg68-grad-gold: linear-gradient(135deg, #FFCC02 0%, #FF7F50 100%);
  --pg68-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --pg68-radius: 14px;
}

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

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

body {
  font-family: 'Be Vietnam', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--pg68-bg);
  color: var(--pg68-text);
  line-height: 1.5;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ===== Layout helpers ===== */
.pg68-container { width: 100%; padding: 0 1.2rem; }
.pg68-section { padding: 2.4rem 0 1.2rem; }
.pg68-section-title {
  font-size: 1.9rem; font-weight: 800; margin-bottom: 0.4rem;
  background: var(--pg68-grad-gold); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent;
}
.pg68-section-sub { font-size: 1.3rem; color: var(--pg68-text-muted); margin-bottom: 1.4rem; }
.pg68-divider { height: 1px; background: var(--pg68-border); margin: 1.6rem 0; }

/* ===== Header ===== */
.pg68-header {
  position: fixed; top: 0; left: 0; right: 0; max-width: 430px;
  margin: 0 auto; background: rgba(22, 20, 24, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pg68-border); z-index: 1000;
  padding: 0.55rem 0.9rem;
}
.pg68-header-row { display: flex; align-items: center; gap: 0.6rem; }
.pg68-logo {
  display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0;
}
.pg68-logo img { width: 3rem; height: 3rem; border-radius: 8px; }
.pg68-logo-text {
  font-size: 1.8rem; font-weight: 900; letter-spacing: 0.5px;
  background: var(--pg68-grad); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent;
}
.pg68-header-actions { margin-left: auto; display: flex; align-items: center; gap: 0.45rem; }
.pg68-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-size: 1.3rem; font-weight: 700; border-radius: 999px;
  padding: 0.65rem 1.1rem; min-height: 3.4rem; transition: transform 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}
.pg68-btn:active { transform: scale(0.95); }
.pg68-btn-login {
  background: transparent; border: 1.5px solid var(--pg68-primary); color: var(--pg68-text);
}
.pg68-btn-register { background: var(--pg68-grad-gold); color: #1E1E1E; font-weight: 800; }
.pg68-menu-btn {
  width: 3.4rem; height: 3.4rem; border-radius: 10px; font-size: 2rem;
  background: var(--pg68-bg-card); display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--pg68-border);
}

/* ===== Mobile slide-down menu ===== */
.pg68-mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; max-width: 430px; margin: 0 auto;
  background: var(--pg68-bg-deep); border-bottom: 1px solid var(--pg68-border);
  transform: translateY(-100%); transition: transform 0.28s ease; z-index: 9999;
  padding: 5.5rem 1.2rem 1.6rem; box-shadow: var(--pg68-shadow);
}
.pg68-menu-open { transform: translateY(0); }
.pg68-mobile-menu ul { display: flex; flex-direction: column; gap: 0.2rem; }
.pg68-mobile-menu li a {
  display: flex; align-items: center; gap: 0.9rem; padding: 1.1rem 0.8rem;
  font-size: 1.45rem; font-weight: 600; border-radius: 10px; color: var(--pg68-text-soft);
  border-bottom: 1px solid rgba(218, 112, 214, 0.08);
}
.pg68-mobile-menu li a span.icon { font-size: 1.8rem; color: var(--pg68-primary); width: 2.2rem; text-align: center; }
.pg68-mobile-menu li a:active { background: rgba(218, 112, 214, 0.1); }
.pg68-menu-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6);
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease; z-index: 9998;
}
.pg68-menu-overlay.pg68-show { opacity: 1; visibility: visible; }

/* ===== Main wrapper ===== */
.pg68-main { padding-top: 5.4rem; padding-bottom: 8rem; }

/* ===== Carousel ===== */
.pg68-carousel {
  position: relative; border-radius: var(--pg68-radius); overflow: hidden;
  margin: 1rem 0; box-shadow: var(--pg68-shadow); aspect-ratio: 16 / 7;
}
.pg68-carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease;
}
.pg68-carousel-slide.pg68-slide-active { opacity: 1; }
.pg68-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.pg68-carousel-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(22,20,24,0.7) 0%, rgba(22,20,24,0) 60%);
}
.pg68-carousel-caption {
  position: absolute; left: 1.2rem; bottom: 1.4rem; z-index: 2; max-width: 70%;
}
.pg68-carousel-caption h2 { font-size: 2rem; font-weight: 900; color: var(--pg68-gold); margin-bottom: 0.3rem; }
.pg68-carousel-caption p { font-size: 1.2rem; color: var(--pg68-text); }
.pg68-carousel-dots {
  position: absolute; right: 1rem; bottom: 1rem; z-index: 3;
  display: flex; gap: 0.5rem;
}
.pg68-carousel-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%; background: rgba(255,255,255,0.4);
  transition: background 0.2s ease;
}
.pg68-carousel-dot.pg68-dot-active { background: var(--pg68-gold); }

/* ===== Winners ticker ===== */
.pg68-winners {
  background: var(--pg68-bg-card); border: 1px solid var(--pg68-border);
  border-radius: 12px; padding: 0.7rem 1rem; margin: 1rem 0;
  display: flex; align-items: center; gap: 0.8rem; overflow: hidden;
}
.pg68-winners-tag {
  font-size: 1.1rem; font-weight: 800; color: #1E1E1E; background: var(--pg68-grad-gold);
  padding: 0.3rem 0.7rem; border-radius: 6px; flex-shrink: 0;
}
.pg68-winners-mask { flex: 1; overflow: hidden; }
.pg68-winners-track { display: flex; flex-direction: column; }
.pg68-winners-track span {
  font-size: 1.2rem; line-height: 1.9rem; color: var(--pg68-text-soft);
}
.pg68-winners-track b { color: var(--pg68-gold); }

/* ===== Game grid ===== */
.pg68-game-group { margin-bottom: 2.2rem; }
.pg68-game-group-head {
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem;
}
.pg68-game-group-head .badge {
  width: 2.6rem; height: 2.6rem; border-radius: 8px; display: flex;
  align-items: center; justify-content: center; font-size: 1.5rem; color: #1E1E1E;
}
.pg68-game-group-head h2 { font-size: 1.6rem; font-weight: 800; color: var(--pg68-text); }
.pg68-game-group-head .more {
  margin-left: auto; font-size: 1.15rem; color: var(--pg68-primary); font-weight: 600;
}
.pg68-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
}
.pg68-game-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--pg68-bg-card); border: 1px solid var(--pg68-border);
  border-radius: 10px; padding: 0.5rem; transition: transform 0.15s ease, border-color 0.15s ease;
}
.pg68-game-card:active { transform: scale(0.95); border-color: var(--pg68-primary); }
.pg68-game-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; margin-bottom: 0.4rem;
}
.pg68-game-card span {
  font-size: 1.05rem; font-weight: 600; color: var(--pg68-text-soft); line-height: 1.25;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* ===== Filter bar ===== */
.pg68-filter-bar {
  display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.6rem 0 1rem;
  scrollbar-width: none;
}
.pg68-filter-bar::-webkit-scrollbar { display: none; }
.pg68-filter-btn {
  flex-shrink: 0; padding: 0.55rem 1.1rem; border-radius: 999px; font-size: 1.2rem;
  font-weight: 600; background: var(--pg68-bg-card); color: var(--pg68-text-soft);
  border: 1px solid var(--pg68-border); white-space: nowrap;
}
.pg68-filter-btn.pg68-filter-active { background: var(--pg68-grad); color: #fff; border-color: transparent; }

/* ===== Content cards ===== */
.pg68-card {
  background: var(--pg68-bg-card); border: 1px solid var(--pg68-border);
  border-radius: var(--pg68-radius); padding: 1.4rem; margin-bottom: 1.2rem;
  box-shadow: var(--pg68-shadow);
}
.pg68-card h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.6rem; color: var(--pg68-gold); }
.pg68-card p { font-size: 1.3rem; color: var(--pg68-text-soft); margin-bottom: 0.8rem; line-height: 1.6; }
.pg68-card p:last-child { margin-bottom: 0; }
.pg68-card ul { margin: 0.4rem 0 0.8rem; padding-left: 1.2rem; }
.pg68-card ul li { font-size: 1.25rem; color: var(--pg68-text-soft); margin-bottom: 0.45rem; line-height: 1.5; }
.pg68-step {
  display: flex; gap: 0.8rem; align-items: flex-start; margin-bottom: 0.9rem;
}
.pg68-step-num {
  flex-shrink: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--pg68-grad); color: #fff; font-weight: 800; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.pg68-step p { font-size: 1.25rem; color: var(--pg68-text-soft); margin: 0; line-height: 1.5; }
.pg68-step b { color: var(--pg68-gold); }

/* Inline promo text link */
.pg68-link {
  color: var(--pg68-gold); font-weight: 700; text-decoration: underline;
  text-decoration-color: var(--pg68-primary); text-underline-offset: 2px;
}

/* Feature chips */
.pg68-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.pg68-feature {
  background: var(--pg68-bg-deep); border: 1px solid var(--pg68-border);
  border-radius: 10px; padding: 1rem; text-align: center;
}
.pg68-feature .ic { font-size: 2rem; color: var(--pg68-primary); margin-bottom: 0.4rem; }
.pg68-feature h4 { font-size: 1.25rem; font-weight: 700; color: var(--pg68-text); margin-bottom: 0.2rem; }
.pg68-feature p { font-size: 1.1rem; color: var(--pg68-text-muted); line-height: 1.4; margin: 0; }

/* RTP table */
.pg68-rtp-row {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0;
  border-bottom: 1px solid rgba(218,112,214,0.1);
}
.pg68-rtp-row:last-child { border-bottom: none; }
.pg68-rtp-row .name { flex: 1; font-size: 1.2rem; color: var(--pg68-text-soft); }
.pg68-rtp-bar { flex: 1.4; height: 0.7rem; background: var(--pg68-bg-deep); border-radius: 999px; overflow: hidden; }
.pg68-rtp-bar i { display: block; height: 100%; background: var(--pg68-grad-gold); }
.pg68-rtp-row .val { width: 4rem; text-align: right; font-size: 1.2rem; font-weight: 800; color: var(--pg68-gold); }

/* Testimonial */
.pg68-testi {
  background: var(--pg68-bg-deep); border-left: 3px solid var(--pg68-coral);
  border-radius: 8px; padding: 1rem; margin-bottom: 0.7rem;
}
.pg68-testi p { font-size: 1.2rem; color: var(--pg68-text-soft); font-style: italic; margin-bottom: 0.4rem; line-height: 1.5; }
.pg68-testi b { font-size: 1.15rem; color: var(--pg68-gold); }

/* Payment chips */
.pg68-pay-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pg68-pay {
  background: var(--pg68-bg-deep); border: 1px solid var(--pg68-border);
  border-radius: 8px; padding: 0.5rem 0.9rem; font-size: 1.15rem; color: var(--pg68-text-soft);
  display: flex; align-items: center; gap: 0.4rem;
}

/* CTA banner */
.pg68-cta {
  background: var(--pg68-grad); border-radius: var(--pg68-radius);
  padding: 1.6rem 1.2rem; text-align: center; margin: 1.4rem 0; box-shadow: var(--pg68-shadow);
}
.pg68-cta h3 { font-size: 1.8rem; font-weight: 900; color: #fff; margin-bottom: 0.4rem; }
.pg68-cta p { font-size: 1.2rem; color: rgba(255,255,255,0.9); margin-bottom: 1rem; }
.pg68-cta .pg68-btn { background: #fff; color: var(--pg68-coral); font-size: 1.4rem; }

/* FAQ */
.pg68-faq-item {
  background: var(--pg68-bg-deep); border-radius: 10px; padding: 0.9rem 1rem;
  margin-bottom: 0.6rem; border: 1px solid var(--pg68-border);
}
.pg68-faq-item h4 { font-size: 1.3rem; font-weight: 700; color: var(--pg68-gold); margin-bottom: 0.3rem; }
.pg68-faq-item p { font-size: 1.2rem; color: var(--pg68-text-soft); line-height: 1.5; margin: 0; }

/* ===== Footer ===== */
.pg68-footer {
  background: var(--pg68-bg-deep); border-top: 1px solid var(--pg68-border);
  padding: 2rem 1.2rem 2.4rem; margin-top: 1.6rem;
}
.pg68-footer h4 { font-size: 1.4rem; font-weight: 800; color: var(--pg68-gold); margin-bottom: 0.6rem; }
.pg68-footer p { font-size: 1.2rem; color: var(--pg68-text-muted); line-height: 1.5; margin-bottom: 1rem; }
.pg68-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.pg68-footer-links a {
  font-size: 1.15rem; color: var(--pg68-primary); padding: 0.4rem 0.8rem;
  background: var(--pg68-bg-card); border-radius: 999px; border: 1px solid var(--pg68-border);
}
.pg68-footer-copy { font-size: 1.1rem; color: var(--pg68-text-muted); border-top: 1px solid var(--pg68-border); padding-top: 1rem; text-align: center; }

/* ===== Bottom nav ===== */
.pg68-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; max-width: 430px; margin: 0 auto;
  background: rgba(22, 20, 24, 0.97); backdrop-filter: blur(12px);
  border-top: 1px solid var(--pg68-border); z-index: 1000;
  display: flex; justify-content: space-around; align-items: stretch;
  height: 6.2rem; padding: 0.3rem 0.2rem;
}
.pg68-bottom-nav button, .pg68-bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; min-width: 6rem; min-height: 5.6rem; color: var(--pg68-text-muted);
  transition: transform 0.15s ease, color 0.15s ease;
}
.pg68-bottom-nav button:active, .pg68-bottom-nav a:active { transform: scale(0.9); }
.pg68-bottom-nav .ic { font-size: 2.2rem; line-height: 1; }
.pg68-bottom-nav .label { font-size: 1rem; font-weight: 600; }
.pg68-bottom-nav .pg68-nav-current { color: var(--pg68-gold); }
.pg68-bottom-nav .pg68-nav-promo .ic { color: var(--pg68-coral); }

/* ===== Toast ===== */
.pg68-toast {
  position: fixed; bottom: 8rem; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--pg68-grad); color: #fff; font-size: 1.3rem; font-weight: 700;
  padding: 0.9rem 1.6rem; border-radius: 999px; z-index: 1500; opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease; pointer-events: none;
  box-shadow: var(--pg68-shadow);
}
.pg68-toast.pg68-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Desktop: hide bottom nav, widen layout ===== */
@media (min-width: 769px) {
  .pg68-bottom-nav { display: none; }
  body { max-width: 430px; }
  .pg68-main { padding-bottom: 2rem; }
}
