/* =========================================================
   x777 com casino - Shared design stylesheet
   Philippines (en-PH) mobile-first basefile
   All custom classes use the `v425-` prefix.
   Palette: #D2691E | #ADFF2F | #6F4E37 | #0E1621 | #BC8F8F
   Dark colors are backgrounds, light colors are text.
   ========================================================= */

:root {
  /* Brand palette */
  --v425-primary: #D2691E;       /* chocolate - main CTA */
  --v425-accent: #ADFF2F;        /* greenyellow - highlight */
  --v425-coffee: #6F4E37;        /* coffee - secondary */
  --v425-bg: #0E1621;            /* near-black navy - page bg */
  --v425-bg2: #14202e;           /* card surface */
  --v425-bg3: #1d2c3d;           /* elevated surface */
  --v425-rose: #BC8F8F;          /* rosy brown - soft accents */
  --v425-text: #f4ede0;          /* warm light text */
  --v425-muted: #aeb9c6;         /* muted text */
  --v425-border: rgba(173, 255, 47, 0.18);
  --v425-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --v425-radius: 14px;
  --v425-radius-lg: 22px;
  --v425-max: 430px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Roboto, system-ui, sans-serif;
  background: radial-gradient(circle at 18% -10%, #1d2c3d 0%, var(--v425-bg) 55%);
  color: var(--v425-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(--v425-accent); text-decoration: none; }
a:hover { color: #fff; }

.v425-container { width: 100%; max-width: var(--v425-max); margin: 0 auto; padding: 0 1.4rem; }
.v425-wrapper { padding: 2rem 1.4rem; }

/* ---------------- Header ---------------- */
.v425-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(14, 22, 33, 0.96), rgba(14, 22, 33, 0.88));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--v425-border);
}
.v425-header-inner {
  max-width: var(--v425-max); margin: 0 auto;
  padding: 0.8rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.v425-logo {
  display: flex; align-items: center; gap: 0.8rem;
  color: var(--v425-text); font-weight: 700;
}
.v425-logo img { width: 30px; height: 30px; border-radius: 8px; }
.v425-logo span { font-size: 1.45rem; color: var(--v425-accent); letter-spacing: 0.5px; }

.v425-actions { display: flex; align-items: center; gap: 0.6rem; }
.v425-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 0 1.2rem;
  border-radius: 999px; border: none;
  font-weight: 700; font-size: 1.25rem; cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.v425-btn:active { transform: scale(0.96); }
.v425-btn-primary {
  background: linear-gradient(135deg, var(--v425-primary), #ff8a3c);
  color: #fff;
  box-shadow: 0 4px 12px rgba(210, 105, 30, 0.45);
}
.v425-btn-ghost {
  background: transparent; color: var(--v425-accent);
  border: 1.5px solid var(--v425-accent);
}
.v425-btn-block { width: 100%; padding: 1rem; font-size: 1.4rem; min-height: 44px; }

.v425-menu-btn {
  background: transparent; border: 0; color: var(--v425-text);
  width: 40px; height: 40px; font-size: 2rem; cursor: pointer;
}

/* Expandable navigation menu */
.v425-mobile-menu {
  max-height: 0; overflow: hidden;
  background: var(--v425-bg2);
  border-top: 1px solid var(--v425-border);
  transition: max-height 0.28s ease;
}
.v425-mobile-menu.v425-menu-open { max-height: 520px; }
.v425-mobile-menu ul { list-style: none; margin: 0; padding: 0.4rem 1.2rem 1rem; }
.v425-mobile-menu li { border-bottom: 1px dashed rgba(255, 255, 255, 0.06); }
.v425-mobile-menu a {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1rem 0.4rem; color: var(--v425-text); font-size: 1.35rem;
}
.v425-mobile-menu a::before {
  content: "\f105"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  color: var(--v425-primary); font-size: 1.2rem;
}
.v425-mobile-menu a:hover { color: var(--v425-accent); }

/* ---------------- Layout helpers ---------------- */
.v425-main { padding-top: 72px; padding-bottom: 96px; }
.v425-section { padding: 1.8rem 0; }
.v425-section h2 {
  font-size: 1.9rem; margin: 0.4rem 0 1rem; color: #fff;
  display: flex; align-items: center; gap: 0.8rem;
}
.v425-section h2 .material-symbols-outlined,
.v425-section h2 i { color: var(--v425-accent); font-size: 2rem; }
.v425-section h3 { font-size: 1.55rem; margin: 1.2rem 0 0.6rem; color: var(--v425-accent); }
.v425-section p { margin: 0.6rem 0; color: var(--v425-muted); }
.v425-lead { color: var(--v425-text); font-size: 1.55rem; }

/* ---------------- Hero carousel ---------------- */
.v425-hero {
  position: relative; overflow: hidden;
  border-radius: var(--v425-radius-lg);
  margin: 1.4rem 0;
  box-shadow: var(--v425-shadow);
}
.v425-hero-track { position: relative; height: 200px; }
.v425-hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transform: scale(1.04);
  transition: opacity 0.7s ease, transform 0.7s ease;
  cursor: pointer;
}
.v425-hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.v425-hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,22,33,0) 35%, rgba(14,22,33,0.85) 100%);
}
.v425-hero-slide figcaption {
  position: absolute; bottom: 1rem; left: 1.2rem; right: 1.2rem;
  color: #fff; font-size: 1.4rem; font-weight: 700; z-index: 2;
}
.v425-hero-slide figcaption small {
  display: block; color: var(--v425-accent); font-size: 1.1rem; font-weight: 600;
}
.v425-hero-slide.v425-active { opacity: 1; transform: scale(1); }

.v425-hero-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 3;
}
.v425-hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.4); cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.v425-hero-dot.v425-active { background: var(--v425-accent); transform: scale(1.3); }

/* ---------------- Promo banner ---------------- */
.v425-promo {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem; border-radius: var(--v425-radius);
  background: linear-gradient(135deg, #2a1408, #6f2f12);
  border: 1px solid rgba(210, 105, 30, 0.45);
  margin: 1rem 0;
}
.v425-promo-text { flex: 1; }
.v425-promo-text strong { color: #fff; font-size: 1.4rem; }
.v425-promo-text span { display: block; color: var(--v425-rose); font-size: 1.2rem; }

/* ---------------- Filter tabs ---------------- */
.v425-filter {
  display: flex; gap: 0.5rem; overflow-x: auto;
  padding: 0.8rem 0; margin-bottom: 0.4rem;
  scrollbar-width: none;
}
.v425-filter::-webkit-scrollbar { display: none; }
.v425-filter-tab {
  flex: 0 0 auto;
  padding: 0.7rem 1.2rem;
  background: var(--v425-bg2); color: var(--v425-text);
  border-radius: 999px; border: 1px solid transparent;
  font-size: 1.2rem; cursor: pointer; white-space: nowrap;
}
.v425-filter-tab.v425-active {
  background: var(--v425-accent); color: #0E1621; font-weight: 700;
  border-color: var(--v425-accent);
}

/* ---------------- Game grid ---------------- */
.v425-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem;
}
.v425-card {
  background: var(--v425-bg2); border-radius: var(--v425-radius);
  overflow: hidden; cursor: pointer; position: relative;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.v425-card:hover, .v425-card:active {
  transform: translateY(-3px); border-color: var(--v425-border);
}
.v425-card-image {
  aspect-ratio: 1 / 1; background: #0a1019;
  display: flex; align-items: center; justify-content: center;
}
.v425-card-image img { width: 100%; height: 100%; object-fit: cover; }
.v425-card-name {
  padding: 0.5rem 0.6rem; font-size: 1.15rem;
  text-align: center; color: var(--v425-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.v425-card-badge {
  position: absolute; top: 4px; left: 4px;
  background: var(--v425-primary); color: #fff;
  font-size: 1rem; padding: 2px 6px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.v425-card-badge.hot { background: #d9304f; }
.v425-card-badge.new { background: #2f9e44; }

/* ---------------- Info blocks ---------------- */
.v425-card-info {
  background: var(--v425-bg2); border-radius: var(--v425-radius);
  padding: 1.2rem; margin: 0.8rem 0;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.v425-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.v425-stat {
  background: var(--v425-bg3); border-radius: var(--v425-radius);
  padding: 1rem; text-align: center; border: 1px dashed rgba(173, 255, 47, 0.25);
}
.v425-stat strong {
  display: block; color: var(--v425-accent);
  font-size: 1.8rem; font-weight: 800;
}
.v425-stat span { color: var(--v425-muted); font-size: 1.15rem; }

.v425-list { padding-left: 1.4rem; margin: 0.6rem 0; color: var(--v425-muted); }
.v425-list li { margin: 0.4rem 0; }
.v425-list a { color: var(--v425-accent); font-weight: 600; }

/* Inline promo anchor:醒目粗体,文字颜色 */
.v425-promo-link {
  color: var(--v425-accent); font-weight: 800;
  border-bottom: 2px dotted var(--v425-primary);
  cursor: pointer;
}
.v425-promo-link:hover { color: #fff; border-bottom-color: #fff; }

/* ---------------- Testimonials ---------------- */
.v425-quote {
  background: var(--v425-bg2); border-left: 4px solid var(--v425-primary);
  padding: 0.9rem 1.1rem; border-radius: 0 var(--v425-radius) var(--v425-radius) 0;
  margin: 0.6rem 0;
}
.v425-quote p { margin: 0 0 0.4rem; color: var(--v425-text); }
.v425-quote cite { color: var(--v425-rose); font-style: normal; font-size: 1.15rem; }

/* ---------------- Payment chips ---------------- */
.v425-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.v425-chip {
  background: var(--v425-bg2); color: var(--v425-text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 0.9rem; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 1.15rem;
}

/* ---------------- Winner ticker ---------------- */
.v425-ticker {
  display: flex; gap: 0.8rem; overflow-x: auto;
  padding: 0.8rem 0; scrollbar-width: none;
}
.v425-ticker::-webkit-scrollbar { display: none; }
.v425-ticker-item {
  flex: 0 0 auto;
  background: var(--v425-bg2); border-radius: var(--v425-radius);
  padding: 0.6rem 0.9rem; border: 1px solid rgba(173, 255, 47, 0.15);
  text-align: center; min-width: 120px;
}
.v425-ticker-item strong { color: var(--v425-accent); display: block; font-size: 1.3rem; }
.v425-ticker-item span { color: var(--v425-muted); font-size: 1.05rem; }

/* ---------------- Footer ---------------- */
.v425-footer {
  background: linear-gradient(180deg, #0c1320, #060a12);
  border-top: 1px solid var(--v425-border);
  padding: 2rem 1.4rem 2.4rem;
  color: var(--v425-muted);
}
.v425-footer h4 { color: #fff; font-size: 1.35rem; margin: 1.2rem 0 0.6rem; }
.v425-footer p { color: var(--v425-muted); font-size: 1.25rem; }
.v425-footer-links {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem;
  margin: 1rem 0;
}
.v425-footer-links a {
  color: var(--v425-text); font-size: 1.2rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.v425-footer-links a::before {
  content: "\f0da"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  color: var(--v425-primary); font-size: 1rem;
}
.v425-footer-copy {
  font-size: 1.1rem; text-align: center; margin-top: 1.4rem;
  color: #5b6675;
}

/* ---------------- Bottom navigation ---------------- */
.v425-bnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(20, 32, 46, 0.98), rgba(8, 14, 22, 0.98));
  border-top: 1px solid var(--v425-border);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 62px;
}
.v425-bnav-link {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--v425-muted); font-size: 1.05rem; gap: 2px;
  background: transparent; border: 0; cursor: pointer;
  text-decoration: none; min-width: 60px; min-height: 60px;
  position: relative; transition: color 0.18s ease;
}
.v425-bnav-link i,
.v425-bnav-link .material-symbols-outlined {
  font-size: 22px; transition: transform 0.2s ease, color 0.2s ease;
}
.v425-bnav-link:hover { color: var(--v425-accent); }
.v425-bnav-link:hover i { transform: scale(1.15); }
.v425-bnav-link.v425-current { color: var(--v425-accent); }
.v425-bnav-link.v425-current::after {
  content: ""; position: absolute; bottom: 4px; width: 20px; height: 3px;
  background: var(--v425-accent); border-radius: 3px;
}
.v425-bnav-link.v425-promo-btn {
  color: #fff;
}
.v425-bnav-link.v425-promo-btn .v425-bnav-icon-wrap {
  background: linear-gradient(135deg, var(--v425-primary), #ff8a3c);
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(210, 105, 30, 0.4);
}

/* ---------------- Back to top + toast ---------------- */
#sitec42TopBtn {
  position: fixed; right: 16px; bottom: 78px; z-index: 1100;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--v425-primary); color: #fff; border: 0;
  display: none; align-items: center; justify-content: center;
  box-shadow: var(--v425-shadow); cursor: pointer;
}
#sitec42TopBtn.v425-show { display: flex; }

#sitec42Toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%);
  background: rgba(14, 22, 33, 0.95); color: var(--v425-accent);
  border: 1px solid var(--v425-border);
  padding: 0.7rem 1.2rem; border-radius: 999px;
  font-size: 1.2rem; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
  z-index: 1200;
}
#sitec42Toast.v425-show { opacity: 1; }

/* ---------------- Desktop behaviour ---------------- */
@media (min-width: 769px) {
  .v425-bnav { display: none; }
  .v425-main { padding-bottom: 32px; }
  body { background: linear-gradient(135deg, #0E1621, #1d2c3d); }
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
