/*!
 * 990k.homes theme stylesheet
 * Mobile-first gaming portal - Vietnamese market
 * CSS class prefix: v443- / CSS vars: --v443-*
 * Palette: #FF91A4 (pink) | #FFBF00 (gold) | #0C0C0C (dark) | #FFA500 (orange)
 * Comments in English only
 */

:root {
  --v443-primary: #FF91A4;
  --v443-gold: #FFBF00;
  --v443-dark: #0C0C0C;
  --v443-orange: #FFA500;
  --v443-bg: #0C0C0C;
  --v443-bg-soft: #181616;
  --v443-bg-card: #201d1d;
  --v443-text: #FFFFFF;
  --v443-text-muted: #b9b3b3;
  --v443-border: rgba(255, 145, 164, 0.18);
  --v443-radius: 14px;
  --v443-radius-sm: 10px;
  --v443-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  --v443-gradient: linear-gradient(135deg, #FFA500 0%, #FF91A4 60%, #FFBF00 100%);
  --v443-gradient-dark: linear-gradient(160deg, #181616 0%, #0C0C0C 100%);
  --v443-header-h: 60px;
  --v443-bottomnav-h: 62px;
}

/* Root font: 62.5% so 1rem = 10px for rem-based sizing */
* { 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(--v443-bg);
  color: var(--v443-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--v443-gold); text-decoration: none; }
a:hover { color: var(--v443-orange); }

/* ============ Layout containers ============ */
.v443-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.4rem;
}
.v443-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }
.v443-section { padding: 2.6rem 0 1.4rem; }
.v443-section-title {
  font-size: 2.1rem;
  font-weight: 800;
  margin: 0 0 1.4rem;
  line-height: 1.4;
  color: var(--v443-text);
}
.v443-section-title span { color: var(--v443-gold); }
.v443-lead { color: var(--v443-text-muted); font-size: 1.45rem; margin: 0 0 1.2rem; }

/* ============ Header ============ */
.v443-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--v443-header-h);
  background: rgba(12, 12, 12, 0.96);
  border-bottom: 1px solid var(--v443-border);
  z-index: 1000;
  backdrop-filter: blur(8px);
}
.v443-header-inner {
  max-width: 430px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.v443-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 1;
  min-width: 0;
}
.v443-brand-logo {
  width: 30px; height: 30px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--v443-gradient);
}
.v443-brand-name {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--v443-text);
  white-space: nowrap;
}
.v443-brand-name b { color: var(--v443-gold); }
.v443-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.v443-menu-toggle {
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--v443-border);
  border-radius: 8px;
  color: var(--v443-text);
  font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.v443-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0 1.2rem;
  border: none;
  border-radius: 20px;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.v443-btn:active { transform: scale(0.96); }
.v443-btn-login {
  background: transparent;
  color: var(--v443-text);
  border: 1px solid var(--v443-gold);
}
.v443-btn-register {
  background: var(--v443-gradient);
  color: #1a1205;
  box-shadow: 0 4px 14px rgba(255, 165, 0, 0.35);
}

/* ============ Mobile slide menu ============ */
.v443-mobile-menu {
  position: fixed;
  top: var(--v443-header-h);
  left: 0; right: 0;
  max-height: 0;
  overflow: hidden;
  background: var(--v443-bg-soft);
  border-bottom: 1px solid var(--v443-border);
  z-index: 9999;
  transition: max-height 0.28s ease;
}
.v443-mobile-menu.v443-menu-open { max-height: 460px; }
.v443-mobile-menu-inner { max-width: 430px; margin: 0 auto; padding: 1rem 1.4rem 1.6rem; }
.v443-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 0.6rem;
  color: var(--v443-text);
  font-size: 1.45rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.v443-mobile-menu a i { color: var(--v443-gold); font-size: 1.8rem; width: 24px; text-align: center; }
.v443-mobile-menu a:hover { color: var(--v443-orange); }

/* ============ Hero / Carousel ============ */
.v443-hero { padding-top: calc(var(--v443-header-h) + 1.4rem); }
.v443-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--v443-radius);
  overflow: hidden;
  box-shadow: var(--v443-shadow);
  background: var(--v443-bg-soft);
}
.v443-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.v443-carousel-slide {
  min-width: 100%;
  position: relative;
}
.v443-carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.v443-carousel-caption {
  position: absolute;
  left: 1.2rem; bottom: 1.2rem; right: 1.2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 10px;
}
.v443-carousel-caption h2 { font-size: 1.7rem; margin: 0 0 0.3rem; color: var(--v443-gold); }
.v443-carousel-caption p { font-size: 1.25rem; margin: 0; color: #fff; }
.v443-carousel-dots {
  position: absolute;
  bottom: 0.6rem; left: 0; right: 0;
  display: flex; justify-content: center; gap: 0.5rem;
}
.v443-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none; cursor: pointer; padding: 0;
}
.v443-carousel-dot-active { background: var(--v443-gold); width: 22px; border-radius: 4px; }

/* ============ Game grid ============ */
.v443-game-block { margin-bottom: 2rem; }
.v443-game-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.v443-game-block-head h3 {
  font-size: 1.7rem;
  margin: 0;
  color: var(--v443-gold);
  display: flex; align-items: center; gap: 0.5rem;
}
.v443-game-block-head h3 i { color: var(--v443-orange); }
.v443-game-block-head a { font-size: 1.25rem; color: var(--v443-primary); }
.v443-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.v443-card {
  background: var(--v443-bg-card);
  border: 1px solid var(--v443-border);
  border-radius: var(--v443-radius-sm);
  overflow: hidden;
  text-align: center;
  transition: transform 0.18s ease, border-color 0.18s;
  cursor: pointer;
}
.v443-card:hover, .v443-card:active {
  transform: translateY(-2px);
  border-color: var(--v443-gold);
}
.v443-card-img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  background: #000;
}
.v443-card-name {
  font-size: 1.18rem;
  color: var(--v443-text);
  padding: 0.5rem 0.3rem 0.6rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ Info / feature modules ============ */
.v443-panel {
  background: var(--v443-bg-card);
  border: 1px solid var(--v443-border);
  border-radius: var(--v443-radius);
  padding: 1.6rem;
  margin-bottom: 1.4rem;
}
.v443-panel h2 {
  font-size: 1.8rem;
  margin: 0 0 0.8rem;
  color: var(--v443-gold);
}
.v443-panel h3 {
  font-size: 1.5rem;
  margin: 1rem 0 0.5rem;
  color: var(--v443-primary);
}
.v443-panel p { color: var(--v443-text-muted); margin: 0 0 0.8rem; font-size: 1.4rem; }
.v443-panel ul { padding-left: 1.6rem; color: var(--v443-text-muted); margin: 0 0 0.8rem; }
.v443-panel li { margin-bottom: 0.5rem; font-size: 1.4rem; }

.v443-feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.v443-feature-item {
  background: var(--v443-bg-soft);
  border-radius: var(--v443-radius-sm);
  padding: 1.2rem;
  text-align: center;
  border: 1px solid var(--v443-border);
}
.v443-feature-item i { font-size: 2.4rem; color: var(--v443-gold); margin-bottom: 0.5rem; }
.v443-feature-item strong { display: block; color: var(--v443-text); font-size: 1.35rem; margin-bottom: 0.2rem; }
.v443-feature-item span { color: var(--v443-text-muted); font-size: 1.2rem; }

/* ============ RTP compact table ============ */
.v443-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.3rem; }
.v443-rtp-table th, .v443-rtp-table td {
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: left;
}
.v443-rtp-table th { color: var(--v443-gold); font-size: 1.25rem; }
.v443-rtp-table td { color: var(--v443-text-muted); }
.v443-rtp-table td b { color: var(--v443-orange); }

/* ============ Testimonials ============ */
.v443-testimonial {
  background: var(--v443-bg-soft);
  border-left: 3px solid var(--v443-primary);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 0.8rem;
}
.v443-testimonial p { margin: 0 0 0.4rem; font-size: 1.35rem; color: var(--v443-text); }
.v443-testimonial cite { color: var(--v443-gold); font-style: normal; font-size: 1.2rem; }

/* ============ Winners strip ============ */
.v443-winner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  background: var(--v443-bg-soft);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}
.v443-winner i { color: var(--v443-gold); font-size: 1.6rem; }
.v443-winner span { flex: 1; color: var(--v443-text); font-size: 1.3rem; }
.v443-winner b { color: var(--v443-orange); }

/* ============ Payment chips ============ */
.v443-pay-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.v443-pay-chip {
  background: var(--v443-bg-soft);
  border: 1px solid var(--v443-border);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  color: var(--v443-text);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.v443-pay-chip i { color: var(--v443-primary); }

/* ============ App download CTA ============ */
.v443-app-cta {
  background: var(--v443-gradient-dark);
  border: 1px solid var(--v443-border);
  border-radius: var(--v443-radius);
  padding: 1.6rem;
  text-align: center;
  margin-bottom: 1.4rem;
}
.v443-app-cta h3 { color: var(--v443-gold); font-size: 1.8rem; margin: 0 0 0.5rem; }
.v443-app-cta p { color: var(--v443-text-muted); font-size: 1.35rem; margin: 0 0 1rem; }
.v443-app-cta .v443-btn { margin: 0 0.3rem 0.5rem; }

/* ============ Promo banner CTA ============ */
.v443-cta-banner {
  background: var(--v443-gradient);
  border-radius: var(--v443-radius);
  padding: 1.6rem;
  text-align: center;
  color: #1a1205;
  margin-bottom: 1.4rem;
}
.v443-cta-banner h3 { font-size: 1.9rem; margin: 0 0 0.4rem; }
.v443-cta-banner p { font-size: 1.35rem; margin: 0 0 1rem; }
.v443-cta-banner .v443-btn {
  background: #0C0C0C; color: var(--v443-gold);
  border: none;
}

/* ============ FAQ ============ */
.v443-faq-item {
  background: var(--v443-bg-card);
  border: 1px solid var(--v443-border);
  border-radius: var(--v443-radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 0.7rem;
}
.v443-faq-item h4 { margin: 0 0 0.4rem; color: var(--v443-gold); font-size: 1.4rem; }
.v443-faq-item p { margin: 0; color: var(--v443-text-muted); font-size: 1.32rem; }

/* ============ Footer ============ */
.v443-footer {
  background: var(--v443-bg-soft);
  border-top: 1px solid var(--v443-border);
  padding: 2rem 0 1rem;
  margin-top: 2rem;
}
.v443-footer-inner { max-width: 430px; margin: 0 auto; padding: 0 1.4rem; }
.v443-footer-brand { color: var(--v443-text-muted); font-size: 1.3rem; margin-bottom: 1rem; line-height: 1.5; }
.v443-footer-brand b { color: var(--v443-gold); }
.v443-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem;
  margin-bottom: 1.2rem;
}
.v443-footer-links a {
  color: var(--v443-text);
  font-size: 1.25rem;
  padding: 0.3rem 0;
}
.v443-footer-links a:hover { color: var(--v443-orange); }
.v443-footer-promo {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.v443-footer-promo .v443-btn { min-height: 34px; padding: 0 0.9rem; font-size: 1.2rem; }
.v443-footer-copy {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1rem;
  font-size: 1.15rem;
  color: var(--v443-text-muted);
  text-align: center;
}

/* ============ Mobile bottom nav ============ */
.v443-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--v443-bottomnav-h);
  background: rgba(12, 12, 12, 0.98);
  border-top: 1px solid var(--v443-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  backdrop-filter: blur(8px);
}
.v443-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--v443-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  cursor: pointer;
  font-size: 1.05rem;
  transition: color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
  position: relative;
}
.v443-bottomnav-btn i { font-size: 24px; }
.v443-bottomnav-btn .material-icons-outlined,
.v443-bottomnav-btn .material-icons { font-size: 24px; }
.v443-bottomnav-btn:hover, .v443-bottomnav-btn:active { color: var(--v443-gold); transform: translateY(-1px); }
.v443-bottomnav-active { color: var(--v443-orange); }
.v443-bottomnav-active::after {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 30px; height: 3px;
  background: var(--v443-gold);
  border-radius: 0 0 4px 4px;
}
.v443-bottomnav-badge {
  position: absolute;
  top: 6px; right: 18px;
  background: var(--v443-primary);
  color: #0C0C0C;
  font-size: 0.95rem;
  font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* ============ Desktop rules ============ */
@media (min-width: 769px) {
  .v443-bottomnav { display: none; }
  .v443-container, .v443-wrapper, .v443-header-inner,
  .v443-mobile-menu-inner, .v443-footer-inner { max-width: 430px; }
}

/* ============ Mobile clearance ============ */
@media (max-width: 768px) {
  main.v443-main { padding-bottom: calc(var(--v443-bottomnav-h) + 16px); }
  body { padding-bottom: 0; }
}

/* Prevent horizontal scroll on tiny screens */
@media (max-width: 360px) {
  .v443-grid { grid-template-columns: repeat(2, 1fr); }
  .v443-carousel-slide img { height: 170px; }
}
