/*!
 * Rong Bach Kim - design-751d.css
 * Mobile-first casino/gaming styles. All custom classes use w751d- prefix.
 * Palette: #006400 (royal green) / #262626 (charcoal) + gold accents.
 */

:root {
  --w751d-primary: #006400;
  --w751d-primary-light: #1a8a1a;
  --w751d-primary-dark: #003d00;
  --w751d-bg: #262626;
  --w751d-bg-soft: #1c1c1c;
  --w751d-bg-card: #2f2f2f;
  --w751d-text: #f5f5f5;
  --w751d-text-muted: #b5b5b5;
  --w751d-accent: #ffd700;
  --w751d-accent-soft: #fff3a0;
  --w751d-border: #3a3a3a;
  --w751d-danger: #d4af37;
  --w751d-radius: 14px;
  --w751d-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

/* Base reset scoped to site wrapper */
* { box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: var(--w751d-bg);
  color: var(--w751d-text);
  line-height: 1.5rem;
  font-size: 1.6rem;
}

.w751d-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(180deg, #1c1c1c 0%, #262626 40%, #1c1c1c 100%);
  position: relative;
  overflow-x: hidden;
}

/* ---- Header ---- */
.w751d-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: linear-gradient(90deg, var(--w751d-primary-dark), var(--w751d-primary));
  border-bottom: 2px solid var(--w751d-accent);
  transition: box-shadow .3s ease;
}
.w751d-header-scrolled { box-shadow: 0 4px 14px rgba(0,0,0,.5); }

.w751d-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--w751d-text);
}
.w751d-brand img { width: 28px; height: 28px; border-radius: 6px; }
.w751d-brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: .3px;
  color: var(--w751d-accent);
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}

.w751d-header-actions { display: flex; align-items: center; gap: 8px; }

.w751d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  min-height: 36px;
}
.w751d-btn:active { transform: scale(.96); }
.w751d-btn-primary {
  background: linear-gradient(180deg, var(--w751d-accent), #d4af37);
  color: #1a1a1a;
  box-shadow: 0 3px 10px rgba(255,215,0,.35);
}
.w751d-btn-secondary {
  background: rgba(255,255,255,.08);
  color: var(--w751d-text);
  border: 1px solid var(--w751d-accent);
}
.w751d-btn-block { width: 100%; padding: 12px; font-size: 1.5rem; }

/* Hamburger toggle */
.w751d-menu-toggle {
  background: transparent;
  border: 1px solid var(--w751d-accent);
  color: var(--w751d-text);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Expandable nav menu */
.w751d-nav-menu {
  display: none;
  flex-direction: column;
  background: var(--w751d-bg-soft);
  border-top: 1px solid var(--w751d-border);
  padding: 8px 12px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 999;
  max-height: 70vh;
  overflow-y: auto;
}
.w751d-nav-menu.w751d-active { display: flex; }
.w751d-nav-menu a {
  color: var(--w751d-text);
  text-decoration: none;
  padding: 10px 6px;
  border-bottom: 1px solid var(--w751d-border);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.w751d-nav-menu a:hover { color: var(--w751d-accent); }
.w751d-nav-menu a i { color: var(--w751d-accent); width: 22px; text-align: center; }

/* ---- Main content ---- */
main { padding: 12px 12px 90px; }

.w751d-section {
  background: var(--w751d-bg-card);
  border-radius: var(--w751d-radius);
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: var(--w751d-shadow);
  border: 1px solid var(--w751d-border);
}

.w751d-h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 4px 0 10px;
  color: var(--w751d-accent);
  line-height: 1.3;
}
.w751d-h2 {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 14px 0 8px;
  color: var(--w751d-accent);
  border-left: 4px solid var(--w751d-accent);
  padding-left: 8px;
}
.w751d-h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 10px 0 6px;
  color: var(--w751d-accent-soft);
}
.w751d-lead { color: var(--w751d-text-muted); font-size: 1.4rem; }
.w751d-text-link {
  color: var(--w751d-accent);
  text-decoration: underline;
  font-weight: 600;
}
.w751d-text-link:hover { color: var(--w751d-accent-soft); }

/* ---- Carousel ---- */
.w751d-carousel {
  position: relative;
  border-radius: var(--w751d-radius);
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--w751d-shadow);
}
.w751d-slide {
  display: none;
  width: 100%;
  height: 180px;
  position: relative;
}
.w751d-slide.w751d-active { display: block; }
.w751d-slide img { width: 100%; height: 100%; object-fit: cover; }
.w751d-slide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px;
  background: linear-gradient(0deg, rgba(0,0,0,.85), transparent);
  color: var(--w751d-text);
  font-size: 1.4rem;
  font-weight: 700;
}
.w751d-dots {
  position: absolute;
  bottom: 8px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.w751d-dot {
  width: 8px; height: 8px;
  background: rgba(255,255,255,.4);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}
.w751d-dot.w751d-active { background: var(--w751d-accent); }

/* ---- Game grid ---- */
.w751d-cat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--w751d-accent);
  margin: 14px 0 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.w751d-cat-title i { font-size: 2rem; }

.w751d-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.w751d-game {
  background: var(--w751d-bg-soft);
  border-radius: 10px;
  padding: 6px;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  border: 1px solid var(--w751d-border);
  display: block;
  text-decoration: none;
  color: var(--w751d-text);
}
.w751d-game:hover, .w751d-game:active {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,215,0,.25);
  border-color: var(--w751d-accent);
}
.w751d-game img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 8px;
  background: #111;
}
.w751d-game-name {
  font-size: 1.1rem;
  margin-top: 4px;
  color: var(--w751d-text);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- Feature / info cards ---- */
.w751d-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.w751d-card {
  background: var(--w751d-bg-soft);
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--w751d-border);
  text-align: center;
}
.w751d-card .material-icons,
.w751d-card .ion { font-size: 3rem; color: var(--w751d-accent); }
.w751d-card h3 { margin: 6px 0; font-size: 1.35rem; color: var(--w751d-text); }
.w751d-card p { margin: 0; font-size: 1.25rem; color: var(--w751d-text-muted); }

/* RTP / data bars */
.w751d-rtp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 1.3rem;
}
.w751d-rtp-bar {
  flex: 1;
  height: 10px;
  background: #111;
  border-radius: 6px;
  margin: 0 8px;
  overflow: hidden;
}
.w751d-rtp-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--w751d-primary-light), var(--w751d-accent));
}

/* Testimonials */
.w751d-quote {
  background: var(--w751d-bg-soft);
  border-left: 3px solid var(--w751d-accent);
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 1.3rem;
  color: var(--w751d-text);
}
.w751d-quote cite {
  display: block;
  margin-top: 4px;
  color: var(--w751d-accent);
  font-style: normal;
  font-size: 1.2rem;
  font-weight: 700;
}

/* Payment / app download */
.w751d-app-banner {
  background: linear-gradient(120deg, var(--w751d-primary-dark), var(--w751d-primary));
  border-radius: var(--w751d-radius);
  padding: 16px;
  text-align: center;
  border: 1px solid var(--w751d-accent);
}
.w751d-app-banner h3 { color: var(--w751d-accent); margin-top: 0; }
.w751d-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.w751d-pay-row span {
  background: var(--w751d-bg-soft);
  border: 1px solid var(--w751d-border);
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 1.2rem;
  color: var(--w751d-text-muted);
}

/* Winners ticker */
.w751d-winner {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--w751d-border);
  font-size: 1.25rem;
}
.w751d-winner b { color: var(--w751d-accent); }

/* FAQ */
.w751d-faq-item { margin-bottom: 8px; }
.w751d-faq-item h3 { color: var(--w751d-accent-soft); margin-bottom: 4px; }
.w751d-faq-item p { margin: 0; color: var(--w751d-text-muted); font-size: 1.3rem; }

/* Footer */
.w751d-footer {
  background: var(--w751d-bg-soft);
  border-top: 2px solid var(--w751d-primary);
  padding: 18px 12px 24px;
  font-size: 1.3rem;
  color: var(--w751d-text-muted);
}
.w751d-footer h4 {
  color: var(--w751d-accent);
  font-size: 1.35rem;
  margin: 10px 0 6px;
  text-transform: uppercase;
}
.w751d-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.w751d-footer-links a {
  color: var(--w751d-text-muted);
  text-decoration: none;
  font-size: 1.2rem;
}
.w751d-footer-links a:hover { color: var(--w751d-accent); text-decoration: underline; }
.w751d-footer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.w751d-footer-copy {
  margin-top: 12px;
  text-align: center;
  font-size: 1.15rem;
  color: #777;
}

/* ---- Mobile bottom navigation ---- */
.w751d-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 60px;
  background: linear-gradient(180deg, var(--w751d-primary-dark), #001a00);
  border-top: 2px solid var(--w751d-accent);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 14px rgba(0,0,0,.5);
}
.w751d-bottom-nav a {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--w751d-text-muted);
  text-decoration: none;
  font-size: 1rem;
  gap: 2px;
  position: relative;
  transition: color .2s ease, transform .15s ease;
}
.w751d-bottom-nav a:active { transform: scale(.9); }
.w751d-bottom-nav a .material-icons,
.w751d-bottom-nav a i,
.w751d-bottom-nav a ion-icon { font-size: 22px; }
.w751d-bottom-nav a:hover { color: var(--w751d-accent); }
.w751d-bottom-nav a.w751d-active { color: var(--w751d-accent); }
.w751d-bottom-nav a.w751d-active::after {
  content: "";
  position: absolute;
  top: 0;
  width: 28px;
  height: 3px;
  background: var(--w751d-accent);
  border-radius: 0 0 4px 4px;
}
.w751d-nav-badge {
  position: absolute;
  top: 6px;
  right: 18px;
  background: #e53935;
  color: #fff;
  font-size: .9rem;
  border-radius: 10px;
  padding: 0 5px;
  min-width: 16px;
  text-align: center;
}

/* ---- Desktop rules ---- */
@media (min-width: 769px) {
  .w751d-bottom-nav { display: none; }
  body { padding-bottom: 0; }
}
