/*!
 * jili333 game download - Core stylesheet
 * Mobile-first PH online casino guide. All custom classes use the v78c- prefix.
 * Palette: #2C2C2C (deep background), #D3D3D3 (light text),
 * #FF0000 (brand red accent), #BDC3C7 (muted silver).
 */
:root {
  --v78c-bg: #2C2C2C;
  --v78c-bg-alt: #1c1c1c;
  --v78c-bg-card: #3a3a3a;
  --v78c-text: #D3D3D3;
  --v78c-text-soft: #BDC3C7;
  --v78c-primary: #FF0000;
  --v78c-primary-dark: #cc0000;
  --v78c-gold: #f5c542;
  --v78c-border: rgba(211, 211, 211, 0.12);
  --v78c-radius: 1.2rem;
  --v78c-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.45);
  --v78c-header-h: 6rem;
  --v78c-bottom-h: 6.4rem;
}

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

html {
  font-size: 62.5%; /* 1rem = 10px baseline for rem-based scaling */
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--v78c-bg);
  color: var(--v78c-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

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

.v78c-wrapper { padding-top: var(--v78c-header-h); padding-bottom: 2rem; }

/* ===== Header ===== */
.v78c-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--v78c-header-h);
  background: linear-gradient(180deg, #1c1c1c 0%, #2C2C2C 100%);
  border-bottom: 0.2rem solid var(--v78c-primary);
  z-index: 1000;
  box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.6);
}

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

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

.v78c-brand img {
  width: 3rem; height: 3rem;
  border-radius: 0.6rem;
  border: 0.1rem solid var(--v78c-primary);
}

.v78c-brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v78c-brand-name span { color: var(--v78c-primary); }

.v78c-header-actions { display: flex; align-items: center; gap: 0.6rem; }

.v78c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.4rem;
  padding: 0 1.2rem;
  border: none;
  border-radius: 0.8rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
  color: #fff;
  font-family: inherit;
}
.v78c-btn:active { transform: scale(0.96); }

.v78c-btn--login {
  background: transparent;
  border: 0.15rem solid var(--v78c-text-soft);
  color: var(--v78c-text);
}

.v78c-btn--register {
  background: linear-gradient(135deg, var(--v78c-primary) 0%, var(--v78c-primary-dark) 100%);
  color: #fff;
  box-shadow: 0 0.3rem 0.8rem rgba(255, 0, 0, 0.4);
}

.v78c-menu-trigger {
  background: transparent;
  border: 0.1rem solid var(--v78c-border);
  border-radius: 0.6rem;
  width: 3.4rem; height: 3.4rem;
  color: var(--v78c-text);
  cursor: pointer;
  font-size: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===== Mobile expandable menu ===== */
.v78c-mobile-menu {
  position: fixed;
  top: var(--v78c-header-h);
  left: 0; right: 0;
  background: #1c1c1c;
  border-bottom: 0.2rem solid var(--v78c-primary);
  padding: 1rem 1.2rem 1.4rem;
  transform: translateY(-120%);
  transition: transform 0.28s ease;
  z-index: 9999;
  max-height: calc(100vh - var(--v78c-header-h));
  overflow-y: auto;
  box-shadow: var(--v78c-shadow);
}
.v78c-mobile-menu--open { transform: translateY(0); }

.v78c-mobile-menu h4 {
  color: var(--v78c-primary);
  font-size: 1.2rem;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  margin: 0.6rem 0 0.4rem;
}

.v78c-mobile-menu ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }

.v78c-mobile-menu a {
  display: block;
  padding: 0.9rem 1rem;
  background: var(--v78c-bg-card);
  border-radius: 0.6rem;
  font-size: 1.25rem;
  color: var(--v78c-text);
  border: 0.1rem solid var(--v78c-border);
}
.v78c-mobile-menu a:active { background: var(--v78c-primary-dark); }

/* ===== Hero carousel ===== */
.v78c-carousel {
  position: relative;
  border-radius: var(--v78c-radius);
  overflow: hidden;
  margin: 1.2rem 0;
  box-shadow: var(--v78c-shadow);
}

.v78c-carousel-track { position: relative; height: 18rem; }

.v78c-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.v78c-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.v78c-carousel-slide--active { opacity: 1; }

.v78c-carousel-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem 1.2rem 1.2rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.v78c-carousel-overlay strong { font-size: 1.4rem; color: var(--v78c-primary); }
.v78c-carousel-overlay span { font-size: 1.15rem; color: var(--v78c-text-soft); }

.v78c-carousel-prev,
.v78c-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 2;
}
.v78c-carousel-prev { left: 0.6rem; }
.v78c-carousel-next { right: 0.6rem; }

.v78c-carousel-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}
.v78c-carousel-dot {
  width: 0.8rem; height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
}
.v78c-carousel-dot--active { background: var(--v78c-primary); }

/* ===== Section / heading ===== */
.v78c-section {
  margin: 2rem 0;
  padding: 1.4rem;
  background: var(--v78c-bg-card);
  border-radius: var(--v78c-radius);
  border: 0.1rem solid var(--v78c-border);
}

.v78c-section-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 0.1rem dashed var(--v78c-border);
}
.v78c-section-head i { color: var(--v78c-primary); font-size: 1.8rem; }

.v78c-h1 {
  font-size: 2rem;
  line-height: 2.6rem;
  color: #fff;
  margin: 1rem 0;
  padding: 1rem 1.2rem;
  border-left: 0.4rem solid var(--v78c-primary);
  background: linear-gradient(90deg, rgba(255,0,0,0.12) 0%, transparent 100%);
  border-radius: 0.6rem;
}

.v78c-h2 {
  font-size: 1.7rem;
  color: #fff;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.v78c-h2 i { color: var(--v78c-primary); }

.v78c-h3 { font-size: 1.4rem; color: var(--v78c-text); margin: 0.8rem 0 0.4rem; }
.v78c-p { margin-bottom: 0.8rem; color: var(--v78c-text); font-size: 1.35rem; line-height: 1.7rem; }
.v78c-p strong { color: var(--v78c-primary); }

/* ===== Promo link styling (inline text + CTA) ===== */
.v78c-promo-link {
  color: var(--v78c-primary);
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.v78c-cta-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0.8rem 0;
}

.v78c-cta-primary {
  flex: 1 1 100%;
  background: linear-gradient(135deg, var(--v78c-primary) 0%, var(--v78c-primary-dark) 100%);
  color: #fff;
  padding: 1.2rem;
  border-radius: 0.8rem;
  text-align: center;
  font-weight: 800;
  font-size: 1.4rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 0.3rem 0.8rem rgba(255, 0, 0, 0.35);
}

/* ===== Game tabs ===== */
.v78c-game-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.6rem 0;
  margin-bottom: 0.8rem;
  scrollbar-width: none;
}
.v78c-game-tabs::-webkit-scrollbar { display: none; }

.v78c-game-tab {
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  background: var(--v78c-bg-alt);
  color: var(--v78c-text-soft);
  border: 0.1rem solid var(--v78c-border);
  font-size: 1.2rem;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 700;
}
.v78c-game-tab--active {
  background: var(--v78c-primary);
  color: #fff;
  border-color: var(--v78c-primary);
}

/* ===== Game grid ===== */
.v78c-game-group { margin: 1.2rem 0; }
.v78c-game-group--hidden { display: none; }

.v78c-game-group-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin: 1rem 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.v78c-game-group-title i { color: var(--v78c-gold); }

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

.v78c-game-card {
  background: var(--v78c-bg-alt);
  border-radius: 0.8rem;
  padding: 0.5rem;
  text-align: center;
  border: 0.1rem solid var(--v78c-border);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
}
.v78c-game-card:active { transform: scale(0.96); border-color: var(--v78c-primary); }

.v78c-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.6rem;
  margin-bottom: 0.4rem;
}

.v78c-game-card-name {
  font-size: 1.1rem;
  color: var(--v78c-text);
  font-weight: 600;
  line-height: 1.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Feature / promo cards ===== */
.v78c-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}
.v78c-card {
  background: linear-gradient(135deg, var(--v78c-bg-card) 0%, var(--v78c-bg-alt) 100%);
  border-radius: 0.8rem;
  padding: 1rem;
  border: 0.1rem solid var(--v78c-border);
}
.v78c-card h3 { color: var(--v78c-primary); font-size: 1.35rem; margin-bottom: 0.4rem; }
.v78c-card p { font-size: 1.25rem; color: var(--v78c-text-soft); line-height: 1.6rem; }

.v78c-feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.6rem;
}
.v78c-feature-list li {
  background: var(--v78c-bg-alt);
  padding: 0.8rem;
  border-radius: 0.6rem;
  border-left: 0.3rem solid var(--v78c-primary);
  font-size: 1.2rem;
}
.v78c-feature-list i { color: var(--v78c-primary); margin-right: 0.3rem; }

/* ===== RTP table ===== */
.v78c-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; margin-top: 0.6rem; }
.v78c-rtp-table th, .v78c-rtp-table td {
  padding: 0.7rem 0.6rem;
  border-bottom: 0.1rem solid var(--v78c-border);
  text-align: left;
}
.v78c-rtp-table th { color: var(--v78c-primary); font-weight: 800; }
.v78c-rtp-table td { color: var(--v78c-text-soft); }
.v78c-rtp-bar {
  height: 0.6rem;
  border-radius: 0.3rem;
  background: linear-gradient(90deg, var(--v78c-primary) 0%, var(--v78c-gold) 100%);
}

/* ===== Testimonials ===== */
.v78c-testimonial {
  background: var(--v78c-bg-alt);
  border-radius: 0.8rem;
  padding: 1rem;
  margin-bottom: 0.6rem;
  border-left: 0.4rem solid var(--v78c-gold);
}
.v78c-testimonial p { font-size: 1.25rem; color: var(--v78c-text); font-style: italic; }
.v78c-testimonial cite { display: block; margin-top: 0.5rem; color: var(--v78c-primary); font-weight: 700; font-style: normal; font-size: 1.15rem; }

/* ===== Payment icons ===== */
.v78c-pay-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.v78c-pay-item {
  background: #fff;
  color: var(--v78c-bg);
  padding: 0.5rem 0.9rem;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

/* ===== Winners ===== */
.v78c-winner {
  display: flex;
  justify-content: space-between;
  background: var(--v78c-bg-alt);
  padding: 0.7rem 0.9rem;
  border-radius: 0.6rem;
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
}
.v78c-winner b { color: var(--v78c-gold); }

/* ===== FAQ ===== */
.v78c-faq-item {
  background: var(--v78c-bg-alt);
  border: 0.1rem solid var(--v78c-border);
  border-radius: 0.6rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.v78c-faq-question {
  padding: 1rem;
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.v78c-faq-question i { color: var(--v78c-primary); }
.v78c-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1rem;
  color: var(--v78c-text-soft);
  font-size: 1.2rem;
}
.v78c-faq-item--open .v78c-faq-answer { max-height: 32rem; padding: 0 1rem 1rem; }

/* ===== Footer ===== */
.v78c-footer {
  background: var(--v78c-bg-alt);
  margin-top: 2rem;
  padding: 1.6rem 1.2rem calc(var(--v78c-bottom-h) + 1.6rem);
  border-top: 0.2rem solid var(--v78c-primary);
}
.v78c-footer-brand { font-size: 1.3rem; color: #fff; margin-bottom: 0.6rem; font-weight: 800; }
.v78c-footer p { color: var(--v78c-text-soft); font-size: 1.2rem; line-height: 1.6rem; margin-bottom: 1rem; }
.v78c-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 1rem 0;
}
.v78c-footer-links a {
  font-size: 1.15rem;
  color: var(--v78c-text);
  padding: 0.5rem 0.6rem;
  background: var(--v78c-bg-card);
  border-radius: 0.5rem;
  border-left: 0.25rem solid var(--v78c-primary);
}
.v78c-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0;
}
.v78c-footer-copy {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--v78c-text-soft);
  text-align: center;
  border-top: 0.1rem dashed var(--v78c-border);
  padding-top: 0.8rem;
}

/* ===== Mobile bottom navigation ===== */
.v78c-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--v78c-bottom-h);
  background: linear-gradient(180deg, #2C2C2C 0%, #1c1c1c 100%);
  border-top: 0.2rem solid var(--v78c-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -0.3rem 1rem rgba(0, 0, 0, 0.55);
}

.v78c-bottom-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: var(--v78c-text-soft);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.18s ease, transform 0.18s ease;
}
.v78c-bottom-nav-btn i,
.v78c-bottom-nav-btn .material-icons-outlined { font-size: 2.2rem; }
.v78c-bottom-nav-btn span { font-size: 1.05rem; font-weight: 600; }

.v78c-bottom-nav-btn--active { color: var(--v78c-primary); }
.v78c-bottom-nav-btn:active { transform: scale(0.92); }
.v78c-bottom-nav-btn--promo {
  color: var(--v78c-gold);
  position: relative;
}
.v78c-bottom-nav-btn--promo::after {
  content: 'HOT';
  position: absolute;
  top: 0.4rem;
  right: 1rem;
  background: var(--v78c-primary);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.1rem 0.4rem;
  border-radius: 0.3rem;
  font-weight: 800;
}

/* ===== Mobile bottom padding clearance ===== */
@media (max-width: 768px) {
  main, .v78c-wrapper { padding-bottom: calc(var(--v78c-bottom-h) + 1.5rem) !important; }
}

/* ===== Desktop: hide bottom nav, expand container ===== */
@media (min-width: 769px) {
  .v78c-bottom-nav { display: none; }
  .v78c-footer { padding-bottom: 1.6rem; }
  .v78c-container { max-width: 760px; }
  .v78c-game-grid { grid-template-columns: repeat(6, 1fr); }
  .v78c-card-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Reveal animation ===== */
.v78c-reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.v78c-reveal--visible { opacity: 1; transform: translateY(0); }
