/* phcity core stylesheet - design.css
   All custom classes use the "v876-" prefix.
   Palette: #00FF7F | #BF360C | #8FBC8F | #212F3D | #FFA500
   Dark = background, light = text. */

:root {
  --v876-primary: #00FF7F;
  --v876-accent: #FFA500;
  --v876-ember: #BF360C;
  --v876-sage: #8FBC8F;
  --v876-bg: #212F3D;
  --v876-bg-deep: #18222c;
  --v876-bg-soft: #2a3b4c;
  --v876-text: #f3f7f4;
  --v876-text-muted: #b8c4cd;
  --v876-line: rgba(255, 255, 255, 0.08);
  --v876-radius: 14px;
  --v876-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  font-size: 62.5%;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--v876-bg-deep);
  color: var(--v876-text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5rem;
  -webkit-text-size-adjust: 100%;
}

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

/* Page width cap (mobile-first) */
.v876-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
  position: relative;
}
.v876-container { width: 100%; max-width: 430px; margin: 0 auto; }

/* Skip link */
.v876-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--v876-primary);
  color: var(--v876-bg);
  padding: 0.6rem 1rem;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.v876-skip:focus { left: 0; }

/* ===================== HEADER ===================== */
.v876-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1d2932 0%, #18222c 100%);
  border-bottom: 2px solid var(--v876-primary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.v876-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.v876-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}
.v876-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.v876-logo-text {
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--v876-primary);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.v876-logo-text span { color: var(--v876-accent); }

.v876-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  min-height: 36px;
  transition: transform 0.15s ease, filter 0.15s ease;
  text-decoration: none;
}
.v876-btn:active { transform: scale(0.95); }
.v876-btn-primary {
  background: linear-gradient(135deg, var(--v876-primary), #00cc66);
  color: #062414;
}
.v876-btn-accent {
  background: linear-gradient(135deg, var(--v876-accent), var(--v876-ember));
  color: #fff;
}
.v876-btn-ghost {
  background: transparent;
  border: 1.5px solid var(--v876-primary);
  color: var(--v876-primary);
}
.v876-btn-block { width: 100%; }

.v876-menu-toggle {
  background: transparent;
  border: none;
  color: var(--v876-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  min-width: 40px;
  min-height: 40px;
}

/* ===================== MOBILE MENU ===================== */
.v876-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.v876-menu-overlay.v876-is-visible { opacity: 1; visibility: visible; }

.v876-mobile-menu {
  position: fixed;
  top: 0; right: -85%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--v876-bg-deep);
  z-index: 9999;
  padding: 5rem 1.5rem 2rem;
  overflow-y: auto;
  transition: right 0.3s ease;
  border-left: 2px solid var(--v876-primary);
}
.v876-mobile-menu.v876-is-open { right: 0; }
.v876-mobile-menu h3 {
  color: var(--v876-accent);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 1.2rem 0 0.5rem;
  border-bottom: 1px solid var(--v876-line);
  padding-bottom: 0.4rem;
}
.v876-mobile-menu a {
  display: block;
  padding: 0.7rem 0.4rem;
  color: var(--v876-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 1.4rem;
}
.v876-mobile-menu a:hover { background: rgba(0, 255, 127, 0.08); color: var(--v876-primary); }
.v876-menu-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* ===================== MAIN LAYOUT ===================== */
main {
  padding-top: 60px;
  padding-bottom: 1rem;
}
@media (max-width: 768px) {
  main { padding-bottom: 90px; }
}

.v876-section { padding: 1.6rem 0; }
.v876-section-title {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 0 0 0.4rem;
  color: var(--v876-text);
}
.v876-section-title span { color: var(--v876-primary); }
.v876-section-sub {
  color: var(--v876-text-muted);
  font-size: 1.3rem;
  margin: 0 0 1rem;
}
.v876-divider {
  height: 3px;
  width: 60px;
  background: linear-gradient(90deg, var(--v876-primary), var(--v876-accent));
  border-radius: 2px;
  margin-bottom: 1rem;
}

/* ===================== HERO / CAROUSEL ===================== */
.v876-carousel {
  position: relative;
  border-radius: var(--v876-radius);
  overflow: hidden;
  box-shadow: var(--v876-shadow);
  background: var(--v876-bg-soft);
}
.v876-carousel-track { position: relative; width: 100%; aspect-ratio: 16/9; }
.v876-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}
.v876-carousel-slide.v876-is-active { opacity: 1; }
.v876-carousel-slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.v876-carousel-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
  padding: 2rem 1rem 0.8rem;
  color: #fff;
  font-weight: 700;
}
.v876-carousel-cap small { color: var(--v876-accent); display: block; font-size: 1.1rem; }
.v876-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  border: none;
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  z-index: 2;
}
.v876-carousel-arrow:hover { background: var(--v876-primary); color: var(--v876-bg); }
.v876-carousel-arrow.v876-prev { left: 6px; }
.v876-carousel-arrow.v876-next { right: 6px; }
.v876-carousel-dots {
  position: absolute;
  bottom: 6px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
  z-index: 3;
}
.v876-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none; cursor: pointer; padding: 0;
}
.v876-carousel-dot.v876-is-active { background: var(--v876-primary); width: 18px; border-radius: 4px; }

/* ===================== HERO CTA STRIP ===================== */
.v876-cta-strip {
  display: flex; gap: 0.6rem; margin-top: 0.8rem;
}
.v876-cta-strip .v876-btn { flex: 1; }

/* ===================== FILTER CHIPS ===================== */
.v876-filter-bar {
  display: flex; gap: 0.5rem; overflow-x: auto;
  padding: 0.4rem 0 0.8rem;
  -webkit-overflow-scrolling: touch;
}
.v876-filter-chip {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: var(--v876-bg-soft);
  color: var(--v876-text-muted);
  font-size: 1.3rem;
  border: 1px solid var(--v876-line);
  cursor: pointer;
  white-space: nowrap;
}
.v876-filter-chip.v876-is-active {
  background: var(--v876-primary);
  color: var(--v876-bg);
  font-weight: 700;
}

/* ===================== GAME GRID ===================== */
.v876-game-section { margin-bottom: 1.6rem; }
.v876-game-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.6rem;
}
.v876-game-section-head h2 {
  font-size: 1.7rem; margin: 0; color: var(--v876-text);
}
.v876-game-section-head h2 i { color: var(--v876-accent); margin-right: 0.4rem; }
.v876-game-section-head a { font-size: 1.2rem; }

.v876-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.v876-grid-4 { grid-template-columns: repeat(4, 1fr); }
.v876-card {
  background: var(--v876-bg-soft);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid var(--v876-line);
}
.v876-card:active { transform: scale(0.96); }
.v876-card:hover { box-shadow: 0 6px 18px rgba(0, 255, 127, 0.18); }
.v876-card-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: #0f1820;
}
.v876-card-name {
  padding: 0.4rem 0.5rem;
  font-size: 1.1rem;
  text-align: center;
  color: var(--v876-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.v876-card-badge {
  position: absolute;
  top: 4px; left: 4px;
  background: var(--v876-ember);
  color: #fff;
  font-size: 0.95rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 700;
}

/* ===================== INFO / FEATURES ===================== */
.v876-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}
.v876-info-card {
  background: var(--v876-bg-soft);
  border-radius: var(--v876-radius);
  padding: 1.2rem;
  border-left: 4px solid var(--v876-primary);
}
.v876-info-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
  color: var(--v876-primary);
}
.v876-info-card p {
  margin: 0;
  font-size: 1.3rem;
  color: var(--v876-text-muted);
  line-height: 1.5;
}
.v876-info-card a { font-weight: 700; }

.v876-feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.v876-feature {
  background: linear-gradient(135deg, var(--v876-bg-soft), #243341);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--v876-line);
}
.v876-feature .v876-ico {
  font-size: 2.4rem;
  color: var(--v876-accent);
  margin-bottom: 0.4rem;
}
.v876-feature h4 { margin: 0 0 0.3rem; font-size: 1.4rem; color: var(--v876-text); }
.v876-feature p { margin: 0; font-size: 1.2rem; color: var(--v876-text-muted); }

/* ===================== RTP / STATS ===================== */
.v876-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.v876-stat {
  background: var(--v876-bg-soft);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}
.v876-stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--v876-primary);
}
.v876-stat-label { font-size: 1.2rem; color: var(--v876-text-muted); }

.v876-rtp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.8rem;
  background: var(--v876-bg-soft);
  border-radius: 8px;
  margin-bottom: 0.4rem;
  font-size: 1.3rem;
}
.v876-rtp-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin: 0 0.6rem;
  overflow: hidden;
}
.v876-rtp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--v876-primary), var(--v876-accent));
}

/* ===================== TESTIMONIALS ===================== */
.v876-testimonials { display: grid; gap: 0.7rem; }
.v876-testimonial {
  background: var(--v876-bg-soft);
  border-radius: 10px;
  padding: 1rem;
  border-left: 3px solid var(--v876-accent);
}
.v876-testimonial-stars { color: var(--v876-accent); font-size: 1.2rem; }
.v876-testimonial p { margin: 0.4rem 0 0.4rem; font-size: 1.3rem; }
.v876-testimonial small { color: var(--v876-text-muted); }

/* ===================== PAYMENT ===================== */
.v876-pay-row {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.v876-pay-pill {
  background: var(--v876-bg-soft);
  border: 1px solid var(--v876-line);
  border-radius: 20px;
  padding: 0.4rem 0.9rem;
  font-size: 1.2rem;
  color: var(--v876-text);
  display: inline-flex; align-items: center; gap: 0.3rem;
}

/* ===================== WINNERS ===================== */
.v876-winner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 0.8rem;
  background: var(--v876-bg-soft);
  border-radius: 8px;
  margin-bottom: 0.4rem;
  font-size: 1.3rem;
}
.v876-winner b { color: var(--v876-primary); }

/* ===================== FAQ ===================== */
.v876-faq-item {
  background: var(--v876-bg-soft);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.v876-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--v876-text);
  font-size: 1.4rem;
  font-weight: 700;
  padding: 0.9rem 1rem;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.v876-faq-q:after { content: "+"; color: var(--v876-primary); font-size: 1.6rem; }
.v876-faq-item.v876-is-open .v876-faq-q:after { content: "-"; }
.v876-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 1rem;
  color: var(--v876-text-muted);
  font-size: 1.3rem;
}
.v876-faq-item.v876-is-open .v876-faq-a { max-height: 320px; padding: 0 1rem 0.9rem; }

/* ===================== APP DOWNLOAD CTA ===================== */
.v876-app-cta {
  background: linear-gradient(135deg, #14323a, #1f4a3a);
  border-radius: var(--v876-radius);
  padding: 1.2rem;
  display: flex; align-items: center; gap: 1rem;
  border: 1px solid var(--v876-primary);
}
.v876-app-ico { font-size: 3rem; color: var(--v876-accent); }
.v876-app-cta h3 { margin: 0 0 0.2rem; font-size: 1.6rem; color: #fff; }
.v876-app-cta p { margin: 0 0 0.6rem; font-size: 1.2rem; color: var(--v876-text-muted); }

/* ===================== SEO TEXT ===================== */
.v876-seo-text {
  font-size: 1.3rem;
  color: var(--v876-text-muted);
  line-height: 1.7;
}
.v876-seo-text h2 { color: var(--v876-text); font-size: 1.7rem; margin: 1rem 0 0.4rem; }
.v876-seo-text h3 { color: var(--v876-primary); font-size: 1.4rem; margin: 0.8rem 0 0.3rem; }
.v876-seo-text p { margin: 0 0 0.6rem; }
.v876-seo-text a { color: var(--v876-accent); font-weight: 600; }

/* ===================== FOOTER ===================== */
.v876-footer {
  background: #0f1820;
  border-top: 2px solid var(--v876-primary);
  padding: 1.6rem 0 2rem;
  margin-top: 1.5rem;
}
.v876-footer-brand {
  font-size: 1.3rem;
  color: var(--v876-text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.v876-footer h4 {
  color: var(--v876-primary);
  font-size: 1.3rem;
  margin: 1rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.v876-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem 0.8rem;
  margin-bottom: 0.8rem;
}
.v876-footer-links a {
  color: var(--v876-text);
  font-size: 1.25rem;
}
.v876-footer-promos {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}
.v876-footer-copy {
  border-top: 1px solid var(--v876-line);
  padding-top: 0.8rem;
  font-size: 1.15rem;
  color: var(--v876-text-muted);
  text-align: center;
}

/* ===================== BOTTOM NAV ===================== */
.v876-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: #0f1820;
  border-top: 2px solid var(--v876-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.5);
}
.v876-bottom-nav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--v876-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  gap: 2px;
  cursor: pointer;
  min-width: 60px;
  min-height: 60px;
  padding: 0;
  transition: color 0.15s ease, transform 0.15s ease;
}
.v876-bottom-nav-btn .material-icons,
.v876-bottom-nav-btn i {
  font-size: 22px;
}
.v876-bottom-nav-btn:active { transform: scale(0.9); }
.v876-bottom-nav-btn.v876-is-current,
.v876-bottom-nav-btn:hover { color: var(--v876-primary); }
.v876-bottom-nav-btn.v876-nav-promo { color: var(--v876-accent); }
.v876-bottom-nav-btn.v876-nav-promo .v876-nav-badge {
  background: var(--v876-ember);
  color: #fff;
  font-size: 0.85rem;
  padding: 0 0.3rem;
  border-radius: 8px;
  position: absolute;
  transform: translate(8px, -8px);
}
.v876-bottom-nav-btn { position: relative; }

/* Back to top */
.v876-to-top {
  position: fixed;
  right: 12px;
  bottom: 76px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--v876-accent);
  color: #fff;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: var(--v876-shadow);
  display: none;
}

/* ===================== DESKTOP ===================== */
@media (min-width: 769px) {
  .v876-wrapper, .v876-header-inner, .v876-container, .v876-footer .v876-wrapper {
    max-width: 960px;
  }
  .v876-grid { grid-template-columns: repeat(6, 1fr); }
  .v876-info-grid { grid-template-columns: repeat(3, 1fr); }
  .v876-feature-row { grid-template-columns: repeat(4, 1fr); }
  .v876-stats { grid-template-columns: repeat(4, 1fr); }
  .v876-bottom-nav { display: none; }
  main { padding-bottom: 1rem; }
  .v876-to-top { display: block; }
}

/* Helpers */
.v876-text-center { text-align: center; }
.v876-mt-1 { margin-top: 0.6rem; }
.v876-mt-2 { margin-top: 1rem; }
.v876-hidden { display: none !important; }
.v876-tag {
  display: inline-block;
  background: rgba(0, 255, 127, 0.15);
  color: var(--v876-primary);
  padding: 0.2rem 0.7rem;
  border-radius: 12px;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}
