/* ============================================================
 * 78 vin - core stylesheet (basefiles)
 * Class prefix: g88d-
 * Palette: #F5F5F5 | #FF9500 | #273746 | #DCDCDC | #E65100
 * Mobile-first, max-width 430px wrapper.
 * ============================================================ */

:root {
  --g88d-primary: #FF9500;
  --g88d-accent: #E65100;
  --g88d-bg: #273746;
  --g88d-bg-deep: #1c2832;
  --g88d-card: #2f4250;
  --g88d-text: #F5F5F5;
  --g88d-muted: #DCDCDC;
  --g88d-line: rgba(245, 245, 245, .12);
  --g88d-shadow: 0 6px 22px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--g88d-bg);
  color: var(--g88d-text);
  line-height: 1.5rem;
  font-size: 1.6rem;
}

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

/* ---------- Wrapper / Container ---------- */
.g88d-wrapper {
  max-width: 430px;
  margin: 0 auto;
  background: var(--g88d-bg);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
.g88d-container { width: 100%; padding: 0 14px; }
.g88d-section { padding: 22px 0 10px; }

/* ---------- Header ---------- */
.g88d-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--g88d-bg-deep) 0%, var(--g88d-bg) 100%);
  border-bottom: 1px solid var(--g88d-line);
  transition: box-shadow .2s ease;
}
.g88d-header-shadow { box-shadow: var(--g88d-shadow); }
.g88d-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.g88d-logo { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.g88d-logo img { width: 30px; height: 30px; border-radius: 6px; }
.g88d-logo .g88d-brand { font-weight: 800; font-size: 1.8rem; color: var(--g88d-primary); white-space: nowrap; }

.g88d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1.3rem;
  cursor: pointer;
  color: #fff;
  background: var(--g88d-primary);
  transition: transform .15s ease, background .2s ease;
}
.g88d-btn:active { transform: scale(.96); }
.g88d-btn-outline {
  background: transparent;
  border: 1.5px solid var(--g88d-primary);
  color: var(--g88d-primary);
}
.g88d-btn-accent { background: var(--g88d-accent); }
.g88d-btn-block { width: 100%; min-height: 44px; font-size: 1.5rem; }

.g88d-menu-toggle {
  background: transparent;
  border: none;
  color: var(--g88d-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

/* ---------- Mobile expandable nav ---------- */
.g88d-mobile-menu {
  position: fixed;
  top: 52px; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--g88d-bg-deep);
  border-bottom: 1px solid var(--g88d-line);
  padding: 8px 14px 14px;
  z-index: 9999;
  transform: translateY(-130%);
  transition: transform .25s ease;
  max-height: 70vh;
  overflow-y: auto;
}
.g88d-mobile-menu.g88d-menu-open { transform: translateY(0); }
.g88d-mobile-menu a {
  display: block;
  padding: 10px 12px;
  border-bottom: 1px solid var(--g88d-line);
  color: var(--g88d-text);
  font-size: 1.4rem;
}
.g88d-mobile-menu a:active { background: var(--g88d-card); }

/* ---------- Hero carousel ---------- */
.g88d-hero { padding-top: 60px; }
.g88d-slider { position: relative; border-radius: 14px; overflow: hidden; }
.g88d-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.g88d-slide.g88d-active { display: block; }
.g88d-slide img { width: 100%; height: 200px; object-fit: cover; }
.g88d-slide-caption {
  position: absolute;
  left: 12px; bottom: 10px; right: 12px;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,.7);
}
.g88d-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.g88d-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: none; padding: 0; cursor: pointer;
}
.g88d-dot.g88d-active { background: var(--g88d-primary); width: 18px; border-radius: 4px; }

/* ---------- Headings ---------- */
.g88d-h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 16px 0 8px;
  color: var(--g88d-primary);
  line-height: 1.25;
}
.g88d-h2 {
  font-size: 1.9rem;
  font-weight: 700;
  margin: 18px 0 8px;
  color: var(--g88d-primary);
  border-left: 4px solid var(--g88d-accent);
  padding-left: 10px;
}
.g88d-h3 { font-size: 1.6rem; font-weight: 700; margin: 14px 0 6px; color: var(--g88d-text); }
.g88d-p { margin: 0 0 10px; color: var(--g88d-muted); font-size: 1.4rem; }
.g88d-text-accent { color: var(--g88d-primary); font-weight: 700; }

/* ---------- Section title bar ---------- */
.g88d-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 8px;
}
.g88d-section-title h2 { margin: 0; font-size: 1.7rem; color: var(--g88d-primary); }
.g88d-section-title .g88d-more { font-size: 1.2rem; color: var(--g88d-muted); }

/* ---------- Category pill ---------- */
.g88d-cat-pill {
  display: inline-block;
  background: var(--g88d-card);
  color: var(--g88d-primary);
  font-weight: 700;
  font-size: 1.3rem;
  padding: 5px 14px;
  border-radius: 14px;
  margin: 10px 0 6px;
}

/* ---------- Game grid ---------- */
.g88d-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.g88d-game {
  background: var(--g88d-card);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease;
  border: 1px solid var(--g88d-line);
}
.g88d-game:active { transform: scale(.96); }
.g88d-game img { width: 100%; height: 86px; object-fit: cover; }
.g88d-game-name {
  font-size: 1.15rem;
  color: var(--g88d-text);
  padding: 5px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g88d-game-hot {
  position: relative;
}
.g88d-game-hot::after {
  content: "HOT";
  position: absolute;
  top: 4px; left: 4px;
  background: var(--g88d-accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
}

/* ---------- Card ---------- */
.g88d-card {
  background: var(--g88d-card);
  border: 1px solid var(--g88d-line);
  border-radius: 12px;
  padding: 14px;
  margin: 10px 0;
}
.g88d-card-row { display: flex; gap: 10px; align-items: center; }

/* ---------- Feature / highlights ---------- */
.g88d-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.g88d-feature {
  background: var(--g88d-card);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  border: 1px solid var(--g88d-line);
}
.g88d-feature .g88d-ico { font-size: 2.4rem; color: var(--g88d-primary); }
.g88d-feature h3 { margin: 6px 0 4px; font-size: 1.35rem; }
.g88d-feature p { margin: 0; font-size: 1.2rem; color: var(--g88d-muted); }

/* ---------- RTP table ---------- */
.g88d-table { width: 100%; border-collapse: collapse; font-size: 1.3rem; }
.g88d-table th, .g88d-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--g88d-line);
  text-align: left;
}
.g88d-table th { color: var(--g88d-primary); }
.g88d-table td.g88d-num { text-align: right; color: var(--g88d-primary); font-weight: 700; }

/* ---------- FAQ accordion ---------- */
.g88d-faq-item {
  background: var(--g88d-card);
  border: 1px solid var(--g88d-line);
  border-radius: 10px;
  margin: 8px 0;
  overflow: hidden;
}
.g88d-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--g88d-text);
  font-weight: 700;
  font-size: 1.4rem;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.g88d-faq-q .g88d-ico { color: var(--g88d-primary); transition: transform .2s ease; }
.g88d-faq-item.g88d-faq-open .g88d-faq-q .g88d-ico { transform: rotate(45deg); }
.g88d-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 14px;
  color: var(--g88d-muted);
  font-size: 1.3rem;
}
.g88d-faq-item.g88d-faq-open .g88d-faq-a { max-height: 320px; padding: 0 14px 12px; }

/* ---------- Testimonial ---------- */
.g88d-review {
  background: var(--g88d-card);
  border-radius: 10px;
  padding: 12px;
  margin: 8px 0;
  border-left: 3px solid var(--g88d-primary);
}
.g88d-review .g88d-stars { color: var(--g88d-primary); font-size: 1.3rem; }
.g88d-review p { margin: 6px 0 4px; font-size: 1.3rem; color: var(--g88d-muted); }
.g88d-review .g88d-author { font-size: 1.2rem; color: var(--g88d-muted); }

/* ---------- Payment / winners ---------- */
.g88d-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.g88d-chip {
  background: var(--g88d-card);
  border: 1px solid var(--g88d-line);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1.2rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.g88d-winner {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--g88d-line);
  font-size: 1.3rem;
}
.g88d-winner .g88d-amt { color: var(--g88d-primary); font-weight: 700; }

/* ---------- App CTA ---------- */
.g88d-app-cta {
  background: linear-gradient(135deg, var(--g88d-accent) 0%, var(--g88d-primary) 100%);
  border-radius: 14px;
  padding: 16px;
  color: #fff;
  text-align: center;
  margin: 12px 0;
}
.g88d-app-cta h2 { color: #fff; border-left: none; padding: 0; margin-top: 0; }

/* ---------- Inline promo text link ---------- */
.g88d-link-text {
  color: var(--g88d-primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* ---------- Footer ---------- */
.g88d-footer {
  background: var(--g88d-bg-deep);
  border-top: 1px solid var(--g88d-line);
  padding: 18px 14px 24px;
  margin-top: 18px;
}
.g88d-footer h3 { color: var(--g88d-primary); margin: 8px 0 6px; font-size: 1.5rem; }
.g88d-footer p { color: var(--g88d-muted); font-size: 1.25rem; }
.g88d-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 10px 0;
}
.g88d-footer-links a { color: var(--g88d-muted); font-size: 1.2rem; padding: 4px 0; }
.g88d-footer-promos { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.g88d-footer-copy { font-size: 1.1rem; color: var(--g88d-muted); text-align: center; margin-top: 12px; }

/* ---------- Bottom nav (mobile only) ---------- */
.g88d-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: var(--g88d-bg-deep);
  border-top: 1px solid var(--g88d-line);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
}
.g88d-bottomnav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--g88d-muted);
  font-size: 1.05rem;
  gap: 2px;
  text-decoration: none;
  min-width: 60px;
  min-height: 60px;
  transition: color .15s ease, transform .15s ease;
}
.g88d-bottomnav a:active { transform: scale(.92); }
.g88d-bottomnav a .g88d-ico { font-size: 2.2rem; }
.g88d-bottomnav a.g88d-active { color: var(--g88d-primary); }
.g88d-bottomnav a.g88d-promo { color: var(--g88d-primary); }
.g88d-bottomnav .g88d-badge {
  position: absolute;
  top: 6px; right: calc(50% - 26px);
  background: var(--g88d-accent);
  color: #fff;
  border-radius: 50%;
  font-size: .9rem;
  padding: 0 5px;
  min-width: 14px;
  height: 14px;
  line-height: 14px;
  text-align: center;
}

/* ---------- Back to top ---------- */
.g88d-totop {
  position: fixed;
  right: 14px; bottom: 78px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--g88d-primary);
  color: #fff;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 1000;
  box-shadow: var(--g88d-shadow);
  display: none;
}

/* ---------- Desktop: hide bottom nav, widen wrapper visualization ---------- */
@media (min-width: 769px) {
  .g88d-bottomnav { display: none; }
}

/* ---------- Mobile bottom padding so content not hidden behind bottom nav ---------- */
@media (max-width: 768px) {
  .g88d-main { padding-bottom: 80px; }
  .g88d-totop { display: block; }
}

/* ---------- Utility ---------- */
.g88d-hide { display: none !important; }
.g88d-center { text-align: center; }
.g88d-mt { margin-top: 12px; }
.g88d-mb { margin-bottom: 12px; }
