/* fun88 com link - shared site styles (English comments) */
/* All custom classes use the v584- prefix. */

:root {
  --v584-primary: #2C3E50;
  --v584-secondary: #34495E;
  --v584-bg: #2C3E50;
  --v584-surface: #34495E;
  --v584-light: #F5F5F5;
  --v584-muted: #ECF0F1;
  --v584-accent: #E74C3C;
  --v584-accent-2: #F39C12;
  --v584-success: #27AE60;
  --v584-border: rgba(236, 240, 241, 0.15);
  --v584-radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--v584-bg);
  color: var(--v584-light);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

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

h1, h2, h3 { line-height: 1.3; color: var(--v584-light); }
h1 { font-size: 2.2rem; margin: 1rem 0; }
h2 { font-size: 1.9rem; margin: 1rem 0; }
h3 { font-size: 1.6rem; margin: 0.8rem 0; }
p { margin: 0.6rem 0; }

/* ---------- Header ---------- */
.v584-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--v584-primary), var(--v584-secondary));
  border-bottom: 1px solid var(--v584-border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  max-width: 430px;
  margin: 0 auto;
}
.v584-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.9rem;
  gap: 0.5rem;
}
.v584-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.v584-logo img { width: 28px; height: 28px; border-radius: 6px; }
.v584-logo-text {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--v584-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v584-header-actions { display: flex; align-items: center; gap: 0.4rem; }
.v584-menu-btn {
  background: transparent;
  border: 1px solid var(--v584-border);
  color: var(--v584-light);
  width: 36px; height: 36px;
  border-radius: 8px;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Buttons ---------- */
.v584-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.35rem;
  border: none;
  cursor: pointer;
  min-height: 36px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.v584-btn:hover { transform: translateY(-1px); text-decoration: none; }
.v584-btn-primary { background: var(--v584-accent); color: #fff; }
.v584-btn-primary:hover { background: #ff5a4d; }
.v584-btn-secondary { background: var(--v584-accent-2); color: #2C3E50; }
.v584-btn-secondary:hover { background: #ffb13d; }
.v584-btn-ghost { background: transparent; color: var(--v584-light); border: 1px solid var(--v584-border); }
.v584-btn-block { display: flex; width: 100%; }

/* ---------- Nav menu ---------- */
.v584-nav-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--v584-secondary);
  border-top: 1px solid var(--v584-border);
}
.v584-nav-open { max-height: 480px; }
.v584-nav-menu ul { list-style: none; padding: 0.4rem 0.9rem; }
.v584-nav-menu li { border-bottom: 1px solid var(--v584-border); }
.v584-nav-menu li:last-child { border-bottom: none; }
.v584-nav-menu a {
  display: block;
  padding: 0.85rem 0.4rem;
  color: var(--v584-light);
  font-size: 1.4rem;
}
.v584-nav-menu a:hover { color: var(--v584-accent-2); }

/* ---------- Layout ---------- */
.v584-main { padding-top: 64px; padding-bottom: 80px; }
.v584-container { padding: 0 0.9rem; }
.v584-section { margin: 1.4rem 0; }
.v584-section-title {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--v584-accent-2);
  border-left: 4px solid var(--v584-accent);
  padding-left: 0.6rem;
  margin-bottom: 0.6rem;
}

/* ---------- Carousel ---------- */
.v584-carousel {
  position: relative;
  border-radius: var(--v584-radius);
  overflow: hidden;
  margin: 0.9rem 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.v584-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.v584-slide-active { display: block; }
.v584-slide img { width: 100%; height: 170px; object-fit: cover; }
.v584-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
  padding: 0.8rem;
  font-size: 1.35rem;
  font-weight: 600;
}
.v584-dots {
  position: absolute;
  bottom: 8px; right: 10px;
  display: flex; gap: 5px;
}
.v584-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
}
.v584-dot-active { background: var(--v584-accent-2); }

/* ---------- Game grid ---------- */
.v584-cat-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 1.2rem 0 0.6rem;
}
.v584-cat-tag {
  background: var(--v584-accent);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 6px;
  letter-spacing: 0.5px;
}
.v584-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.v584-game {
  background: var(--v584-surface);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--v584-border);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.v584-game:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.35); }
.v584-game img { width: 100%; height: 84px; object-fit: cover; }
.v584-game-name {
  font-size: 1.15rem;
  padding: 0.35rem 0.3rem;
  color: var(--v584-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

/* ---------- Cards ---------- */
.v584-card {
  background: var(--v584-surface);
  border-radius: var(--v584-radius);
  padding: 1rem;
  margin: 0.7rem 0;
  border: 1px solid var(--v584-border);
}
.v584-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.v584-mini-card {
  background: rgba(245,245,245,0.06);
  border-radius: 10px;
  padding: 0.8rem;
  text-align: center;
}
.v584-mini-card i { color: var(--v584-accent-2); font-size: 2.2rem; margin-bottom: 0.3rem; }
.v584-mini-card h3 { font-size: 1.3rem; }
.v584-mini-card p { font-size: 1.2rem; color: var(--v584-muted); }

/* ---------- List ---------- */
.v584-list { list-style: none; padding-left: 0; }
.v584-list li {
  padding: 0.4rem 0 0.4rem 1.6rem;
  position: relative;
  font-size: 1.35rem;
}
.v584-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--v584-success);
  position: absolute;
  left: 0;
  font-size: 1.1rem;
}

/* ---------- RTP / Stats ---------- */
.v584-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin: 0.7rem 0; }
.v584-stat {
  background: rgba(245,245,245,0.06);
  border-radius: 10px;
  padding: 0.7rem;
  text-align: center;
}
.v584-stat-num { display: block; font-size: 1.7rem; font-weight: 800; color: var(--v584-accent-2); }
.v584-stat-label { font-size: 1.1rem; color: var(--v584-muted); }

/* ---------- Testimonial ---------- */
.v584-quote {
  background: rgba(245,245,245,0.06);
  border-left: 3px solid var(--v584-accent);
  border-radius: 8px;
  padding: 0.8rem;
  margin: 0.5rem 0;
  font-size: 1.3rem;
}
.v584-quote-author { display: block; margin-top: 0.4rem; color: var(--v584-muted); font-size: 1.15rem; }

/* ---------- Payment chips ---------- */
.v584-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.v584-chip {
  background: rgba(245,245,245,0.08);
  border: 1px solid var(--v584-border);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 1.2rem;
  display: inline-flex; align-items: center; gap: 0.3rem;
}

/* ---------- FAQ ---------- */
.v584-faq-item {
  background: var(--v584-surface);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  margin: 0.5rem 0;
  border: 1px solid var(--v584-border);
}
.v584-faq-item h3 { color: var(--v584-accent-2); font-size: 1.35rem; }

/* ---------- Footer ---------- */
.v584-footer {
  background: var(--v584-primary);
  border-top: 1px solid var(--v584-border);
  padding: 1.2rem 0.9rem 1rem;
  margin-top: 1.2rem;
  font-size: 1.25rem;
  color: var(--v584-muted);
}
.v584-footer h3 { color: var(--v584-light); margin-bottom: 0.4rem; }
.v584-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
  margin: 0.6rem 0;
}
.v584-footer-links a { color: var(--v584-muted); font-size: 1.2rem; }
.v584-footer-promo {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.7rem 0;
}
.v584-copyright {
  border-top: 1px solid var(--v584-border);
  padding-top: 0.7rem;
  margin-top: 0.7rem;
  font-size: 1.15rem;
  color: var(--v584-muted);
  text-align: center;
}

/* ---------- Bottom nav ---------- */
.v584-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--v584-secondary), var(--v584-primary));
  border-top: 1px solid var(--v584-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  height: 60px;
  max-width: 430px;
  margin: 0 auto;
  box-shadow: 0 -3px 12px rgba(0,0,0,0.3);
}
.v584-bottombtn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--v584-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1.05rem;
  padding: 4px 2px;
  transition: color 0.15s ease, transform 0.15s ease;
}
.v584-bottombtn i { font-size: 22px; }
.v584-bottombtn .material-icons { font-size: 24px; }
.v584-bottombtn:hover { color: var(--v584-accent-2); transform: translateY(-1px); }
.v584-bottombtn-active { color: var(--v584-accent-2); }
.v584-bottombtn-promo { color: var(--v584-accent-2); }

/* ---------- Helpers ---------- */
.v584-text-center { text-align: center; }
.v584-mt { margin-top: 1rem; }
.v584-muted { color: var(--v584-muted); }
.v584-lead { font-size: 1.4rem; color: var(--v584-muted); }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .v584-bottom-nav { display: none; }
  .v584-main { padding-bottom: 1.2rem; }
}
