/*!
 * ph222 online - design-6259.css
 * Mobile-first Philippine casino gaming stylesheet
 * All custom classes use the v951- prefix for namespace isolation.
 * Palette: #FFEFD5 (light/accent text) | #0A0A0A (dark background)
 */

:root {
  --v951-bg: #0A0A0A;
  --v951-bg-alt: #141414;
  --v951-bg-elev: #1c1c1c;
  --v951-primary: #FFEFD5;
  --v951-primary-soft: rgba(255, 239, 213, 0.12);
  --v951-accent: #F2B639;
  --v951-accent-2: #E2452A;
  --v951-accent-3: #36C0A0;
  --v951-text: #FFEFD5;
  --v951-text-muted: rgba(255, 239, 213, 0.72);
  --v951-text-dim: rgba(255, 239, 213, 0.52);
  --v951-border: rgba(255, 239, 213, 0.16);
  --v951-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --v951-radius: 14px;
  --v951-radius-sm: 10px;
  --v951-header-h: 60px;
  --v951-bottom-h: 62px;
  --v951-font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  font-family: var(--v951-font);
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--v951-text);
  background: var(--v951-bg);
  overflow-x: hidden;
  padding-top: var(--v951-header-h);
}

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

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

/* ===== Header ===== */
.v951-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--v951-header-h);
  background: linear-gradient(180deg, #0A0A0A 0%, #121212 100%);
  border-bottom: 1px solid var(--v951-border);
  display: flex; align-items: center;
}
.v951-header-scrolled { box-shadow: 0 4px 18px rgba(0,0,0,0.6); }
.v951-header-inner {
  width: 100%; max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem; height: 100%;
}
.v951-brand { display: flex; align-items: center; gap: 0.8rem; }
.v951-brand img { width: 30px; height: 30px; border-radius: 8px; }
.v951-brand-text { font-size: 1.7rem; font-weight: 800; color: var(--v951-primary); letter-spacing: 0.3px; }
.v951-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.v951-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: none; cursor: pointer; font-weight: 700; font-family: var(--v951-font);
  border-radius: 999px; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  font-size: 1.25rem; padding: 0.7rem 1.3rem; min-height: 36px;
}
.v951-btn:active { transform: scale(0.95); }
.v951-btn-login { background: transparent; color: var(--v951-primary); border: 1px solid var(--v951-primary); }
.v951-btn-register { background: linear-gradient(135deg, #F2B639, #E2452A); color: #0A0A0A; box-shadow: 0 4px 12px rgba(242,182,57,0.35); }
.v951-menu-toggle {
  background: none; border: none; color: var(--v951-primary);
  font-size: 2rem; cursor: pointer; width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 8px;
}
.v951-toggle-active { background: var(--v951-primary-soft); }

/* ===== Mobile Menu ===== */
.v951-mobile-menu {
  position: fixed; top: var(--v951-header-h); left: 0; right: 0; z-index: 9999;
  background: #121212; border-bottom: 1px solid var(--v951-border);
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  box-shadow: var(--v951-shadow);
}
.v951-menu-active { max-height: 460px; }
.v951-mobile-menu ul { list-style: none; padding: 0.8rem 1.4rem 1.4rem; }
.v951-mobile-menu li { border-bottom: 1px solid rgba(255,239,213,0.08); }
.v951-mobile-menu li:last-child { border-bottom: none; }
.v951-mobile-menu a {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 0.4rem; color: var(--v951-text); font-size: 1.45rem; font-weight: 600;
}
.v951-mobile-menu a i { width: 22px; text-align: center; color: var(--v951-accent); }

/* ===== Carousel ===== */
.v951-carousel { position: relative; width: 100%; border-radius: var(--v951-radius); overflow: hidden; margin: 1.2rem 0; aspect-ratio: 16/7; }
.v951-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; cursor: pointer; }
.v951-slide img { width: 100%; height: 100%; object-fit: cover; }
.v951-slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,0.75) 0%, rgba(10,10,10,0.15) 70%); display: flex; flex-direction: column; justify-content: center; padding: 0 1.6rem; }
.v951-slide-title { font-size: 1.8rem; font-weight: 800; color: var(--v951-primary); margin-bottom: 0.4rem; text-shadow: 0 2px 6px rgba(0,0,0,0.6); }
.v951-slide-sub { font-size: 1.3rem; color: var(--v951-text-muted); }
.v951-slide-active { opacity: 1; }
.v951-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.v951-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,239,213,0.4); border: none; cursor: pointer; }
.v951-dot-active { background: var(--v951-accent); width: 22px; border-radius: 4px; }

/* ===== Section & Headings ===== */
.v951-section { padding: 2rem 0 0.6rem; }
.v951-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.v951-section-title { font-size: 1.7rem; font-weight: 800; color: var(--v951-primary); display: flex; align-items: center; gap: 0.6rem; }
.v951-section-title i { color: var(--v951-accent); }
.v951-more { font-size: 1.25rem; color: var(--v951-accent); font-weight: 600; }

/* ===== Game Grid ===== */
.v951-game-section { margin-bottom: 1.6rem; }
.v951-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem;
}
.v951-game-card {
  background: var(--v951-bg-elev); border-radius: var(--v951-radius-sm);
  overflow: hidden; cursor: pointer; position: relative;
  border: 1px solid var(--v951-border); transition: transform .2s ease, border-color .2s ease;
}
.v951-game-card:active { transform: scale(0.96); border-color: var(--v951-accent); }
.v951-game-thumb { width: 100%; aspect-ratio: 1/1; background: #000; }
.v951-game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.v951-game-name { font-size: 1.15rem; font-weight: 600; color: var(--v951-text); padding: 0.5rem 0.6rem 0.7rem; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v951-game-tag { position: absolute; top: 6px; left: 6px; background: var(--v951-accent-2); color: #fff; font-size: 0.95rem; padding: 2px 7px; border-radius: 6px; font-weight: 700; }

/* ===== Filter Tabs ===== */
.v951-filter-bar { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.4rem 0 1rem; scrollbar-width: none; }
.v951-filter-bar::-webkit-scrollbar { display: none; }
.v951-filter-tab {
  flex-shrink: 0; padding: 0.55rem 1.2rem; border-radius: 999px;
  background: var(--v951-bg-elev); color: var(--v951-text-muted);
  font-size: 1.25rem; font-weight: 600; border: 1px solid var(--v951-border); cursor: pointer;
}
.v951-filter-active { background: var(--v951-accent); color: #0A0A0A; border-color: var(--v951-accent); }

/* ===== Content Cards ===== */
.v951-card {
  background: var(--v951-bg-elev); border-radius: var(--v951-radius);
  padding: 1.6rem; border: 1px solid var(--v951-border); margin-bottom: 1.2rem;
}
.v951-card-title { font-size: 1.5rem; font-weight: 800; color: var(--v951-primary); margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.5rem; }
.v951-card-title i { color: var(--v951-accent); }
.v951-card p { color: var(--v951-text-muted); font-size: 1.32rem; line-height: 1.55; margin-bottom: 0.7rem; }
.v951-card p:last-child { margin-bottom: 0; }
.v951-card a { color: var(--v951-accent); font-weight: 700; }
.v951-promo-link { color: var(--v951-accent); font-weight: 800; cursor: pointer; }

/* ===== RTP / Stat Grid ===== */
.v951-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; margin-top: 1rem; }
.v951-stat-item { background: var(--v951-bg-alt); border-radius: var(--v951-radius-sm); padding: 1rem 1.1rem; border: 1px solid var(--v951-border); }
.v951-stat-num { font-size: 2rem; font-weight: 800; color: var(--v951-accent); }
.v951-stat-label { font-size: 1.15rem; color: var(--v951-text-dim); margin-top: 2px; }

/* ===== Testimonial ===== */
.v951-testimonial { background: var(--v951-bg-alt); border-left: 3px solid var(--v951-accent); border-radius: var(--v951-radius-sm); padding: 1.1rem 1.3rem; margin-bottom: 0.9rem; }
.v951-testimonial-text { font-size: 1.3rem; color: var(--v951-text-muted); font-style: italic; }
.v951-testimonial-author { font-size: 1.15rem; color: var(--v951-accent); font-weight: 700; margin-top: 0.5rem; }

/* ===== Payment / Winners ===== */
.v951-chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; }
.v951-chip { background: var(--v951-bg-alt); border: 1px solid var(--v951-border); border-radius: 8px; padding: 0.5rem 1rem; font-size: 1.15rem; color: var(--v951-text-muted); display: inline-flex; align-items: center; gap: 0.4rem; }
.v951-chip i { color: var(--v951-accent); }
.v951-winner-row { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 0; border-bottom: 1px solid rgba(255,239,213,0.08); }
.v951-winner-row:last-child { border-bottom: none; }
.v951-winner-name { font-size: 1.3rem; font-weight: 600; color: var(--v951-text); }
.v951-winner-amount { font-size: 1.35rem; font-weight: 800; color: var(--v951-accent); }

/* ===== CTA Banner ===== */
.v951-cta {
  background: linear-gradient(135deg, #1a1a1a, #2a1a08);
  border: 1px solid var(--v951-accent); border-radius: var(--v951-radius);
  padding: 1.8rem 1.4rem; text-align: center; margin: 1.6rem 0;
}
.v951-cta-title { font-size: 1.9rem; font-weight: 800; color: var(--v951-accent); margin-bottom: 0.5rem; }
.v951-cta-sub { font-size: 1.3rem; color: var(--v951-text-muted); margin-bottom: 1.2rem; }
.v951-cta .v951-btn { font-size: 1.45rem; padding: 1rem 2.4rem; }

/* ===== Footer ===== */
.v951-footer { background: #060606; border-top: 1px solid var(--v951-border); padding: 2.4rem 0 1.4rem; margin-top: 2rem; }
.v951-footer-brand { font-size: 1.6rem; font-weight: 800; color: var(--v951-primary); margin-bottom: 0.6rem; }
.v951-footer-desc { font-size: 1.25rem; color: var(--v951-text-dim); line-height: 1.55; margin-bottom: 1.2rem; }
.v951-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 1.2rem; }
.v951-footer-links a { font-size: 1.2rem; color: var(--v951-text-muted); }
.v951-footer-links a:hover { color: var(--v951-accent); }
.v951-footer-copy { font-size: 1.15rem; color: var(--v951-text-dim); border-top: 1px solid var(--v951-border); padding-top: 1rem; text-align: center; }

/* ===== Bottom Nav ===== */
.v951-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--v951-bottom-h);
  background: linear-gradient(180deg, #141414, #0A0A0A);
  border-top: 1px solid var(--v951-border);
  display: flex; justify-content: space-around; align-items: center;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.5);
}
.v951-bottom-nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; gap: 2px;
  min-width: 60px; min-height: 60px; padding: 6px 2px;
  color: var(--v951-text-dim); transition: color .2s ease, transform .2s ease;
}
.v951-bottom-nav-btn i { font-size: 2.2rem; }
.v951-bottom-nav-btn .material-icons-outlined,
.v951-bottom-nav-btn .material-icons { font-size: 2.2rem; }
.v951-bottom-nav-btn span { font-size: 1rem; font-weight: 600; }
.v951-bottom-nav-btn:active { transform: scale(0.9); }
.v951-bottom-nav-btn:hover { color: var(--v951-primary); }
.v951-bottom-active { color: var(--v951-accent); }
.v951-bottom-active::before {
  content: ''; position: absolute; top: 0; width: 30px; height: 3px;
  background: var(--v951-accent); border-radius: 0 0 4px 4px;
}

/* ===== Reveal Animation ===== */
.v951-reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.v951-revealed { opacity: 1; transform: translateY(0); }

/* ===== Mobile bottom padding ===== */
@media (max-width: 768px) {
  .v951-main { padding-bottom: calc(var(--v951-bottom-h) + 18px); }
}

/* ===== Desktop: hide bottom nav, widen container ===== */
@media (min-width: 769px) {
  .v951-bottom-nav { display: none; }
  .v951-container, .v951-header-inner, .v951-wrapper { max-width: 760px; }
  .v951-game-grid { grid-template-columns: repeat(5, 1fr); }
  .v951-stat-grid { grid-template-columns: repeat(4, 1fr); }
}
