/**
 * ph3656 - Theme Stylesheet
 * Prefix: g7f1-
 * All classes use g7f1- prefix for namespace isolation
 * Colors: #FFAA00 (gold), #FF6347 (coral), #FF9500 (orange), #1E1E1E (dark), #20B2AA (teal), #CCCCCC (light)
 */

:root {
  --g7f1-primary: #FFAA00;
  --g7f1-secondary: #FF6347;
  --g7f1-accent: #FF9500;
  --g7f1-bg: #1E1E1E;
  --g7f1-bg-light: #2a2a2a;
  --g7f1-teal: #20B2AA;
  --g7f1-text: #CCCCCC;
  --g7f1-text-bright: #f0f0f0;
  --g7f1-border: #333333;
  --g7f1-radius: 8px;
  --g7f1-radius-lg: 16px;
  --g7f1-shadow: 0 4px 12px rgba(0,0,0,0.4);
  --g7f1-shadow-lg: 0 8px 24px rgba(0,0,0,0.6);
  --g7f1-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%; overflow-x: hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--g7f1-bg);
  color: var(--g7f1-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
}
a { color: var(--g7f1-primary); text-decoration: none; transition: var(--g7f1-transition); }
a:hover { color: var(--g7f1-accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Container */
.g7f1-container { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; width: 100%; max-width: 100%; }
.g7f1-wrapper { width: 100%; position: relative; max-width: 100%; overflow-x: hidden; }
.g7f1-grid { display: grid; gap: 1rem; }

/* Header */
.g7f1-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-bottom: 2px solid var(--g7f1-primary);
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem;
  box-shadow: var(--g7f1-shadow);
  max-width: 100vw;
  overflow-x: hidden;
}
.g7f1-header-left { display: flex; align-items: center; gap: 0.8rem; }
.g7f1-logo { height: 32px; width: auto; border-radius: 4px; }
.g7f1-site-name {
  font-size: 1.8rem; font-weight: 700; color: var(--g7f1-primary);
  letter-spacing: 0.5px;
}
.g7f1-header-right { display: flex; align-items: center; gap: 0.6rem; }
.g7f1-header-btn {
  padding: 0.6rem 1.2rem; border-radius: 20px; font-size: 1.2rem;
  font-weight: 600; cursor: pointer; border: none; transition: var(--g7f1-transition);
  min-height: 36px; display: flex; align-items: center; gap: 0.4rem;
}
.g7f1-btn-register {
  background: linear-gradient(135deg, var(--g7f1-primary), var(--g7f1-accent));
  color: var(--g7f1-bg);
}
.g7f1-btn-register:hover { transform: scale(1.05); box-shadow: 0 0 12px rgba(255,170,0,0.5); }
.g7f1-btn-login {
  background: transparent; color: var(--g7f1-primary);
  border: 1.5px solid var(--g7f1-primary);
}
.g7f1-btn-login:hover { background: rgba(255,170,0,0.1); }
.g7f1-menu-toggle {
  background: none; border: none; color: var(--g7f1-primary);
  font-size: 2rem; cursor: pointer; padding: 0.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* Mobile Menu */
.g7f1-menu-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7); z-index: 9998;
  display: none; opacity: 0; transition: opacity 0.3s ease;
}
.g7f1-mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 280px; max-width: 80vw;
  background: var(--g7f1-bg-light);
  z-index: 9999;
  transform: translateX(100%); opacity: 0; visibility: hidden;
  transition: all 0.3s ease;
  overflow-y: auto;
  padding: 2rem 1.5rem;
  border-left: 2px solid var(--g7f1-primary);
}
.g7f1-mobile-menu-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 2rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--g7f1-border);
}
.g7f1-mobile-menu-title { font-size: 1.6rem; font-weight: 700; color: var(--g7f1-primary); }
.g7f1-mobile-menu-close {
  background: none; border: none; color: var(--g7f1-text);
  font-size: 2.4rem; cursor: pointer; line-height: 1;
}
.g7f1-mobile-menu-link {
  display: block; padding: 1rem 0.8rem; color: var(--g7f1-text-bright);
  font-size: 1.4rem; border-bottom: 1px solid var(--g7f1-border);
  transition: var(--g7f1-transition);
}
.g7f1-mobile-menu-link:hover {
  color: var(--g7f1-primary); padding-left: 1.2rem;
  background: rgba(255,170,0,0.05);
}

/* Bottom Navigation */
.g7f1-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
  border-top: 1.5px solid var(--g7f1-primary);
  height: 60px;
  display: flex; justify-content: space-around; align-items: center;
  padding: 0 0.5rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
  max-width: 100vw;
  overflow-x: hidden;
}
.g7f1-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 60px; min-height: 54px;
  background: none; border: none; color: var(--g7f1-text);
  cursor: pointer; transition: var(--g7f1-transition);
  padding: 0.3rem 0.5rem; border-radius: 8px;
  position: relative;
}
.g7f1-bottom-nav-btn:hover,
.g7f1-bottom-nav-btn.g7f1-active {
  color: var(--g7f1-primary);
  background: rgba(255,170,0,0.1);
}
.g7f1-bottom-nav-btn.g7f1-active::after {
  content: ''; position: absolute; top: -1px; left: 25%; right: 25%;
  height: 2.5px; background: var(--g7f1-primary); border-radius: 0 0 4px 4px;
}
.g7f1-bottom-nav-btn:active { transform: scale(0.92); }
.g7f1-bottom-nav-icon { font-size: 2.2rem; line-height: 1; margin-bottom: 0.2rem; }
.g7f1-bottom-nav-label { font-size: 1rem; font-weight: 500; white-space: nowrap; }

/* Main Content */
.g7f1-main {
  padding-top: 60px;
  padding-bottom: 2rem;
  min-height: 100vh;
}
@media (max-width: 768px) {
  .g7f1-main { padding-bottom: 80px; }
}

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

/* Section titles */
.g7f1-section { margin-bottom: 2rem; }
.g7f1-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--g7f1-primary);
  margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--g7f1-border);
  display: flex; align-items: center; gap: 0.6rem;
}
.g7f1-section-title .material-icons,
.g7f1-section-title .fas,
.g7f1-section-title .far { font-size: 2rem; }

/* Game grid */
.g7f1-game-section { margin-bottom: 2rem; }
.g7f1-game-category-title {
  font-size: 1.5rem; font-weight: 600; color: var(--g7f1-teal);
  margin-bottom: 0.8rem; padding-left: 0.4rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.g7f1-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.g7f1-game-item {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; transition: var(--g7f1-transition);
  padding: 0.4rem; border-radius: var(--g7f1-radius);
  background: var(--g7f1-bg-light);
  border: 1px solid var(--g7f1-border);
}
.g7f1-game-item:hover {
  transform: translateY(-2px); border-color: var(--g7f1-primary);
  box-shadow: 0 4px 8px rgba(255,170,0,0.2);
}
.g7f1-game-item:active { transform: scale(0.95); }
.g7f1-game-icon {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 6px; margin-bottom: 0.3rem;
}
.g7f1-game-name {
  font-size: 1rem; color: var(--g7f1-text-bright);
  text-align: center; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; width: 100%;
  font-weight: 500;
}

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

/* Promo button */
.g7f1-promo-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.6rem; padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--g7f1-primary), var(--g7f1-secondary));
  color: var(--g7f1-bg); font-size: 1.4rem; font-weight: 700;
  border: none; border-radius: 30px; cursor: pointer;
  transition: var(--g7f1-transition);
  box-shadow: 0 4px 16px rgba(255,170,0,0.3);
  text-transform: uppercase; letter-spacing: 1px;
  min-height: 44px;
}
.g7f1-promo-btn:hover {
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,170,0,0.5);
}
.g7f1-promo-btn:active { transform: scale(0.96); }

/* CTA Section */
.g7f1-cta {
  background: linear-gradient(135deg, rgba(255,170,0,0.15), rgba(255,99,71,0.15));
  border: 1.5px solid var(--g7f1-primary);
  border-radius: var(--g7f1-radius-lg);
  padding: 2rem 1.5rem; text-align: center;
  margin: 2rem 0;
}
.g7f1-cta-title {
  font-size: 2rem; font-weight: 700; color: var(--g7f1-primary);
  margin-bottom: 0.8rem;
}
.g7f1-cta-text {
  font-size: 1.3rem; color: var(--g7f1-text); margin-bottom: 1.5rem;
  line-height: 1.5;
}

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

/* Winner list */
.g7f1-winner-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.8rem 1rem; background: var(--g7f1-bg-light);
  border-radius: var(--g7f1-radius); margin-bottom: 0.6rem;
  border-left: 3px solid var(--g7f1-primary);
}
.g7f1-winner-name { font-weight: 600; color: var(--g7f1-teal); font-size: 1.2rem; }
.g7f1-winner-game { font-size: 1.1rem; color: var(--g7f1-text); }
.g7f1-winner-amount { font-weight: 700; color: var(--g7f1-primary); font-size: 1.3rem; margin-left: auto; }

/* Footer */
.g7f1-footer {
  background: var(--g7f1-bg-light);
  border-top: 2px solid var(--g7f1-border);
  padding: 2rem 1.2rem; margin-top: 2rem;
}
.g7f1-footer-brand { text-align: center; margin-bottom: 1.5rem; }
.g7f1-footer-brand-name { font-size: 1.6rem; font-weight: 700; color: var(--g7f1-primary); }
.g7f1-footer-desc { font-size: 1.2rem; color: var(--g7f1-text); margin-top: 0.5rem; line-height: 1.5; }
.g7f1-footer-partners {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.8rem; margin: 1.5rem 0;
}
.g7f1-footer-partners img { height: 28px; width: auto; max-width: 80px; opacity: 0.7; }
.g7f1-footer-links {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.8rem 1.5rem; margin: 1.2rem 0;
}
.g7f1-footer-link {
  font-size: 1.2rem; color: var(--g7f1-text);
  transition: var(--g7f1-transition);
}
.g7f1-footer-link:hover { color: var(--g7f1-primary); }
.g7f1-footer-copyright {
  text-align: center; font-size: 1.1rem;
  color: #666; margin-top: 1.2rem;
  padding-top: 1rem; border-top: 1px solid var(--g7f1-border);
}
.g7f1-footer-promo-btns {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.6rem; margin: 1rem 0;
}
.g7f1-footer-promo-btn {
  padding: 0.5rem 1rem; font-size: 1.1rem;
  background: linear-gradient(135deg, var(--g7f1-primary), var(--g7f1-accent));
  color: var(--g7f1-bg); border: none; border-radius: 16px;
  cursor: pointer; font-weight: 600; transition: var(--g7f1-transition);
}
.g7f1-footer-promo-btn:hover { transform: scale(1.05); }

/* Scroll animations */
.g7f1-animate-on-scroll {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.g7f1-animate-on-scroll.g7f1-visible { opacity: 1; transform: translateY(0); }

/* Touch feedback */
.g7f1-touchable { transition: var(--g7f1-transition); }
.g7f1-touching { opacity: 0.7; transform: scale(0.97); }

/* Promo text link */
.g7f1-promo-link {
  color: var(--g7f1-secondary); font-weight: 600;
  cursor: pointer; transition: var(--g7f1-transition);
  text-decoration: underline;
}
.g7f1-promo-link:hover { color: var(--g7f1-primary); }

/* FAQ styles */
.g7f1-faq-item {
  background: var(--g7f1-bg-light); border: 1px solid var(--g7f1-border);
  border-radius: var(--g7f1-radius); margin-bottom: 0.8rem;
  overflow: hidden;
}
.g7f1-faq-q {
  padding: 1rem 1.2rem; font-weight: 600; color: var(--g7f1-text-bright);
  font-size: 1.3rem; cursor: default;
  display: flex; align-items: flex-start; gap: 0.5rem;
}
.g7f1-faq-a {
  padding: 0 1.2rem 1rem; font-size: 1.2rem; color: var(--g7f1-text);
  line-height: 1.6;
}

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .g7f1-bottom-nav { display: none; }
  .g7f1-container { max-width: 430px; }
}

/* Overflow prevention */
table { max-width: 100%; display: block; overflow-x: auto; }
pre, code { max-width: 100%; overflow-x: auto; }
