/* ============================================================
   GCash Games - style.css
   All custom classes use the gff0- prefix.
   Color palette: #FF6347 (accent) | #0D1117 (dark bg) | #F8F9FA (light text)
   Mobile-first, max-width 430px primary target.
   ============================================================ */

:root {
  --gff0-primary: #FF6347;
  --gff0-primary-dark: #e04a30;
  --gff0-primary-light: #ff8a73;
  --gff0-bg: #0D1117;
  --gff0-bg-soft: #161b22;
  --gff0-bg-card: #1c2330;
  --gff0-text: #F8F9FA;
  --gff0-text-muted: #a9b2c0;
  --gff0-border: #2a313d;
  --gff0-gold: #ffc94d;
  --gff0-success: #2ecc71;
  --gff0-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  --gff0-radius: 14px;
  --gff0-radius-sm: 8px;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background-color: var(--gff0-bg);
  color: var(--gff0-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  overflow-x: hidden;
  max-width: 100%;
}

a {
  color: var(--gff0-primary-light);
  text-decoration: none;
}

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

.gff0-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.4rem;
}

.gff0-wrapper {
  width: 100%;
  position: relative;
}

.gff0-text-center { text-align: center; }
.gff0-hidden { display: none !important; }

/* ============================================================
   Header / Top navigation
   ============================================================ */
.gff0-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #0b0f15 0%, #1a1f29 100%);
  border-bottom: 1px solid var(--gff0-border);
  box-shadow: var(--gff0-shadow);
}

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

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

.gff0-logo img,
.gff0-logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  object-fit: cover;
  background: var(--gff0-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
}

.gff0-logo-text {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--gff0-text);
  white-space: nowrap;
}
.gff0-logo-text span { color: var(--gff0-primary); }

.gff0-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gff0-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: var(--gff0-radius-sm);
  padding: 0.7rem 1.2rem;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  min-height: 36px;
}

.gff0-btn-primary {
  background: linear-gradient(135deg, var(--gff0-primary), var(--gff0-primary-dark));
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 99, 71, 0.4);
}
.gff0-btn-primary:active { transform: scale(0.96); }

.gff0-btn-outline {
  background: transparent;
  color: var(--gff0-text);
  border: 1px solid var(--gff0-border);
}
.gff0-btn-outline:active { background: var(--gff0-bg-soft); }

.gff0-btn-gold {
  background: linear-gradient(135deg, var(--gff0-gold), #f0a32e);
  color: #2a1a00;
  box-shadow: 0 4px 12px rgba(255, 201, 77, 0.35);
}

.gff0-btn-block {
  width: 100%;
  padding: 1.1rem;
  font-size: 1.55rem;
}

.gff0-menu-toggle {
  background: transparent;
  border: 1px solid var(--gff0-border);
  color: var(--gff0-text);
  width: 36px;
  height: 36px;
  border-radius: var(--gff0-radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

/* Mobile expandable menu */
.gff0-mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--gff0-bg);
  border-top: 1px solid var(--gff0-border);
}
.gff0-mobile-menu.gff0-menu-open {
  max-height: 540px;
}
.gff0-mobile-menu-inner {
  padding: 1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.gff0-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 0.4rem;
  color: var(--gff0-text);
  font-size: 1.4rem;
  border-bottom: 1px dashed var(--gff0-border);
}
.gff0-mobile-menu a:last-child { border-bottom: none; }
.gff0-mobile-menu a i { color: var(--gff0-primary); width: 22px; text-align: center; }

/* ============================================================
   Main layout
   ============================================================ */
main {
  padding-top: 68px;
  padding-bottom: 2rem;
}
@media (max-width: 768px) {
  main { padding-bottom: 90px; }
}

.gff0-section {
  padding: 2rem 0;
}
.gff0-section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: var(--gff0-text);
}
.gff0-section-title span { color: var(--gff0-primary); }
.gff0-section-sub {
  font-size: 1.3rem;
  color: var(--gff0-text-muted);
  margin-bottom: 1.2rem;
}

.gff0-h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.8rem;
}
.gff0-h1 span { color: var(--gff0-primary); }

.gff0-lead {
  font-size: 1.45rem;
  color: var(--gff0-text-muted);
  margin-bottom: 1.2rem;
}

.gff0-p {
  font-size: 1.4rem;
  color: var(--gff0-text-muted);
  margin-bottom: 1rem;
}

/* ============================================================
   Hero / Carousel
   ============================================================ */
.gff0-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--gff0-radius);
  margin: 1rem 0;
}
.gff0-hero-track {
  position: relative;
  width: 100%;
  height: 200px;
}
@media (min-width: 380px) {
  .gff0-hero-track { height: 230px; }
}
.gff0-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.gff0-hero-slide.gff0-active { opacity: 1; }
.gff0-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gff0-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 17, 23, 0.85) 0%, rgba(13, 17, 23, 0.2) 70%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.4rem;
}
.gff0-hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gff0-gold);
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.gff0-hero-text {
  font-size: 1.3rem;
  color: var(--gff0-text);
  margin-bottom: 0.8rem;
  max-width: 80%;
}

.gff0-hero-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.gff0-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}
.gff0-hero-dot.gff0-active { background: var(--gff0-primary); width: 20px; border-radius: 4px; }

/* ============================================================
   Game grid
   ============================================================ */
.gff0-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.gff0-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (min-width: 380px) {
  .gff0-grid { grid-template-columns: repeat(4, 1fr); }
}

.gff0-card {
  background: var(--gff0-bg-card);
  border: 1px solid var(--gff0-border);
  border-radius: var(--gff0-radius-sm);
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease;
}
.gff0-card:active {
  transform: scale(0.95);
  border-color: var(--gff0-primary);
}
.gff0-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  background: #000;
}
.gff0-card-name {
  font-size: 1.1rem;
  color: var(--gff0-text);
  margin-top: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gff0-cat-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.6rem 0 0.8rem;
}
.gff0-cat-head h3 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--gff0-text);
}
.gff0-cat-head h3 span { color: var(--gff0-primary); }
.gff0-cat-head .gff0-cat-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gff0-primary), var(--gff0-primary-dark));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
}

/* Filter tabs */
.gff0-filter-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.6rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}
.gff0-filter-tab {
  flex: 0 0 auto;
  background: var(--gff0-bg-soft);
  border: 1px solid var(--gff0-border);
  color: var(--gff0-text-muted);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 1.25rem;
  cursor: pointer;
  white-space: nowrap;
}
.gff0-filter-tab.gff0-active {
  background: var(--gff0-primary);
  color: #fff;
  border-color: var(--gff0-primary);
}

/* ============================================================
   Info / feature cards
   ============================================================ */
.gff0-card-block {
  background: var(--gff0-bg-card);
  border: 1px solid var(--gff0-border);
  border-radius: var(--gff0-radius);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
}
.gff0-card-block h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: var(--gff0-text);
}
.gff0-card-block h2 span { color: var(--gff0-primary); }
.gff0-card-block h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1rem 0 0.4rem;
  color: var(--gff0-gold);
}
.gff0-card-block ul {
  list-style: none;
  padding: 0;
}
.gff0-card-block li {
  padding: 0.5rem 0 0.5rem 1.8rem;
  position: relative;
  font-size: 1.35rem;
  color: var(--gff0-text-muted);
}
.gff0-card-block li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.5rem;
  color: var(--gff0-primary);
  font-size: 1.1rem;
}

/* Stats / RTP grid */
.gff0-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.gff0-stat {
  background: var(--gff0-bg-soft);
  border-radius: var(--gff0-radius-sm);
  padding: 0.9rem;
  text-align: center;
}
.gff0-stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--gff0-gold);
}
.gff0-stat-label {
  font-size: 1.15rem;
  color: var(--gff0-text-muted);
}

/* Testimonial */
.gff0-testimonial {
  background: var(--gff0-bg-soft);
  border-left: 3px solid var(--gff0-primary);
  border-radius: var(--gff0-radius-sm);
  padding: 1rem;
  margin-bottom: 0.8rem;
}
.gff0-testimonial-text {
  font-size: 1.3rem;
  color: var(--gff0-text);
  font-style: italic;
  margin-bottom: 0.5rem;
}
.gff0-testimonial-author {
  font-size: 1.15rem;
  color: var(--gff0-gold);
  font-weight: 700;
}

/* Payment chips */
.gff0-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.gff0-pay-chip {
  background: var(--gff0-bg-soft);
  border: 1px solid var(--gff0-border);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  color: var(--gff0-text);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Winners ticker */
.gff0-winner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--gff0-border);
  font-size: 1.25rem;
}
.gff0-winner:last-child { border-bottom: none; }
.gff0-winner-name { color: var(--gff0-text); }
.gff0-winner-amount { color: var(--gff0-success); font-weight: 800; }

/* FAQ */
.gff0-faq-item {
  background: var(--gff0-bg-card);
  border: 1px solid var(--gff0-border);
  border-radius: var(--gff0-radius-sm);
  padding: 1rem;
  margin-bottom: 0.7rem;
}
.gff0-faq-q {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gff0-gold);
  margin-bottom: 0.4rem;
}
.gff0-faq-a {
  font-size: 1.3rem;
  color: var(--gff0-text-muted);
}

/* CTA banner */
.gff0-cta {
  background: linear-gradient(135deg, var(--gff0-primary), #c4341d);
  border-radius: var(--gff0-radius);
  padding: 1.6rem;
  text-align: center;
  color: #fff;
  margin: 1.4rem 0;
}
.gff0-cta h3 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.gff0-cta p {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #fff;
  opacity: 0.95;
}

/* ============================================================
   Footer
   ============================================================ */
.gff0-footer {
  background: #080b10;
  border-top: 1px solid var(--gff0-border);
  padding: 2rem 0 1rem;
  margin-top: 1.5rem;
}
.gff0-footer h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--gff0-gold);
}
.gff0-footer p {
  font-size: 1.25rem;
  color: var(--gff0-text-muted);
  margin-bottom: 1rem;
}
.gff0-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin-bottom: 1rem;
}
.gff0-footer-links a {
  font-size: 1.2rem;
  color: var(--gff0-text-muted);
}
.gff0-footer-links a:hover { color: var(--gff0-primary); }
.gff0-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.6rem 0 1rem;
}
.gff0-footer-copyright {
  text-align: center;
  font-size: 1.15rem;
  color: var(--gff0-text-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--gff0-border);
}

/* ============================================================
   Mobile bottom navigation (fixed, 5 buttons)
   ============================================================ */
.gff0-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, #141923 0%, #0a0d12 100%);
  border-top: 1px solid var(--gff0-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.4);
}
.gff0-bottom-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: var(--gff0-text-muted);
  font-size: 1rem;
  cursor: pointer;
  min-width: 60px;
  min-height: 60px;
  transition: color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  padding: 0;
}
.gff0-bottom-nav-btn i,
.gff0-bottom-nav-btn span.material-icons-outlined,
.gff0-bottom-nav-btn ion-icon {
  font-size: 22px;
}
.gff0-bottom-nav-btn ion-icon { font-size: 24px; }
.gff0-bottom-nav-btn:active { transform: scale(0.92); }
.gff0-bottom-nav-btn.gff0-active { color: var(--gff0-primary); }
.gff0-bottom-nav-btn.gff0-promo {
  color: var(--gff0-gold);
}
.gff0-bottom-nav-btn.gff0-promo:active {
  background: rgba(255, 201, 77, 0.12);
}
.gff0-bottom-nav-badge {
  position: absolute;
  top: 6px;
  right: 50%;
  transform: translateX(14px);
  background: var(--gff0-primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 0 5px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
}
.gff0-bottom-nav-btn { position: relative; }

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .gff0-bottom-nav { display: none; }
}

/* Desktop helpers */
.gff0-desktop-only { display: none; }
@media (min-width: 769px) {
  .gff0-desktop-only { display: block; }
}

/* Misc utility */
.gff0-tag {
  display: inline-block;
  background: rgba(255, 99, 71, 0.15);
  color: var(--gff0-primary-light);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 12px;
  margin-bottom: 0.6rem;
}
.gff0-divider {
  height: 1px;
  background: var(--gff0-border);
  margin: 1.4rem 0;
}
.gff0-promo-link {
  color: var(--gff0-primary);
  font-weight: 700;
}
.gff0-promo-link:hover { text-decoration: underline; }

/* Desktop layout override for the wrapper */
@media (min-width: 769px) {
  body { max-width: none; }
  .gff0-container { max-width: 960px; }
}
