/* ===========================================================
   fun88vnblog.click - theme.css
   All custom classes use the "w3806-" prefix.
   Mobile-first design. Root font 62.5% => 1rem = 10px.
   Palette: #D3D3D3 | #FF7F50 | #2C3E50 | #FFB347 | #E65100
   =========================================================== */

:root {
  --w3806-bg: #2C3E50;
  --w3806-bg-dark: #1f2c3a;
  --w3806-bg-soft: #34495e;
  --w3806-primary: #FF7F50;
  --w3806-accent: #FFB347;
  --w3806-deep: #E65100;
  --w3806-text: #D3D3D3;
  --w3806-text-light: #ffffff;
  --w3806-border: rgba(255, 127, 80, 0.25);
  --w3806-radius: 1.2rem;
  --w3806-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: var(--w3806-bg);
  color: var(--w3806-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
}

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

/* ----- Layout core ----- */
.w3806-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  background: var(--w3806-bg);
}

.w3806-container {
  width: 100%;
  max-width: 430px;
  padding: 0 1.2rem;
  margin: 0 auto;
}

main.w3806-main {
  padding-top: 6rem;
}

/* ----- Header ----- */
.w3806-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--w3806-bg-dark), var(--w3806-bg-soft));
  border-bottom: 0.2rem solid var(--w3806-primary);
  box-shadow: var(--w3806-shadow);
}

.w3806-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  gap: 0.6rem;
}

.w3806-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}

.w3806-brand img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.6rem;
  object-fit: cover;
}

.w3806-brand-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w3806-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.w3806-brand-name span { color: var(--w3806-primary); }

.w3806-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.w3806-menu-toggle {
  background: transparent;
  border: 0;
  color: var(--w3806-text-light);
  font-size: 2rem;
  width: 3.2rem;
  height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 0.6rem;
}

/* ----- Buttons ----- */
.w3806-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.6rem;
  padding: 0 1.2rem;
  border-radius: 2rem;
  font-size: 1.3rem;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

.w3806-btn:active { transform: scale(0.96); }

.w3806-btn-primary {
  background: linear-gradient(135deg, var(--w3806-primary), var(--w3806-deep));
  color: var(--w3806-text-light);
  box-shadow: 0 0.3rem 0.8rem rgba(230, 81, 0, 0.4);
}

.w3806-btn-outline {
  background: transparent;
  color: var(--w3806-accent);
  border: 0.15rem solid var(--w3806-accent);
}

.w3806-btn-block {
  width: 100%;
}

.w3806-btn-lg {
  min-height: 4.4rem;
  font-size: 1.5rem;
}

/* ----- Mobile expandable menu ----- */
#w3806-mobile-menu {
  position: fixed;
  top: 5.6rem;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--w3806-bg-dark);
  border-bottom: 0.2rem solid var(--w3806-primary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

#w3806-mobile-menu.w3806-menu-open {
  max-height: 60rem;
}

.w3806-menu-list {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.6rem 1rem 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.w3806-menu-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  background: var(--w3806-bg-soft);
  color: var(--w3806-text-light);
  border-radius: 0.8rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.w3806-menu-list a i { color: var(--w3806-accent); font-size: 1.4rem; }

/* ----- Hero carousel ----- */
.w3806-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--w3806-radius);
  overflow: hidden;
  margin-bottom: 1.4rem;
  box-shadow: var(--w3806-shadow);
}

.w3806-slide {
  display: none;
  position: relative;
  cursor: pointer;
}

.w3806-slide.w3806-slide-active { display: block; }

.w3806-slide img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
}

.w3806-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: var(--w3806-text-light);
  padding: 1.4rem 1rem 1rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.w3806-carousel-dots {
  position: absolute;
  bottom: 0.6rem;
  right: 0.8rem;
  display: flex;
  gap: 0.4rem;
}

.w3806-carousel-dots span {
  width: 0.7rem; height: 0.7rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
}

/* ----- Sections ----- */
.w3806-section {
  margin: 1.6rem 0;
  padding: 1.4rem;
  background: var(--w3806-bg-soft);
  border-radius: var(--w3806-radius);
  border: 0.1rem solid var(--w3806-border);
}

.w3806-section-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--w3806-accent);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.w3806-section-title i { color: var(--w3806-primary); }

.w3806-section-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--w3806-text-light);
  margin: 0.8rem 0 0.4rem;
}

.w3806-section p {
  margin: 0.4rem 0;
  color: var(--w3806-text);
}

/* ----- H1 hero ----- */
.w3806-hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--w3806-text-light);
  margin: 1rem 0;
  line-height: 1.4;
}

.w3806-hero-title span { color: var(--w3806-primary); }

/* ----- Game grid ----- */
.w3806-game-block { margin-bottom: 1.6rem; }

.w3806-game-cat-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--w3806-accent);
  margin: 1rem 0 0.8rem;
  border-left: 0.3rem solid var(--w3806-primary);
  padding-left: 0.7rem;
}

.w3806-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.w3806-game-card {
  background: var(--w3806-bg-dark);
  border-radius: 0.8rem;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  border: 0.1rem solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.w3806-game-card:active {
  transform: scale(0.95);
  border-color: var(--w3806-primary);
}

.w3806-game-card img {
  width: 100%;
  height: 7.2rem;
  object-fit: cover;
  border-radius: 0.5rem;
}

.w3806-game-name {
  font-size: 1.05rem;
  color: var(--w3806-text-light);
  margin-top: 0.3rem;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ----- Cards / feature lists ----- */
.w3806-card {
  background: var(--w3806-bg-dark);
  border-radius: 0.9rem;
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 0.3rem solid var(--w3806-accent);
}

.w3806-card h3 {
  color: var(--w3806-accent);
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.w3806-feature-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.w3806-feature-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  background: var(--w3806-bg-dark);
  padding: 0.8rem;
  border-radius: 0.7rem;
}

.w3806-feature-list i {
  color: var(--w3806-primary);
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ----- RTP compact table ----- */
.w3806-rtp-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0.4rem;
  padding: 0.6rem 0.4rem;
  border-bottom: 0.1rem dashed var(--w3806-border);
  font-size: 1.15rem;
  align-items: center;
}

.w3806-rtp-row span:first-child { color: var(--w3806-text-light); font-weight: 600; }
.w3806-rtp-row .w3806-rtp-val { color: var(--w3806-accent); font-weight: 700; text-align: right; }
.w3806-rtp-row .w3806-rtp-vol { color: var(--w3806-text); font-size: 1rem; text-align: right; }
.w3806-rtp-header { color: var(--w3806-primary) !important; font-weight: 700; }

/* ----- Testimonials ----- */
.w3806-testimonial {
  background: var(--w3806-bg-dark);
  border-radius: 0.9rem;
  padding: 0.9rem;
  margin-bottom: 0.7rem;
  border-left: 0.3rem solid var(--w3806-primary);
}

.w3806-testimonial .w3806-stars { color: #FFB347; margin-bottom: 0.3rem; font-size: 1.1rem; }
.w3806-testimonial p { font-size: 1.15rem; color: var(--w3806-text); }
.w3806-testimonial .w3806-author {
  margin-top: 0.4rem;
  font-size: 1.05rem;
  color: var(--w3806-accent);
  font-weight: 600;
}

/* ----- Winners ticker ----- */
.w3806-winners {
  background: var(--w3806-bg-dark);
  border-radius: 0.9rem;
  padding: 0.7rem;
}

.w3806-winner-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 0.1rem dotted var(--w3806-border);
  font-size: 1.15rem;
}

.w3806-winner-row:last-child { border-bottom: 0; }
.w3806-winner-name { color: var(--w3806-text-light); font-weight: 600; }
.w3806-winner-amount { color: var(--w3806-primary); font-weight: 700; }

/* ----- Payment icons ----- */
.w3806-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.w3806-payment-chip {
  background: var(--w3806-bg-dark);
  border: 0.1rem solid var(--w3806-border);
  border-radius: 0.6rem;
  padding: 0.5rem 0.8rem;
  font-size: 1.1rem;
  color: var(--w3806-text-light);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ----- App download CTA ----- */
.w3806-app-cta {
  background: linear-gradient(135deg, var(--w3806-deep), var(--w3806-primary));
  border-radius: var(--w3806-radius);
  padding: 1.2rem;
  color: var(--w3806-text-light);
  text-align: center;
}

.w3806-app-cta h3 { color: var(--w3806-text-light); margin-bottom: 0.4rem; }
.w3806-app-cta p { color: rgba(255,255,255,0.9); margin-bottom: 0.8rem; }

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

.w3806-promo-box {
  background: var(--w3806-bg-dark);
  border: 0.15rem dashed var(--w3806-primary);
  border-radius: 0.9rem;
  padding: 1rem;
  text-align: center;
  margin: 1rem 0;
}

/* ----- Footer ----- */
.w3806-footer {
  background: var(--w3806-bg-dark);
  border-top: 0.2rem solid var(--w3806-primary);
  padding: 1.6rem 1.2rem 9rem;
  color: var(--w3806-text);
  font-size: 1.15rem;
}

.w3806-footer-brand { margin-bottom: 1rem; }
.w3806-footer-brand strong { color: var(--w3806-accent); }

.w3806-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 1rem 0;
}

.w3806-footer-links a {
  color: var(--w3806-text);
  font-size: 1.1rem;
}

.w3806-footer-links a:hover { color: var(--w3806-primary); }

.w3806-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.w3806-footer-promo button {
  flex: 1 1 45%;
}

.w3806-footer-copy {
  border-top: 0.1rem solid var(--w3806-border);
  padding-top: 0.8rem;
  font-size: 1.05rem;
  color: var(--w3806-text);
  text-align: center;
}

/* ----- Bottom navigation ----- */
.w3806-bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6rem;
  background: linear-gradient(180deg, var(--w3806-bg-soft), var(--w3806-bg-dark));
  border-top: 0.15rem solid var(--w3806-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -0.3rem 1rem rgba(0,0,0,0.4);
}

.w3806-bottomnav-btn {
  flex: 1;
  min-width: 6rem;
  min-height: 6rem;
  background: transparent;
  border: 0;
  color: var(--w3806-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  cursor: pointer;
  font-size: 1.05rem;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.w3806-bottomnav-btn i {
  font-size: 2.2rem;
  color: var(--w3806-text);
}

.w3806-bottomnav-btn:active { transform: scale(0.92); }

.w3806-bottomnav-active,
.w3806-bottomnav-btn.w3806-bottomnav-active i {
  color: var(--w3806-primary) !important;
}

.w3806-bottomnav-btn.w3806-bottomnav-active i { color: var(--w3806-primary); }

.w3806-tap { opacity: 0.75; }

/* ----- Helpers ----- */
.w3806-text-center { text-align: center; }
.w3806-mt-1 { margin-top: 0.6rem; }
.w3806-mt-2 { margin-top: 1.2rem; }
.w3806-mb-1 { margin-bottom: 0.6rem; }
.w3806-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }

/* ----- Responsive ----- */
@media (min-width: 769px) {
  .w3806-bottomnav { display: none; }
  .w3806-footer { padding-bottom: 2rem; }
}

@media (max-width: 768px) {
  main.w3806-main { padding-bottom: 80px; }
}
