/**
 * PH222 PH - Core Stylesheet
 * All classes use v9f1- prefix for namespace isolation
 * Mobile-first design, max-width 430px
 * Root font: 62.5% (1rem = 10px)
 */

/* CSS Variables */
:root {
  --v9f1-primary: #FF9500;
  --v9f1-bg: #212F3D;
  --v9f1-bg-dark: #1a252f;
  --v9f1-bg-card: #2a3d4e;
  --v9f1-text: #ffffff;
  --v9f1-text-muted: #a0b4c8;
  --v9f1-accent: #FF9500;
  --v9f1-accent-hover: #ffb040;
  --v9f1-border: #3a5068;
  --v9f1-success: #2ecc71;
  --v9f1-danger: #e74c3c;
  --v9f1-radius: 8px;
  --v9f1-radius-lg: 12px;
  --v9f1-shadow: 0 4px 12px rgba(0,0,0,0.3);
  --v9f1-shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
  --v9f1-transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--v9f1-bg);
  color: var(--v9f1-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--v9f1-accent); text-decoration: none; transition: var(--v9f1-transition); }
a:hover { color: var(--v9f1-accent-hover); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Container */
.v9f1-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.v9f1-wrapper { padding: 1.2rem; }

/* Header */
.v9f1-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 56px;
  background: var(--v9f1-bg-dark);
  border-bottom: 1px solid var(--v9f1-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem; z-index: 1000;
}
.v9f1-header-left { display: flex; align-items: center; gap: 0.8rem; }
.v9f1-logo { width: 28px; height: 28px; border-radius: 6px; }
.v9f1-site-name { font-size: 1.6rem; font-weight: 700; color: var(--v9f1-primary); white-space: nowrap; }
.v9f1-header-right { display: flex; align-items: center; gap: 0.6rem; }
.v9f1-header-btn {
  padding: 0.5rem 1.2rem; border-radius: var(--v9f1-radius);
  font-size: 1.2rem; font-weight: 600; cursor: pointer;
  border: none; transition: var(--v9f1-transition);
  min-height: 36px; display: flex; align-items: center; justify-content: center;
}
.v9f1-btn-register { background: var(--v9f1-primary); color: var(--v9f1-bg-dark); }
.v9f1-btn-register:hover { background: var(--v9f1-accent-hover); transform: scale(1.05); }
.v9f1-btn-login { background: transparent; color: var(--v9f1-primary); border: 1.5px solid var(--v9f1-primary); }
.v9f1-btn-login:hover { background: rgba(255,149,0,0.1); }
.v9f1-menu-toggle {
  background: none; border: none; color: var(--v9f1-text); font-size: 2rem;
  cursor: pointer; padding: 0.4rem; display: flex; align-items: center;
}

/* Mobile Menu */
.v9f1-menu-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); z-index: 9998;
}
.v9f1-overlay-active { display: block; }
.v9f1-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: var(--v9f1-bg-dark); z-index: 9999;
  transition: right 0.3s ease; overflow-y: auto; padding: 2rem 0;
}
.v9f1-menu-active { right: 0; }
.v9f1-menu-close {
  background: none; border: none; color: var(--v9f1-text); font-size: 2.4rem;
  cursor: pointer; padding: 0.8rem 1.2rem; display: block; margin-left: auto;
}
.v9f1-menu-item {
  display: block; padding: 1.2rem 1.6rem; color: var(--v9f1-text-muted);
  font-size: 1.4rem; border-bottom: 1px solid var(--v9f1-border);
  transition: var(--v9f1-transition);
}
.v9f1-menu-item:hover { color: var(--v9f1-primary); background: rgba(255,149,0,0.08); padding-left: 2rem; }

/* Main Content */
.v9f1-main { padding-top: 56px; min-height: 100vh; }

/* Carousel */
.v9f1-carousel {
  position: relative; width: 100%; overflow: hidden;
  border-radius: var(--v9f1-radius); margin-bottom: 1.6rem;
}
.v9f1-carousel-inner { position: relative; width: 100%; height: 180px; }
.v9f1-carousel-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.5s ease; cursor: pointer;
}
.v9f1-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.v9f1-slide-active { opacity: 1; }
.v9f1-carousel-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 5;
}
.v9f1-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4);
  border: none; cursor: pointer; transition: var(--v9f1-transition);
}
.v9f1-dot-active { background: var(--v9f1-primary); width: 20px; border-radius: 4px; }

/* Section Titles */
.v9f1-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--v9f1-primary);
  margin: 1.6rem 0 1rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--v9f1-primary); display: inline-block;
}
.v9f1-section-title i { margin-right: 0.5rem; }

/* Game Grid */
.v9f1-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem; margin-bottom: 1.6rem;
}
.v9f1-game-item {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; transition: var(--v9f1-transition);
  padding: 0.4rem; border-radius: var(--v9f1-radius);
}
.v9f1-game-item:hover { transform: translateY(-2px); background: var(--v9f1-bg-card); }
.v9f1-game-img {
  width: 100%; aspect-ratio: 1; border-radius: var(--v9f1-radius);
  object-fit: cover; margin-bottom: 0.4rem;
  border: 2px solid var(--v9f1-border); transition: var(--v9f1-transition);
}
.v9f1-game-item:hover .v9f1-game-img { border-color: var(--v9f1-primary); }
.v9f1-game-name {
  font-size: 1rem; color: var(--v9f1-text-muted); text-align: center;
  line-height: 1.2rem; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; max-width: 100%; display: block;
}

/* Content Modules */
.v9f1-card {
  background: var(--v9f1-bg-card); border-radius: var(--v9f1-radius-lg);
  padding: 1.6rem; margin-bottom: 1.2rem; border: 1px solid var(--v9f1-border);
}
.v9f1-card-title {
  font-size: 1.6rem; font-weight: 700; color: var(--v9f1-primary);
  margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem;
}
.v9f1-card-text { font-size: 1.3rem; color: var(--v9f1-text-muted); line-height: 1.8rem; margin-bottom: 0.8rem; }
.v9f1-card-text a { color: var(--v9f1-primary); font-weight: 600; }
.v9f1-card-text a:hover { text-decoration: underline; }

/* Promo Button */
.v9f1-promo-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 1rem 2.4rem; background: linear-gradient(135deg, var(--v9f1-primary), #ff6b00);
  color: var(--v9f1-bg-dark); font-size: 1.4rem; font-weight: 700;
  border: none; border-radius: var(--v9f1-radius-lg); cursor: pointer;
  transition: var(--v9f1-transition); text-transform: uppercase; letter-spacing: 0.5px;
  min-height: 44px; width: 100%;
}
.v9f1-promo-btn:hover { transform: scale(1.03); box-shadow: 0 4px 16px rgba(255,149,0,0.4); }
.v9f1-promo-btn-outline {
  background: transparent; border: 2px solid var(--v9f1-primary);
  color: var(--v9f1-primary);
}
.v9f1-promo-btn-outline:hover { background: rgba(255,149,0,0.1); }

/* Bottom Navigation */
.v9f1-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 60px;
  background: var(--v9f1-bg-dark);
  border-top: 1px solid var(--v9f1-border);
  display: flex; align-items: center; justify-content: space-around;
  z-index: 1000; padding: 0 0.4rem;
}
.v9f1-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 52px; background: none; border: none;
  color: var(--v9f1-text-muted); cursor: pointer; transition: var(--v9f1-transition);
  padding: 0.4rem; border-radius: var(--v9f1-radius); position: relative;
}
.v9f1-bottom-nav-btn i,
.v9f1-bottom-nav-btn .material-icons,
.v9f1-bottom-nav-btn ion-icon { font-size: 22px; margin-bottom: 2px; }
.v9f1-bottom-nav-btn span { font-size: 1rem; line-height: 1.2rem; }
.v9f1-bottom-nav-btn:hover,
.v9f1-nav-current { color: var(--v9f1-primary); }
.v9f1-nav-current::after {
  content: ''; position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 3px; background: var(--v9f1-primary); border-radius: 2px;
}

/* Footer */
.v9f1-footer {
  background: var(--v9f1-bg-dark); padding: 2rem 1.2rem 1rem;
  border-top: 1px solid var(--v9f1-border); margin-top: 2rem;
}
.v9f1-footer-brand { text-align: center; margin-bottom: 1.6rem; }
.v9f1-footer-brand-name { font-size: 1.8rem; font-weight: 700; color: var(--v9f1-primary); margin-bottom: 0.6rem; }
.v9f1-footer-desc { font-size: 1.2rem; color: var(--v9f1-text-muted); line-height: 1.6rem; }
.v9f1-footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.v9f1-footer-link {
  font-size: 1.2rem; color: var(--v9f1-text-muted); padding: 0.3rem 0.6rem;
  border-radius: 4px; transition: var(--v9f1-transition);
}
.v9f1-footer-link:hover { color: var(--v9f1-primary); background: rgba(255,149,0,0.1); }
.v9f1-footer-promo {
  display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.v9f1-footer-promo .v9f1-promo-btn { width: auto; padding: 0.6rem 1.6rem; font-size: 1.2rem; }
.v9f1-footer-copy {
  text-align: center; font-size: 1.1rem; color: var(--v9f1-text-muted);
  border-top: 1px solid var(--v9f1-border); padding-top: 1rem;
}

/* H1 Title */
.v9f1-h1 {
  font-size: 2rem; font-weight: 800; color: var(--v9f1-text);
  text-align: center; margin: 1.2rem 0; line-height: 2.4rem;
}
.v9f1-h1 span { color: var(--v9f1-primary); }

/* FAQ */
.v9f1-faq-item { margin-bottom: 1rem; }
.v9f1-faq-q {
  font-size: 1.4rem; font-weight: 600; color: var(--v9f1-primary);
  margin-bottom: 0.4rem; display: flex; align-items: flex-start; gap: 0.4rem;
}
.v9f1-faq-a { font-size: 1.3rem; color: var(--v9f1-text-muted); line-height: 1.7rem; padding-left: 1.4rem; }

/* Features Grid */
.v9f1-features-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-bottom: 1.2rem;
}
.v9f1-feature-card {
  background: var(--v9f1-bg-card); border-radius: var(--v9f1-radius);
  padding: 1.2rem; text-align: center; border: 1px solid var(--v9f1-border);
  transition: var(--v9f1-transition);
}
.v9f1-feature-card:hover { border-color: var(--v9f1-primary); transform: translateY(-2px); }
.v9f1-feature-icon { font-size: 2.4rem; color: var(--v9f1-primary); margin-bottom: 0.6rem; }
.v9f1-feature-title { font-size: 1.3rem; font-weight: 600; color: var(--v9f1-text); margin-bottom: 0.3rem; }
.v9f1-feature-desc { font-size: 1.1rem; color: var(--v9f1-text-muted); line-height: 1.4rem; }

/* RTP Bar */
.v9f1-rtp-item { margin-bottom: 0.8rem; }
.v9f1-rtp-label { display: flex; justify-content: space-between; font-size: 1.2rem; margin-bottom: 0.3rem; }
.v9f1-rtp-label span:first-child { color: var(--v9f1-text-muted); }
.v9f1-rtp-label span:last-child { color: var(--v9f1-primary); font-weight: 600; }
.v9f1-rtp-bar { height: 6px; background: var(--v9f1-bg); border-radius: 3px; overflow: hidden; }
.v9f1-rtp-fill { height: 100%; background: linear-gradient(90deg, var(--v9f1-primary), #ff6b00); border-radius: 3px; }

/* Winners Marquee */
.v9f1-winners-list { display: flex; flex-direction: column; gap: 0.6rem; }
.v9f1-winner-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1rem; background: var(--v9f1-bg-card); border-radius: var(--v9f1-radius);
  font-size: 1.2rem;
}
.v9f1-winner-name { color: var(--v9f1-text); font-weight: 600; }
.v9f1-winner-game { color: var(--v9f1-text-muted); }
.v9f1-winner-amount { color: var(--v9f1-primary); font-weight: 700; }

/* Payment Icons */
.v9f1-payment-row { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin: 1rem 0; }
.v9f1-payment-icon {
  width: 56px; height: 36px; background: var(--v9f1-bg-card); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  color: var(--v9f1-text-muted); border: 1px solid var(--v9f1-border);
}

/* Responsive */
@media (min-width: 769px) {
  .v9f1-bottom-nav { display: none; }
  body { max-width: 430px; }
}
@media (max-width: 768px) {
  .v9f1-main { padding-bottom: 80px; }
}

/* Utility */
.v9f1-text-center { text-align: center; }
.v9f1-text-accent { color: var(--v9f1-primary); }
.v9f1-mb-1 { margin-bottom: 0.8rem; }
.v9f1-mb-2 { margin-bottom: 1.6rem; }
.v9f1-mt-1 { margin-top: 0.8rem; }
.v9f1-hidden { display: none; }

/* Testimonial */
.v9f1-testimonial {
  background: var(--v9f1-bg-card); border-radius: var(--v9f1-radius);
  padding: 1rem; margin-bottom: 0.8rem; border-left: 3px solid var(--v9f1-primary);
}
.v9f1-testimonial-text { font-size: 1.2rem; color: var(--v9f1-text-muted); line-height: 1.6rem; font-style: italic; }
.v9f1-testimonial-author { font-size: 1.1rem; color: var(--v9f1-primary); margin-top: 0.4rem; font-weight: 600; }

/* CTA Download Section */
.v9f1-cta-box {
  background: linear-gradient(135deg, var(--v9f1-bg-card), var(--v9f1-bg-dark));
  border-radius: var(--v9f1-radius-lg); padding: 2rem 1.6rem;
  text-align: center; border: 1px solid var(--v9f1-primary);
  margin: 1.6rem 0;
}
.v9f1-cta-title { font-size: 1.8rem; font-weight: 700; color: var(--v9f1-primary); margin-bottom: 0.8rem; }
.v9f1-cta-desc { font-size: 1.3rem; color: var(--v9f1-text-muted); margin-bottom: 1.2rem; line-height: 1.6rem; }
