/* hanononline.sbs - Main Stylesheet */
/* All classes use g9ff- prefix for namespace isolation */

/* CSS Variables */
:root {
  --g9ff-primary: #34495E;
  --g9ff-secondary: #696969;
  --g9ff-accent: #778899;
  --g9ff-bg: #1a2332;
  --g9ff-bg-light: #243447;
  --g9ff-bg-card: #2a3a4e;
  --g9ff-text: #e8edf2;
  --g9ff-text-muted: #9aabb8;
  --g9ff-gold: #f0c040;
  --g9ff-gold-dark: #c9a020;
  --g9ff-highlight: #e74c3c;
  --g9ff-green: #27ae60;
  --g9ff-blue: #2980b9;
  --g9ff-border: #3a4f65;
  --g9ff-radius: 8px;
  --g9ff-radius-lg: 12px;
  --g9ff-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

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

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

/* Header */
.g9ff-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 1000;
  background: linear-gradient(135deg, var(--g9ff-primary), #2c3e50);
  padding: 0 1rem; height: 52px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.g9ff-header-brand {
  display: flex; align-items: center; gap: 0.6rem;
}
.g9ff-header-logo { width: 28px; height: 28px; border-radius: 6px; }
.g9ff-header-name {
  font-size: 1.6rem; font-weight: 700; color: var(--g9ff-gold);
  letter-spacing: 0.5px;
}
.g9ff-header-actions { display: flex; gap: 0.5rem; align-items: center; }
.g9ff-header-menu-btn {
  background: none; border: none; color: var(--g9ff-text);
  font-size: 2rem; cursor: pointer; padding: 0.4rem;
  display: flex; align-items: center;
}
.g9ff-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.2rem; border-radius: var(--g9ff-radius);
  font-size: 1.2rem; font-weight: 600; cursor: pointer;
  border: none; transition: all 0.2s; min-height: 36px;
}
.g9ff-btn-register {
  background: linear-gradient(135deg, var(--g9ff-highlight), #c0392b);
  color: #fff; box-shadow: 0 2px 6px rgba(231,76,60,0.3);
}
.g9ff-btn-register:hover { background: linear-gradient(135deg, #c0392b, #a93226); }
.g9ff-btn-login {
  background: linear-gradient(135deg, var(--g9ff-gold), var(--g9ff-gold-dark));
  color: var(--g9ff-primary);
}
.g9ff-btn-login:hover { background: linear-gradient(135deg, var(--g9ff-gold-dark), #b8901a); }
.g9ff-btn-promo {
  background: linear-gradient(135deg, var(--g9ff-green), #219a52);
  color: #fff; font-size: 1.3rem; padding: 0.8rem 2rem;
  border-radius: var(--g9ff-radius-lg);
}
.g9ff-btn-promo:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(39,174,96,0.4); }

/* Mobile Menu */
.g9ff-menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); z-index: 9998;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.g9ff-overlay-active { opacity: 1; pointer-events: auto; }
.g9ff-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: var(--g9ff-bg-light); z-index: 9999;
  transition: right 0.3s ease; padding: 1.6rem 0; overflow-y: auto;
}
.g9ff-menu-active { right: 0; }
.g9ff-menu-header {
  padding: 0 1.6rem 1.2rem; border-bottom: 1px solid var(--g9ff-border);
  display: flex; justify-content: space-between; align-items: center;
}
.g9ff-menu-title { font-size: 1.6rem; font-weight: 700; color: var(--g9ff-gold); }
.g9ff-menu-close {
  background: none; border: none; color: var(--g9ff-text-muted);
  font-size: 2rem; cursor: pointer; padding: 0.2rem;
}
.g9ff-menu-list { padding: 0.8rem 0; }
.g9ff-menu-item {
  display: block; padding: 1rem 1.6rem; color: var(--g9ff-text);
  font-size: 1.4rem; border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s;
}
.g9ff-menu-item:hover { background: rgba(255,255,255,0.05); color: var(--g9ff-gold); }
.g9ff-menu-item i, .g9ff-menu-item .material-icons { margin-right: 0.8rem; font-size: 1.8rem; vertical-align: middle; }

/* Main Content */
.g9ff-main {
  padding-top: 52px;
}
@media (max-width: 768px) {
  .g9ff-main { padding-bottom: 80px; }
}

/* Carousel */
.g9ff-carousel {
  position: relative; width: 100%; aspect-ratio: 16/7;
  overflow: hidden; border-radius: var(--g9ff-radius-lg);
  margin-bottom: 1.6rem; cursor: pointer;
}
.g9ff-carousel-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.5s;
}
.g9ff-slide-active { opacity: 1; }
.g9ff-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.g9ff-carousel-dots {
  position: absolute; bottom: 8px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 6px;
}
.g9ff-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer; border: none;
  transition: background 0.2s;
}
.g9ff-dot-active { background: var(--g9ff-gold); width: 20px; border-radius: 4px; }

/* Section */
.g9ff-section { padding: 1.6rem 0; }
.g9ff-section-title {
  font-size: 1.8rem; font-weight: 700; margin-bottom: 1.2rem;
  padding-bottom: 0.6rem; border-bottom: 2px solid var(--g9ff-gold);
  color: var(--g9ff-gold);
}
.g9ff-section-title i { margin-right: 0.5rem; }

/* Game Grid */
.g9ff-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.g9ff-game-item {
  text-align: center; cursor: pointer;
  transition: transform 0.2s;
}
.g9ff-game-item:hover { transform: translateY(-2px); }
.g9ff-game-item img {
  width: 100%; aspect-ratio: 1/1; border-radius: var(--g9ff-radius);
  border: 2px solid var(--g9ff-border); object-fit: cover;
  transition: border-color 0.2s;
}
.g9ff-game-item:hover img { border-color: var(--g9ff-gold); }
.g9ff-game-name {
  font-size: 1rem; color: var(--g9ff-text-muted);
  margin-top: 0.3rem; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}

/* Category Label */
.g9ff-cat-label {
  font-size: 1.4rem; font-weight: 600; color: var(--g9ff-accent);
  margin: 1.4rem 0 0.8rem; display: flex; align-items: center; gap: 0.5rem;
}

/* Cards */
.g9ff-card {
  background: var(--g9ff-bg-card); border-radius: var(--g9ff-radius-lg);
  padding: 1.4rem; margin-bottom: 1.2rem; box-shadow: var(--g9ff-shadow);
  border: 1px solid var(--g9ff-border);
}
.g9ff-card-title {
  font-size: 1.5rem; font-weight: 700; margin-bottom: 0.8rem;
  color: var(--g9ff-text);
}
.g9ff-card-text { font-size: 1.3rem; color: var(--g9ff-text-muted); line-height: 1.8rem; }

/* Testimonial */
.g9ff-testimonial {
  background: var(--g9ff-bg-card); border-radius: var(--g9ff-radius);
  padding: 1.2rem; margin-bottom: 1rem; border-left: 3px solid var(--g9ff-gold);
}
.g9ff-testimonial-name { font-weight: 600; color: var(--g9ff-gold); font-size: 1.2rem; }
.g9ff-testimonial-text { color: var(--g9ff-text-muted); font-size: 1.2rem; margin-top: 0.4rem; }

/* Payment Methods */
.g9ff-payment-grid {
  display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center;
}
.g9ff-payment-item {
  background: var(--g9ff-bg-light); padding: 0.6rem 1.2rem;
  border-radius: var(--g9ff-radius); font-size: 1.2rem;
  color: var(--g9ff-text); border: 1px solid var(--g9ff-border);
}

/* Winner List */
.g9ff-winner-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 1.2rem;
}
.g9ff-winner-name { color: var(--g9ff-text-muted); }
.g9ff-winner-amount { color: var(--g9ff-green); font-weight: 600; }

/* App Download CTA */
.g9ff-app-cta {
  background: linear-gradient(135deg, var(--g9ff-primary), #2c3e50);
  border-radius: var(--g9ff-radius-lg); padding: 2rem 1.4rem;
  text-align: center; border: 1px solid var(--g9ff-border);
}
.g9ff-app-cta h3 { color: var(--g9ff-gold); font-size: 1.6rem; margin-bottom: 0.8rem; }
.g9ff-app-cta p { color: var(--g9ff-text-muted); font-size: 1.2rem; margin-bottom: 1.2rem; }

/* Footer */
.g9ff-footer {
  background: var(--g9ff-bg-light); padding: 2rem 1.2rem 1.2rem;
  border-top: 1px solid var(--g9ff-border);
}
.g9ff-footer-brand {
  font-size: 1.2rem; color: var(--g9ff-text-muted); margin-bottom: 1rem; line-height: 1.8rem;
}
.g9ff-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; justify-content: center;
}
.g9ff-footer-link {
  font-size: 1.1rem; color: var(--g9ff-text-muted); padding: 0.4rem 0.8rem;
  background: var(--g9ff-bg-card); border-radius: var(--g9ff-radius);
  transition: color 0.2s;
}
.g9ff-footer-link:hover { color: var(--g9ff-gold); }
.g9ff-footer-copy {
  text-align: center; font-size: 1rem; color: var(--g9ff-secondary);
  padding-top: 0.8rem; border-top: 1px solid var(--g9ff-border);
}

/* Bottom Navigation */
.g9ff-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 1000;
  background: linear-gradient(180deg, #2c3e50, var(--g9ff-primary));
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
  border-top: 1px solid rgba(240,192,64,0.2);
}
.g9ff-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: none; border: none; color: var(--g9ff-text-muted);
  font-size: 1rem; cursor: pointer; padding: 0.4rem 0.2rem;
  min-width: 60px; min-height: 56px; transition: all 0.2s;
  position: relative;
}
.g9ff-bottom-nav-btn i,
.g9ff-bottom-nav-btn .material-icons,
.g9ff-bottom-nav-btn ion-icon,
.g9ff-bottom-nav-btn bi {
  font-size: 22px; margin-bottom: 2px;
}
.g9ff-bottom-nav-btn:hover { color: var(--g9ff-gold); }
.g9ff-bottom-nav-btn:active { transform: scale(0.92); }
.g9ff-nav-active {
  color: var(--g9ff-gold) !important;
}
.g9ff-nav-active::after {
  content: ''; position: absolute; top: -1px; left: 20%; right: 20%;
  height: 2px; background: var(--g9ff-gold); border-radius: 0 0 2px 2px;
}

/* Utility */
.g9ff-text-gold { color: var(--g9ff-gold); }
.g9ff-text-center { text-align: center; }
.g9ff-mb-1 { margin-bottom: 0.8rem; }
.g9ff-mb-2 { margin-bottom: 1.6rem; }
.g9ff-mt-1 { margin-top: 0.8rem; }
.g9ff-mt-2 { margin-top: 1.6rem; }

/* Help Page Styles */
.g9ff-help-section { margin-bottom: 1.6rem; }
.g9ff-help-section h2 {
  font-size: 1.6rem; color: var(--g9ff-gold); margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.g9ff-help-section h3 {
  font-size: 1.4rem; color: var(--g9ff-text); margin: 1rem 0 0.5rem;
}
.g9ff-help-section p, .g9ff-help-section li {
  font-size: 1.3rem; color: var(--g9ff-text-muted); line-height: 1.8rem;
}
.g9ff-help-section ol { padding-left: 1.6rem; }
.g9ff-help-section ol li { margin-bottom: 0.5rem; list-style: decimal; }
.g9ff-faq-item {
  background: var(--g9ff-bg-card); border-radius: var(--g9ff-radius);
  padding: 1rem 1.2rem; margin-bottom: 0.8rem; border-left: 3px solid var(--g9ff-accent);
}
.g9ff-faq-q { font-weight: 600; color: var(--g9ff-text); font-size: 1.3rem; margin-bottom: 0.4rem; }
.g9ff-faq-a { color: var(--g9ff-text-muted); font-size: 1.2rem; line-height: 1.6rem; }

/* Promo inline link */
.g9ff-promo-text {
  color: var(--g9ff-gold); font-weight: 600; cursor: pointer;
  border-bottom: 1px dashed var(--g9ff-gold-dark);
}

/* Responsive - Desktop hides bottom nav */
@media (min-width: 769px) {
  .g9ff-bottom-nav { display: none; }
  .g9ff-main { padding-bottom: 0; }
}
