/* 97win - 97win.cfd - Vietnamese mobile-first casino site styles */
/* All custom classes use prefix pge3- */

:root {
  --pge3-primary: #00E5FF;
  --pge3-secondary: #34495E;
  --pge3-bg: #2b3a46;
  --pge3-bg-dark: #1c2730;
  --pge3-bg-card: #34495E;
  --pge3-text: #E8F5E8;
  --pge3-text-soft: #b8c5cf;
  --pge3-accent: #00E5FF;
  --pge3-accent-2: #708090;
  --pge3-gold: #f5c542;
  --pge3-danger: #ff5c6c;
  --pge3-success: #34d399;
  --pge3-border: rgba(0, 229, 255, 0.18);
  --pge3-radius: 14px;
  --pge3-shadow: 0 6px 24px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'Roboto', 'Inter', system-ui, -apple-system, sans-serif;
  background: linear-gradient(160deg, var(--pge3-bg-dark) 0%, var(--pge3-bg) 100%);
  color: var(--pge3-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  min-height: 100vh;
  max-width: 100vw;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--pge3-accent); text-decoration: none; }
ul { list-style: none; }

/* ===== Header ===== */
.pge3-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(28,39,48,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pge3-border);
  box-shadow: var(--pge3-shadow);
}
.pge3-header-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem;
  position: relative;
}
.pge3-logo {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--pge3-text); font-weight: 800; font-size: 1.6rem;
  letter-spacing: 0.05em;
}
.pge3-logo img { width: 28px; height: 28px; border-radius: 6px; }
.pge3-logo span { background: linear-gradient(90deg, var(--pge3-accent), #fff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pge3-header-actions { display: flex; gap: 0.6rem; align-items: center; }
.pge3-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  font-size: 1.3rem; font-weight: 700;
  border: none; border-radius: 999px;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease;
  min-height: 40px; min-width: 44px; line-height: 1;
}
.pge3-btn:active { transform: scale(0.94); }
.pge3-btn-primary { background: linear-gradient(135deg, var(--pge3-accent), #00b4cc); color: #062028; box-shadow: 0 4px 14px rgba(0,229,255,0.35); }
.pge3-btn-ghost { background: transparent; color: var(--pge3-text); border: 1px solid rgba(255,255,255,0.22); }
.pge3-btn-gold { background: linear-gradient(135deg, var(--pge3-gold), #e6a531); color: #2b1a00; }

.pge3-menu-toggle {
  background: transparent; border: 1px solid rgba(255,255,255,0.18);
  color: var(--pge3-text); border-radius: 10px;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.6rem;
}

/* Mobile slide-down menu */
.pge3-mobile-menu {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--pge3-bg-dark);
  transform: translateY(-100%);
  transition: transform .3s ease;
  max-height: 80vh; overflow-y: auto;
  border-bottom: 1px solid var(--pge3-border);
  box-shadow: var(--pge3-shadow);
  padding-top: 5.6rem;
}
.pge3-mobile-menu.pge3-open { transform: translateY(0); }
.pge3-mobile-menu ul { padding: 0.5rem 1.2rem 1.2rem; }
.pge3-mobile-menu li a {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1.1rem 1rem;
  color: var(--pge3-text);
  font-size: 1.4rem; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pge3-mobile-menu li a:active { background: rgba(0,229,255,0.08); }
.pge3-close-menu {
  position: absolute; top: 0.9rem; right: 1.2rem;
  background: transparent; border: none; color: var(--pge3-text);
  font-size: 2.2rem; cursor: pointer; width: 44px; height: 44px;
}
.pge3-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  z-index: 9998; opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.pge3-overlay.pge3-open { opacity: 1; pointer-events: auto; }

/* ===== Layout ===== */
.pge3-wrapper { max-width: 430px; margin: 0 auto; padding: 0 0; }
main { padding-top: 5.6rem; }
.pge3-section { padding: 2rem 1.2rem; }
.pge3-section-title {
  font-size: 1.7rem; font-weight: 800; margin-bottom: 0.4rem;
  color: #fff;
  display: flex; align-items: center; gap: 0.5rem;
}
.pge3-section-title .pge3-color { color: var(--pge3-accent); }
.pge3-section-sub { color: var(--pge3-text-soft); font-size: 1.25rem; margin-bottom: 1.2rem; }
.pge3-eyebrow {
  color: var(--pge3-accent); font-size: 1.1rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.6rem;
}

/* ===== Carousel ===== */
.pge3-carousel { padding: 1.2rem; }
.pge3-carousel-track { position: relative; border-radius: var(--pge3-radius); overflow: hidden; box-shadow: var(--pge3-shadow); }
.pge3-slides { display: flex; transition: transform .45s cubic-bezier(.4,.0,.2,1); scroll-snap-type: x mandatory; }
.pge3-slide { min-width: 100%; position: relative; scroll-snap-align: center; cursor: pointer; }
.pge3-slide img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.pge3-slide-cap {
  position: absolute; left: 1.2rem; bottom: 1.2rem; right: 40px;
  color: #fff; font-weight: 700; font-size: 1.5rem; text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
.pge3-slide-cap small { display: block; font-weight: 400; font-size: 1.1rem; opacity: .9; margin-top: .2rem; }
.pge3-carousel-dots { display: flex; gap: 0.5rem; justify-content: center; margin-top: 0.8rem; }
.pge3-carousel-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.3); cursor: pointer; transition: all .2s ease;
}
.pge3-carousel-dots button.pge3-active { background: var(--pge3-accent); width: 22px; border-radius: 6px; }

/* ===== Hero ===== */
.pge3-hero { padding: 1.4rem 1.2rem 1.5rem; text-align: center; }
.pge3-hero h1 { font-size: 2rem; line-height: 1.25; font-weight: 800; color: #fff; margin-bottom: 0.6rem; }
.pge3-hero p { color: var(--pge3-text-soft); font-size: 1.3rem; margin-bottom: 1rem; }
.pge3-hero-cta { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.pge3-hero-stats { display: flex; gap: 0.8rem; justify-content: center; margin-top: 1.2rem; flex-wrap: wrap; }
.pge3-stat { padding: 0.7rem 1rem; background: rgba(0,229,255,0.08); border: 1px solid var(--pge3-border); border-radius: 10px; text-align: center; min-width: 88px; }
.pge3-stat b { display: block; font-size: 1.5rem; color: var(--pge3-accent); }
.pge3-stat span { font-size: 1.05rem; color: var(--pge3-text-soft); }

/* ===== Category Section ===== */
.pge3-cat-label {
  display: inline-block; background: rgba(0,229,255,0.12);
  color: var(--pge3-accent); font-weight: 700; font-size: 1.2rem;
  padding: 0.3rem 0.9rem; border-radius: 999px; margin-bottom: 1rem;
  border: 1px solid var(--pge3-border);
}
.pge3-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem;
}
.pge3-game-card {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 0.6rem 0.4rem;
  cursor: pointer; transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease;
  text-align: center;
}
.pge3-game-card:active { transform: scale(0.95); }
.pge3-game-card:hover { border-color: var(--pge3-accent); box-shadow: 0 4px 16px rgba(0,229,255,0.18); }
.pge3-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; margin-bottom: 0.4rem; }
.pge3-game-card span { font-size: 1.05rem; font-weight: 600; color: var(--pge3-text); line-height: 1.15rem; max-height: 2.3rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; width: 100%; }
.pge3-game-card .pge3-hot-badge {
  position: relative; align-self: flex-end; margin-top: -0.2rem;
  background: var(--pge3-danger); color: #fff; font-size: 0.9rem; font-weight: 700;
  padding: 0.1rem 0.4rem; border-radius: 6px;
}

/* ===== Info / content blocks ===== */
.pge3-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--pge3-border);
  border-radius: var(--pge3-radius);
  padding: 1.4rem; margin-bottom: 1rem; box-shadow: var(--pge3-shadow);
}
.pge3-card h2 { color: #fff; font-size: 1.55rem; margin-bottom: 0.6rem; }
.pge3-card h3 { color: var(--pge3-accent); font-size: 1.35rem; margin: 0.8rem 0 0.4rem; }
.pge3-card p { color: var(--pge3-text-soft); margin-bottom: 0.7rem; font-size: 1.3rem; line-height: 1.6rem; }
.pge3-card ul { padding-left: 1.2rem; margin-bottom: 0.6rem; list-style: disc; }
.pge3-card ul li { color: var(--pge3-text-soft); margin-bottom: 0.4rem; font-size: 1.3rem; }

/* Inline promo link */
.pge3-promo-link {
  color: var(--pge3-accent); font-weight: 700; cursor: pointer;
  border-bottom: 1px dashed rgba(0,229,255,0.5);
}
.pge3-promo-link:hover { color: #fff; }

/* Steps */
.pge3-steps { counter-reset: step; }
.pge3-steps li {
  counter-increment: step; position: relative;
  padding: 0.6rem 0.6rem 0.6rem 3rem; margin-bottom: 0.7rem;
  background: rgba(0,229,255,0.06); border-left: 3px solid var(--pge3-accent); border-radius: 8px;
  font-size: 1.3rem; color: var(--pge3-text-soft);
  list-style: none; line-height: 1.55rem;
}
.pge3-steps li::before {
  content: counter(step); position: absolute; left: 0.5rem; top: 0.6rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--pge3-accent); color: #062028;
  font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}

/* RTP / data table */
.pge3-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.pge3-table th, .pge3-table td { padding: 0.7rem 0.5rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.07); }
.pge3-table th { color: var(--pge3-accent); font-weight: 700; font-size: 1.15rem; }
.pge3-table tr td { color: var(--pge3-text-soft); }
.pge3-bar { height: 6px; background: rgba(255,255,255,0.08); border-radius: 6px; overflow: hidden; }
.pge3-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--pge3-accent), var(--pge3-gold)); }

/* Testimonials */
.pge3-testi {
  background: rgba(255,255,255,0.04); border: 1px solid var(--pge3-border); border-radius: 12px;
  padding: 1.1rem; margin-bottom: 0.8rem;
}
.pge3-testi-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.4rem; }
.pge3-testi-head .pge3-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--pge3-accent), var(--pge3-secondary)); display: flex; align-items: center; justify-content: center; color: #062028; font-weight: 800; }
.pge3-testi-head b { color: #fff; font-size: 1.25rem; }
.pge3-testi-stars { color: var(--pge3-gold); font-size: 1.1rem; margin-left: auto; }
.pge3-testi p { color: var(--pge3-text-soft); font-size: 1.25rem; line-height: 1.55rem; }

/* Payment chips */
.pge3-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pge3-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.9rem; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  font-size: 1.15rem; color: var(--pge3-text); font-weight: 600;
}

/* Winners list */
.pge3-winner { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 1.2rem; }
.pge3-winner b { color: var(--pge3-accent); }
.pge3-winner small { color: var(--pge3-text-soft); }

/* App CTA */
.pge3-app-cta { background: linear-gradient(135deg, rgba(0,229,255,0.14), rgba(53,73,94,0.55)); border: 1px solid var(--pge3-border); border-radius: 14px; padding: 1.3rem; text-align: center; }
.pge3-app-cta h2 { color: #fff; margin-bottom: 0.4rem; }
.pge3-app-cta p { color: var(--pge3-text-soft); margin-bottom: 0.9rem; }
.pge3-app-steps { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }

/* Play now banner */
.pge3-play-banner {
  background: linear-gradient(120deg, var(--pge3-accent), #00b4cc);
  color: #062028; border-radius: 14px; padding: 1.4rem; text-align: center; box-shadow: 0 8px 24px rgba(0,229,255,0.3);
}
.pge3-play-banner h3 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.pge3-play-banner p { margin-bottom: 0.8rem; font-size: 1.2rem; }
.pge3-play-banner .pge3-btn { background: #062028; color: var(--pge3-accent); }

/* ===== Footer ===== */
.pge3-footer {
  background: var(--pge3-bg-dark); border-top: 1px solid var(--pge3-border);
  padding: 2rem 1.2rem; margin-top: 1.5rem;
}
.pge3-footer-brand { color: var(--pge3-text-soft); font-size: 1.2rem; margin-bottom: 1rem; line-height: 1.55rem; }
.pge3-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 1rem; }
.pge3-footer-links a { color: var(--pge3-text-soft); font-size: 1.15rem; }
.pge3-footer-links a:hover { color: var(--pge3-accent); }
.pge3-footer-promos { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.pge3-footer-promos .pge3-btn { font-size: 1.15rem; padding: 0.5rem 1rem; }
.pge3-footer-copy { color: rgba(255,255,255,0.4); font-size: 1.1rem; border-top: 1px solid rgba(255,255,255,0.07); padding-top: 0.8rem; }

/* ===== Bottom Mobile Nav ===== */
.pge3-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(20,30,38,0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--pge3-border);
  display: flex; justify-content: space-around; align-items: center;
  height: 62px;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.4);
}
.pge3-bottom-nav button {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: var(--pge3-text-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer; transition: color .2s ease, transform .15s ease;
  font-size: 1rem; font-weight: 600; line-height: 1;
}
.pge3-bottom-nav button i, .pge3-bottom-nav button .material-icons-outlined,
.pge3-bottom-nav button ion-icon { font-size: 24px; }
.pge3-bottom-nav button span { font-size: 1rem; }
.pge3-bottom-nav button:active { transform: scale(0.9); }
.pge3-bottom-nav button.pge3-active { color: var(--pge3-accent); }
.pge3-bottom-nav button:hover { color: var(--pge3-accent); }
.pge3-bottom-nav .pge3-badge {
  position: absolute; top: 10px; right: 50%; margin-right: -16px;
  background: var(--pge3-danger); color: #fff;
  font-size: 0.85rem; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ===== Desktop ===== */
@media (min-width: 769px) {
  .pge3-bottom-nav { display: none; }
  .pge3-wrapper { padding-bottom: 0; }
}
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* Utility */
.pge3-tcenter { text-align: center; }
.pge3-flex { display: flex; gap: 0.6rem; }
.pge3-mt1 { margin-top: 1rem; }
.pge3-hide-desktop { display: block; }
@media (min-width: 769px) { .pge3-hide-desktop { display: none; } }