/* ============================================================
   pinoy time ph - Core Stylesheet (basefiles)
   All classes use prefix: v4d5-
   CSS variables use prefix: --v4d5-
   Palette: #333333 #008000 #BAFFC9 #66CDAA #DEE2E6 #E91E63
   Mobile-first. Root font 62.5% (1rem = 10px).
   ============================================================ */

:root {
  --v4d5-bg: #333333;
  --v4d5-bg-alt: #2a2a2a;
  --v4d5-primary: #008000;
  --v4d5-primary-dark: #006600;
  --v4d5-accent: #E91E63;
  --v4d5-mint: #66CDAA;
  --v4d5-mint-soft: #BAFFC9;
  --v4d5-light: #DEE2E6;
  --v4d5-text: #DEE2E6;
  --v4d5-text-muted: #b8c0c6;
  --v4d5-white: #ffffff;
  --v4d5-gold: #FFD24A;
  --v4d5-radius: 10px;
  --v4d5-shadow: 0 4px 14px rgba(0,0,0,.35);
  --v4d5-header-h: 56px;
  --v4d5-bottomnav-h: 62px;
}

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

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

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

img { max-width: 100%; display: block; }

a { color: var(--v4d5-mint-soft); text-decoration: none; }
a:hover { color: var(--v4d5-accent); }

/* ---------- Layout ---------- */
.v4d5-container { width: 100%; padding: 0 1.2rem; }
.v4d5-wrapper { padding-top: var(--v4d5-header-h); padding-bottom: calc(var(--v4d5-bottomnav-h) + 1rem); }
.v4d5-section { padding: 2rem 1.2rem; }
.v4d5-section-alt { background: var(--v4d5-bg-alt); }

.v4d5-h1 {
  font-size: 2.2rem; line-height: 1.25; color: var(--v4d5-white);
  margin-bottom: 1rem; font-weight: 800;
}
.v4d5-h2 {
  font-size: 1.9rem; color: var(--v4d5-mint); margin: 1.6rem 0 1rem;
  font-weight: 700; border-left: 4px solid var(--v4d5-accent); padding-left: .8rem;
}
.v4d5-h3 { font-size: 1.6rem; color: var(--v4d5-mint-soft); margin: 1.2rem 0 .6rem; font-weight: 600; }
.v4d5-p { margin-bottom: 1rem; color: var(--v4d5-text); }
.v4d5-muted { color: var(--v4d5-text-muted); }

/* ---------- Header ---------- */
.v4d5-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--v4d5-header-h);
  background: linear-gradient(90deg, #1f1f1f, #333333, #1f1f1f);
  border-bottom: 2px solid var(--v4d5-primary);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 .9rem; z-index: 1000; box-shadow: var(--v4d5-shadow);
}
.v4d5-brand { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.v4d5-brand img { width: 28px; height: 28px; border-radius: 6px; }
.v4d5-brand-name { font-size: 1.5rem; font-weight: 800; color: var(--v4d5-mint-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v4d5-brand-name b { color: var(--v4d5-accent); }

.v4d5-header-actions { display: flex; align-items: center; gap: .4rem; }
.v4d5-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font-size: 1.3rem; font-weight: 700; border: none; border-radius: var(--v4d5-radius);
  padding: .55rem .9rem; cursor: pointer; min-height: 36px; min-width: 44px;
  transition: transform .15s ease, filter .15s ease; text-decoration: none;
}
.v4d5-btn:active { transform: scale(.95); }
.v4d5-btn-register { background: var(--v4d5-accent); color: #fff; }
.v4d5-btn-login { background: var(--v4d5-primary); color: #fff; }
.v4d5-btn-play { background: var(--v4d5-gold); color: #1a1a1a; }
.v4d5-btn-ghost { background: transparent; border: 1px solid var(--v4d5-mint); color: var(--v4d5-mint); }

.v4d5-menu-toggle {
  background: transparent; border: 0; color: var(--v4d5-mint-soft);
  font-size: 2rem; cursor: pointer; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center; border-radius: 8px;
}
.v4d5-menu-toggle.v4d5-active { color: var(--v4d5-accent); }

/* ---------- Mobile expandable menu ---------- */
.v4d5-mobile-menu {
  position: fixed; top: var(--v4d5-header-h); left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; background: #262626;
  border-bottom: 2px solid var(--v4d5-primary);
  max-height: 0; overflow: hidden; transition: max-height .28s ease;
  z-index: 9999; padding: 0 1.2rem;
}
.v4d5-mobile-menu.v4d5-menu-open { max-height: 520px; padding: 1rem 1.2rem; }
.v4d5-mobile-menu a {
  display: block; padding: 1rem .6rem; color: var(--v4d5-light);
  border-bottom: 1px solid #3a3a3a; font-size: 1.45rem;
}
.v4d5-mobile-menu a:last-child { border-bottom: none; }
.v4d5-mobile-menu a:hover { color: var(--v4d5-mint); padding-left: 1rem; }
.v4d5-mobile-menu .v4d5-menu-cta {
  display: flex; gap: .6rem; margin-top: .8rem;
}
.v4d5-mobile-menu .v4d5-menu-cta .v4d5-btn { flex: 1; }

/* ---------- Carousel ---------- */
.v4d5-carousel {
  position: relative; width: 100%; height: 180px; overflow: hidden;
  border-radius: 0 0 14px 14px; background: #222;
}
.v4d5-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease;
  cursor: pointer;
}
.v4d5-slide img { width: 100%; height: 100%; object-fit: cover; }
.v4d5-slide.v4d5-slide-active { opacity: 1; }
.v4d5-slide-cap {
  position: absolute; left: 1rem; bottom: 1.4rem; right: 1rem;
  background: rgba(0,0,0,.45); padding: .5rem .8rem; border-radius: 8px;
  font-size: 1.3rem; color: #fff; font-weight: 700;
}
.v4d5-dots { position: absolute; bottom: .6rem; left: 0; right: 0; text-align: center; }
.v4d5-dot {
  display: inline-block; width: 8px; height: 8px; margin: 0 3px;
  border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer;
}
.v4d5-dot.v4d5-dot-active { background: var(--v4d5-accent); }

/* ---------- Game grid ---------- */
.v4d5-cat-title {
  display: flex; align-items: center; gap: .6rem; margin: 1.6rem 0 .8rem;
  font-size: 1.7rem; color: var(--v4d5-gold); font-weight: 800;
}
.v4d5-cat-title i { color: var(--v4d5-accent); }
.v4d5-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem;
}
.v4d5-game {
  display: block; background: #2c2c2c; border-radius: 10px; overflow: hidden;
  border: 1px solid #3c3c3c; transition: transform .15s ease, border-color .15s ease;
  cursor: pointer; text-align: center;
}
.v4d5-game:active { transform: scale(.95); border-color: var(--v4d5-accent); }
.v4d5-game img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.v4d5-game-name {
  font-size: 1.05rem; color: var(--v4d5-light); padding: .35rem .2rem .5rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2;
}

/* ---------- Cards ---------- */
.v4d5-card {
  background: #2c2c2c; border-radius: 12px; padding: 1.2rem;
  border: 1px solid #3c3c3c; margin-bottom: 1rem;
}
.v4d5-card-accent { border-left: 4px solid var(--v4d5-accent); }
.v4d5-card-mint { border-left: 4px solid var(--v4d5-mint); }
.v4d5-feature-row { display: flex; align-items: flex-start; gap: .8rem; margin-bottom: .9rem; }
.v4d5-feature-row i { color: var(--v4d5-mint); font-size: 1.8rem; margin-top: .2rem; }
.v4d5-feature-row h4 { font-size: 1.4rem; color: var(--v4d5-white); margin-bottom: .2rem; }
.v4d5-feature-row p { font-size: 1.3rem; color: var(--v4d5-text-muted); }

/* ---------- RTP / stats compact ---------- */
.v4d5-rtp-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: .6rem; }
.v4d5-rtp-item {
  background: #262626; border-radius: 10px; padding: .8rem; text-align: center;
  border: 1px solid #3c3c3c;
}
.v4d5-rtp-item .v4d5-rtp-val { font-size: 1.8rem; font-weight: 800; color: var(--v4d5-gold); }
.v4d5-rtp-item .v4d5-rtp-label { font-size: 1.15rem; color: var(--v4d5-text-muted); }

/* ---------- Testimonials ---------- */
.v4d5-testi { background:#262626; border-radius:10px; padding:1rem; margin-bottom:.8rem; border:1px solid #3c3c3c; }
.v4d5-testi .v4d5-testi-name { color: var(--v4d5-mint); font-weight:700; font-size:1.3rem; }
.v4d5-testi .v4d5-testi-stars { color: var(--v4d5-gold); font-size:1.2rem; }
.v4d5-testi p { font-size:1.3rem; color: var(--v4d5-text-muted); margin-top:.3rem; }

/* ---------- Payment / winners ---------- */
.v4d5-chips { display:flex; flex-wrap:wrap; gap:.5rem; }
.v4d5-chip {
  background:#262626; border:1px solid #3c3c3c; border-radius:30px;
  padding:.5rem 1rem; font-size:1.25rem; color: var(--v4d5-light);
  display:inline-flex; align-items:center; gap:.4rem;
}
.v4d5-chip i { color: var(--v4d5-mint); }
.v4d5-winner {
  display:flex; align-items:center; justify-content:space-between;
  background:#262626; padding:.7rem 1rem; border-radius:8px; margin-bottom:.5rem;
  border:1px solid #3c3c3c; font-size:1.3rem;
}
.v4d5-winner b { color: var(--v4d5-gold); }

/* ---------- CTA banner ---------- */
.v4d5-cta {
  background: linear-gradient(135deg, var(--v4d5-primary), var(--v4d5-accent));
  border-radius: 14px; padding: 1.4rem; text-align: center; margin: 1.4rem 0; color:#fff;
}
.v4d5-cta h3 { color:#fff; font-size:1.8rem; margin-bottom:.4rem; }
.v4d5-cta p { color: rgba(255,255,255,.92); font-size:1.3rem; margin-bottom:.8rem; }
.v4d5-cta .v4d5-btn { font-size:1.5rem; padding:.8rem 1.4rem; }

/* ---------- Footer ---------- */
.v4d5-footer {
  background: #1f1f1f; border-top: 2px solid var(--v4d5-primary);
  padding: 1.6rem 1.2rem 2rem; color: var(--v4d5-text-muted); font-size: 1.25rem;
}
.v4d5-footer-brand { color: var(--v4d5-light); margin-bottom: 1rem; font-size: 1.3rem; }
.v4d5-footer-links { display: flex; flex-wrap: wrap; gap: .4rem .8rem; margin: 1rem 0; }
.v4d5-footer-links a { color: var(--v4d5-text-muted); font-size: 1.2rem; }
.v4d5-footer-links a:hover { color: var(--v4d5-mint); }
.v4d5-footer-promo { display:flex; flex-wrap:wrap; gap:.5rem; margin:.8rem 0; }
.v4d5-footer-promo .v4d5-btn { font-size:1.2rem; padding:.5rem .8rem; }
.v4d5-footer-copy { margin-top: 1rem; border-top: 1px solid #333; padding-top: 1rem; font-size: 1.15rem; }

/* ---------- Bottom navigation ---------- */
.v4d5-bottomnav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--v4d5-bottomnav-h);
  background: linear-gradient(180deg, #2a2a2a, #1c1c1c);
  border-top: 2px solid var(--v4d5-primary);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; box-shadow: 0 -4px 14px rgba(0,0,0,.4);
}
.v4d5-bottomnav-btn {
  flex: 1; min-width: 60px; min-height: 60px; background: transparent; border: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--v4d5-text-muted); cursor: pointer; text-decoration: none;
  transition: color .15s ease, transform .15s ease; padding: 0;
}
.v4d5-bottomnav-btn:active { transform: scale(.92); }
.v4d5-bottomnav-btn .material-icons,
.v4d5-bottomnav-btn ion-icon,
.v4d5-bottomnav-btn i { font-size: 24px; }
.v4d5-bottomnav-btn span { font-size: 1.05rem; }
.v4d5-bottomnav-btn:hover { color: var(--v4d5-mint); }
.v4d5-bottomnav-active { color: var(--v4d5-accent) !important; }
.v4d5-bottomnav-active span { color: var(--v4d5-accent); font-weight: 700; }

/* ---------- Desktop: hide bottom nav, widen layout ---------- */
@media (min-width: 769px) {
  body { max-width: 768px; }
  .v4d5-bottomnav { display: none; }
  .v4d5-wrapper { padding-bottom: 2rem; }
}

/* Mobile bottom padding clearance for fixed bottom nav */
@media (max-width: 768px) {
  .v4d5-wrapper { padding-bottom: calc(var(--v4d5-bottomnav-h) + 1.5rem); }
  .v4d5-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Utility ---------- */
.v4d5-center { text-align: center; }
.v4d5-flex { display: flex; gap: .6rem; align-items: center; }
.v4d5-flex-wrap { flex-wrap: wrap; }
.v4d5-mt1 { margin-top: 1rem; } .v4d5-mt2 { margin-top: 2rem; }
.v4d5-mb1 { margin-bottom: 1rem; } .v4d5-mb2 { margin-bottom: 2rem; }
.v4d5-list { padding-left: 1.4rem; margin-bottom: 1rem; }
.v4d5-list li { margin-bottom: .5rem; color: var(--v4d5-text); }
.v4d5-promo-text { color: var(--v4d5-accent); font-weight: 700; }
.v4d5-divider { height:1px; background:#3c3c3c; margin:1.4rem 0; border:0; }
