/* uy89 - theme-4d5d.css
 * Mobile-first responsive theme. All custom classes use the g5d4- prefix.
 * Color palette: #F0E68C | #B8860B | #FFE135 | #F5F5F5 | #0E1621
 * Code comments in English. Page content is Vietnamese.
 */

:root {
  --g5d4-primary: #FFE135;
  --g5d4-gold: #B8860B;
  --g5d4-khaki: #F0E68C;
  --g5d4-light: #F5F5F5;
  --g5d4-bg: #0E1621;
  --g5d4-bg-soft: #16212E;
  --g5d4-bg-card: #1B2A3A;
  --g5d4-text: #F5F5F5;
  --g5d4-text-dim: #B8C4D2;
  --g5d4-accent: #F0E68C;
  --g5d4-danger: #E04848;
  --g5d4-success: #2EB872;
  --g5d4-radius: 12px;
  --g5d4-radius-sm: 8px;
  --g5d4-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

/* Base reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: var(--g5d4-bg);
  color: var(--g5d4-text);
  font-size: 1.5rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--g5d4-primary); text-decoration: none; }
ul { list-style: none; }

/* Layout helpers */
.g5d4-wrapper { width: 100%; max-width: 430px; margin: 0 auto; position: relative; }
.g5d4-container { width: 100%; padding: 0 1.2rem; }
.g5d4-section { padding: 2.2rem 1.2rem; }
.g5d4-section-title {
  font-size: 2.0rem; font-weight: 800; color: var(--g5d4-primary);
  margin-bottom: 1.2rem; padding-left: 0.8rem;
  border-left: 4px solid var(--g5d4-gold); line-height: 2.4rem;
}
.g5d4-section-sub {
  font-size: 1.5rem; color: var(--g5d4-text-dim);
  margin-bottom: 1.4rem; line-height: 2.2rem;
}

/* Header */
.g5d4-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, #0E1621 0%, #16212E 100%);
  border-bottom: 2px solid var(--g5d4-gold);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}
.g5d4-header-inner {
  max-width: 430px; margin: 0 auto; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.0rem;
}
.g5d4-logo { display: flex; align-items: center; gap: 0.6rem; }
.g5d4-logo img { width: 30px; height: 30px; border-radius: 6px; }
.g5d4-logo-text {
  font-size: 2.0rem; font-weight: 800; color: var(--g5d4-primary);
  letter-spacing: 0.5px;
}
.g5d4-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.g5d4-menu-btn {
  background: transparent; border: 1px solid var(--g5d4-gold);
  color: var(--g5d4-primary); width: 36px; height: 36px;
  border-radius: 8px; font-size: 1.8rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* Buttons */
.g5d4-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.8rem 1.4rem; border-radius: var(--g5d4-radius-sm);
  font-size: 1.4rem; font-weight: 700; cursor: pointer;
  border: none; text-align: center; min-height: 40px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.g5d4-btn:active { transform: scale(0.96); }
.g5d4-btn-register {
  background: linear-gradient(135deg, #FFE135 0%, #F0E68C 100%);
  color: #0E1621; box-shadow: 0 3px 10px rgba(255, 225, 53, 0.35);
}
.g5d4-btn-login {
  background: transparent; color: var(--g5d4-primary);
  border: 1.5px solid var(--g5d4-primary);
}
.g5d4-btn-cta {
  background: linear-gradient(135deg, #B8860B 0%, #F0E68C 100%);
  color: #0E1621; width: 100%; padding: 1.2rem; font-size: 1.6rem;
  border-radius: var(--g5d4-radius); font-weight: 800;
  box-shadow: 0 4px 16px rgba(184, 134, 11, 0.5);
}

/* Mobile menu */
.g5d4-mobile-menu {
  position: fixed; top: 56px; right: -100%; width: 80%; max-width: 320px;
  background: var(--g5d4-bg-soft); z-index: 9999; height: calc(100vh - 56px);
  padding: 1.6rem 1.2rem; overflow-y: auto;
  transition: right 0.28s ease; border-left: 2px solid var(--g5d4-gold);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
}
.g5d4-mobile-menu.g5d4-menu-open { right: 0; }
.g5d4-mobile-menu a {
  display: block; padding: 1.0rem 1.2rem; color: var(--g5d4-text);
  font-size: 1.5rem; border-radius: var(--g5d4-radius-sm);
  margin-bottom: 0.4rem; border-left: 3px solid transparent;
}
.g5d4-mobile-menu a:hover, .g5d4-mobile-menu a:active {
  background: var(--g5d4-bg-card); border-left-color: var(--g5d4-primary);
}
.g5d4-menu-cta { margin-top: 1.0rem; }

/* Hero / Carousel */
.g5d4-hero { margin-top: 56px; padding: 1.0rem 1.2rem 0; }
.g5d4-carousel { position: relative; border-radius: var(--g5d4-radius); overflow: hidden; box-shadow: var(--g5d4-shadow); }
.g5d4-slides { position: relative; width: 100%; height: 180px; }
.g5d4-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease;
  cursor: pointer;
}
.g5d4-slide img { width: 100%; height: 100%; object-fit: cover; }
.g5d4-slide.g5d4-slide-active { opacity: 1; }
.g5d4-slide-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(14, 22, 33, 0.92));
  padding: 1.0rem 1.2rem; color: var(--g5d4-primary); font-weight: 700; font-size: 1.4rem;
}
.g5d4-carousel-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 5;
}
.g5d4-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(245, 245, 245, 0.5); cursor: pointer; }
.g5d4-dot.g5d4-dot-active { background: var(--g5d4-primary); width: 22px; border-radius: 4px; }

/* H1 hero text */
.g5d4-h1 {
  font-size: 2.4rem; font-weight: 900; color: var(--g5d4-primary);
  line-height: 2.8rem; text-align: center; margin: 1.6rem 0 1.0rem;
}
.g5d4-h1-sub { text-align: center; color: var(--g5d4-text-dim); font-size: 1.4rem; margin-bottom: 1.6rem; }

/* Game grid */
.g5d4-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}
.g5d4-card {
  background: var(--g5d4-bg-card); border-radius: var(--g5d4-radius-sm);
  overflow: hidden; cursor: pointer; position: relative;
  border: 1px solid rgba(255, 225, 53, 0.12);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.g5d4-card:active { transform: scale(0.95); border-color: var(--g5d4-primary); }
.g5d4-card-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.g5d4-card-name {
  font-size: 1.1rem; text-align: center; padding: 0.5rem 0.2rem;
  color: var(--g5d4-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: rgba(14, 22, 33, 0.85); font-weight: 600;
}
.g5d4-card-tag {
  position: absolute; top: 4px; left: 4px; background: var(--g5d4-gold);
  color: #0E1621; font-size: 0.95rem; font-weight: 700;
  padding: 0.1rem 0.5rem; border-radius: 4px;
}
.g5d4-cat-label {
  font-size: 1.7rem; font-weight: 800; color: var(--g5d4-accent);
  margin: 1.8rem 0 1.0rem; padding: 0.6rem 1.0rem;
  background: linear-gradient(90deg, rgba(184, 134, 11, 0.25), transparent);
  border-left: 4px solid var(--g5d4-primary);
}

/* Content blocks */
.g5d4-card-block {
  background: var(--g5d4-bg-card); border-radius: var(--g5d4-radius);
  padding: 1.4rem; margin-bottom: 1.2rem; border: 1px solid rgba(184, 134, 11, 0.18);
}
.g5d4-card-block h2 {
  font-size: 1.9rem; color: var(--g5d4-primary); margin-bottom: 0.8rem; line-height: 2.4rem;
}
.g5d4-card-block h3 { font-size: 1.6rem; color: var(--g5d4-accent); margin: 1.0rem 0 0.5rem; }
.g5d4-card-block p {
  color: var(--g5d4-text-dim); font-size: 1.4rem; line-height: 2.4rem; margin-bottom: 0.8rem;
}
.g5d4-card-block ul { padding-left: 1.6rem; }
.g5d4-card-block li { color: var(--g5d4-text-dim); font-size: 1.4rem; line-height: 2.4rem; margin-bottom: 0.4rem; list-style: disc; }
.g5d4-text-link { color: var(--g5d4-primary); font-weight: 700; cursor: pointer; text-decoration: underline; }

/* Inline promo text link */
.g5d4-inline-link {
  color: var(--g5d4-primary); font-weight: 800; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}

/* Feature list with icons */
.g5d4-feature-list { display: grid; gap: 0.8rem; }
.g5d4-feature-item {
  display: flex; gap: 1.0rem; align-items: flex-start;
  background: var(--g5d4-bg-soft); padding: 1.0rem; border-radius: var(--g5d4-radius-sm);
  border-left: 3px solid var(--g5d4-gold);
}
.g5d4-feature-item i, .g5d4-feature-item .material-icons-outlined {
  color: var(--g5d4-primary); font-size: 2.4rem; flex-shrink: 0;
}
.g5d4-feature-item h3 { font-size: 1.5rem; color: var(--g5d4-text); margin-bottom: 0.2rem; }
.g5d4-feature-item p { font-size: 1.3rem; color: var(--g5d4-text-dim); line-height: 2.0rem; margin: 0; }

/* RTP compact table */
.g5d4-rtp-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.8rem 1.0rem; background: var(--g5d4-bg-soft);
  border-radius: var(--g5d4-radius-sm); margin-bottom: 0.5rem;
  font-size: 1.4rem; cursor: pointer; border-left: 3px solid var(--g5d4-gold);
}
.g5d4-rtp-row span:first-child { color: var(--g5d4-text); font-weight: 600; }
.g5d4-rtp-badge { color: var(--g5d4-primary); font-weight: 800; }

/* Testimonials */
.g5d4-testimonial {
  background: var(--g5d4-bg-soft); border-radius: var(--g5d4-radius);
  padding: 1.2rem; margin-bottom: 0.8rem; border-left: 3px solid var(--g5d4-primary);
}
.g5d4-testimonial-stars { color: var(--g5d4-primary); font-size: 1.4rem; margin-bottom: 0.4rem; }
.g5d4-testimonial p { color: var(--g5d4-text-dim); font-size: 1.3rem; line-height: 2.0rem; font-style: italic; }
.g5d4-testimonial-author { color: var(--g5d4-accent); font-size: 1.3rem; font-weight: 700; margin-top: 0.4rem; }

/* Winners showcase */
.g5d4-winner {
  display: flex; align-items: center; gap: 0.8rem;
  background: var(--g5d4-bg-soft); padding: 0.8rem 1.0rem; border-radius: var(--g5d4-radius-sm);
  margin-bottom: 0.5rem;
}
.g5d4-winner-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--g5d4-gold); display: flex; align-items: center; justify-content: center; color: #0E1621; font-weight: 800; font-size: 1.3rem; }
.g5d4-winner-info { flex: 1; }
.g5d4-winner-name { color: var(--g5d4-text); font-size: 1.3rem; font-weight: 700; }
.g5d4-winner-game { color: var(--g5d4-text-dim); font-size: 1.2rem; }
.g5d4-winner-amount { color: var(--g5d4-primary); font-weight: 800; font-size: 1.4rem; }

/* Payment methods */
.g5d4-pay-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.g5d4-pay-item {
  flex: 1 1 30%; background: var(--g5d4-bg-soft); border-radius: var(--g5d4-radius-sm);
  padding: 1.0rem 0.4rem; text-align: center; border: 1px solid rgba(255, 225, 53, 0.15);
}
.g5d4-pay-item i, .g5d4-pay-item .material-icons-outlined { color: var(--g5d4-primary); font-size: 2.6rem; }
.g5d4-pay-item span { display: block; font-size: 1.2rem; color: var(--g5d4-text-dim); margin-top: 0.3rem; }

/* App download CTA */
.g5d4-app-cta {
  background: linear-gradient(135deg, #16212E 0%, #1B2A3A 100%);
  border-radius: var(--g5d4-radius); padding: 1.6rem; text-align: center;
  border: 1px solid var(--g5d4-gold); margin-bottom: 1.2rem;
}
.g5d4-app-cta h3 { color: var(--g5d4-primary); font-size: 1.8rem; margin-bottom: 0.6rem; }
.g5d4-app-cta p { color: var(--g5d4-text-dim); font-size: 1.4rem; line-height: 2.2rem; margin-bottom: 1.0rem; }
.g5d4-app-buttons { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.g5d4-app-btn {
  background: var(--g5d4-bg-card); color: var(--g5d4-primary); border: 1px solid var(--g5d4-gold);
  padding: 0.8rem 1.2rem; border-radius: var(--g5d4-radius-sm); font-weight: 700; font-size: 1.3rem;
  cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem;
}

/* FAQ accordion */
.g5d4-faq-item { background: var(--g5d4-bg-card); border-radius: var(--g5d4-radius-sm); margin-bottom: 0.6rem; overflow: hidden; border: 1px solid rgba(184, 134, 11, 0.15); }
.g5d4-faq-q {
  padding: 1.0rem 1.2rem; font-size: 1.4rem; font-weight: 700; color: var(--g5d4-text);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.g5d4-faq-q .g5d4-faq-icon { color: var(--g5d4-primary); transition: transform 0.2s ease; }
.g5d4-faq-item.g5d4-faq-open .g5d4-faq-icon { transform: rotate(45deg); }
.g5d4-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 1.2rem; color: var(--g5d4-text-dim); font-size: 1.35rem; line-height: 2.2rem; }
.g5d4-faq-item.g5d4-faq-open .g5d4-faq-a { max-height: 320px; padding: 0 1.2rem 1.0rem; }

/* Footer */
.g5d4-footer {
  background: #081018; border-top: 2px solid var(--g5d4-gold);
  padding: 2.0rem 1.2rem 1.2rem; margin-top: 1.6rem;
}
.g5d4-footer-brand { color: var(--g5d4-text-dim); font-size: 1.3rem; line-height: 2.0rem; margin-bottom: 1.2rem; }
.g5d4-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; margin-bottom: 1.0rem; }
.g5d4-footer-links a { color: var(--g5d4-accent); font-size: 1.3rem; }
.g5d4-footer-promo { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.g5d4-footer-promo button {
  background: linear-gradient(135deg, #FFE135 0%, #B8860B 100%); color: #0E1621;
  border: none; padding: 0.6rem 1.0rem; border-radius: 6px; font-weight: 700; font-size: 1.2rem; cursor: pointer;
}
.g5d4-footer-copy { color: #5C6B7A; font-size: 1.2rem; text-align: center; padding-top: 1.0rem; border-top: 1px solid rgba(184, 134, 11, 0.15); }

/* Mobile bottom navigation */
.g5d4-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: 60px; background: linear-gradient(180deg, #16212E 0%, #081018 100%);
  border-top: 2px solid var(--g5d4-gold);
  display: flex; justify-content: space-around; align-items: center;
  box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.5);
}
.g5d4-bottom-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px; background: transparent; border: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--g5d4-text-dim); cursor: pointer; transition: color 0.18s ease, transform 0.18s ease;
  position: relative;
}
.g5d4-bottom-nav-btn i, .g5d4-bottom-nav-btn .material-icons-outlined, .g5d4-bottom-nav-btn .ionicon {
  font-size: 24px;
}
.g5d4-bottom-nav-btn span { font-size: 1.1rem; }
.g5d4-bottom-nav-btn:active { transform: scale(0.92); }
.g5d4-bottom-nav-btn.g5d4-nav-active { color: var(--g5d4-primary); }
.g5d4-bottom-nav-btn.g5d4-nav-active::after {
  content: ''; position: absolute; top: 0; width: 28px; height: 3px;
  background: var(--g5d4-primary); border-radius: 0 0 4px 4px;
}
.g5d4-nav-badge {
  position: absolute; top: 6px; right: 18px; background: var(--g5d4-danger);
  color: #fff; font-size: 0.9rem; font-weight: 700; min-width: 16px; height: 16px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

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

/* Desktop: hide bottom nav, widen wrapper */
@media (min-width: 769px) {
  .g5d4-bottom-nav { display: none; }
  .g5d4-wrapper { max-width: 720px; }
  .g5d4-header-inner { max-width: 720px; }
  .g5d4-grid { grid-template-columns: repeat(4, 1fr); }
  .g5d4-slides { height: 280px; }
}
