/**
 * Phwin - Core Stylesheet
 * Prefix: gd97-
 * Site: phwin.click
 * Colors: #0A0A0A #E0E0E0 #808080 #BDC3C7 #36454F #FF4500
 */

:root {
  --gd97-bg-dark: #0A0A0A;
  --gd97-bg-card: #141414;
  --gd97-bg-section: #1A1A1A;
  --gd97-bg-input: #222222;
  --gd97-text-light: #E0E0E0;
  --gd97-text-muted: #808080;
  --gd97-text-dim: #BDC3C7;
  --gd97-accent: #FF4500;
  --gd97-accent-hover: #FF6A33;
  --gd97-border: #36454F;
  --gd97-charcoal: #36454F;
  --gd97-radius: 0.8rem;
  --gd97-radius-sm: 0.5rem;
  --gd97-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--gd97-bg-dark);
  color: var(--gd97-text-light);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gd97-accent); text-decoration: none; }
a:hover { color: var(--gd97-accent-hover); }
img { max-width: 100%; height: auto; display: block; }

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

/* Header */
.gd97-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--gd97-bg-dark);
  border-bottom: 1px solid var(--gd97-border);
  max-width: 430px; margin: 0 auto;
}
.gd97-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem; height: 5rem;
}
.gd97-logo-area { display: flex; align-items: center; gap: 0.6rem; }
.gd97-logo-area img { width: 28px; height: 28px; border-radius: 4px; }
.gd97-logo-area span { font-size: 1.6rem; font-weight: 700; color: var(--gd97-accent); letter-spacing: 0.5px; }
.gd97-header-actions { display: flex; gap: 0.6rem; align-items: center; }
.gd97-btn-register, .gd97-btn-login {
  padding: 0.5rem 1.2rem; border-radius: var(--gd97-radius-sm);
  font-size: 1.2rem; font-weight: 600; cursor: pointer; border: none;
  transition: all 0.2s ease;
}
.gd97-btn-register {
  background: var(--gd97-accent); color: #fff;
}
.gd97-btn-register:hover { background: var(--gd97-accent-hover); transform: scale(1.03); }
.gd97-btn-login {
  background: transparent; color: var(--gd97-text-light);
  border: 1px solid var(--gd97-border);
}
.gd97-btn-login:hover { border-color: var(--gd97-accent); color: var(--gd97-accent); }

/* Menu Toggle */
.gd97-menu-toggle {
  background: none; border: none; color: var(--gd97-text-light);
  font-size: 2rem; cursor: pointer; padding: 0.4rem; line-height: 1;
}
.gd97-menu-toggle:hover { color: var(--gd97-accent); }

/* Mobile Menu */
.gd97-mobile-menu {
  max-height: 0; overflow: hidden;
  background: var(--gd97-bg-card);
  transition: max-height 0.35s ease;
  border-top: 1px solid var(--gd97-border);
}
.gd97-menu-active { max-height: 500px; }
.gd97-mobile-menu a {
  display: block; padding: 1rem 1.5rem; color: var(--gd97-text-light);
  font-size: 1.3rem; border-bottom: 1px solid rgba(54,69,79,0.3);
  transition: background 0.2s;
}
.gd97-mobile-menu a:hover { background: rgba(255,69,0,0.1); color: var(--gd97-accent); }

/* Carousel */
.gd97-carousel { position: relative; overflow: hidden; margin-top: 5rem; }
.gd97-slides-wrapper { display: flex; transition: transform 0.4s ease; }
.gd97-slide {
  min-width: 100%; display: none; cursor: pointer;
}
.gd97-slide-active { display: block; }
.gd97-slide img { width: 100%; height: auto; min-height: 180px; object-fit: cover; }
.gd97-carousel-dots {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.6rem;
}
.gd97-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gd97-text-muted); cursor: pointer; border: none;
  transition: background 0.2s;
}
.gd97-dot-active { background: var(--gd97-accent); }

/* Section Headings */
.gd97-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--gd97-text-light);
  margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gd97-accent);
  display: inline-block;
}
.gd97-section-subtitle {
  font-size: 1.4rem; color: var(--gd97-text-muted); margin-bottom: 1rem;
}

/* Game Grid */
.gd97-game-section { padding: 1.5rem 0; }
.gd97-game-section h2 {
  font-size: 1.6rem; font-weight: 700; color: var(--gd97-accent);
  margin-bottom: 1rem; padding-left: 0.5rem;
  border-left: 3px solid var(--gd97-accent);
}
.gd97-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.gd97-game-item {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; transition: transform 0.2s;
  text-align: center;
}
.gd97-game-item:hover { transform: scale(1.05); }
.gd97-game-item img {
  width: 72px; height: 72px; border-radius: var(--gd97-radius-sm);
  object-fit: cover; border: 1px solid var(--gd97-border);
  margin-bottom: 0.4rem;
}
.gd97-game-item span {
  font-size: 1rem; color: var(--gd97-text-dim);
  line-height: 1.2rem; max-width: 80px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Cards */
.gd97-card {
  background: var(--gd97-bg-card); border-radius: var(--gd97-radius);
  padding: 1.5rem; margin-bottom: 1rem;
  border: 1px solid var(--gd97-border);
}
.gd97-card h3 {
  font-size: 1.5rem; font-weight: 700; color: var(--gd97-accent);
  margin-bottom: 0.8rem;
}
.gd97-card p {
  font-size: 1.3rem; color: var(--gd97-text-dim); line-height: 1.7rem;
  margin-bottom: 0.8rem;
}
.gd97-card-link {
  color: var(--gd97-accent); font-weight: 600; cursor: pointer;
  font-size: 1.3rem;
}
.gd97-card-link:hover { text-decoration: underline; }

/* Promo Buttons */
.gd97-promo-btn {
  display: inline-block; background: var(--gd97-accent); color: #fff;
  padding: 1rem 2rem; border-radius: var(--gd97-radius);
  font-size: 1.4rem; font-weight: 700; cursor: pointer;
  border: none; transition: all 0.2s ease; text-align: center;
  width: 100%;
}
.gd97-promo-btn:hover { background: var(--gd97-accent-hover); transform: translateY(-1px); }

/* Content Sections */
.gd97-content-section { padding: 1.5rem 1.2rem; }
.gd97-content-section h2 {
  font-size: 1.7rem; font-weight: 700; color: var(--gd97-text-light);
  margin-bottom: 1rem;
}
.gd97-content-section p {
  font-size: 1.3rem; color: var(--gd97-text-dim); line-height: 1.8rem;
  margin-bottom: 1rem;
}
.gd97-text-accent { color: var(--gd97-accent); font-weight: 600; }
.gd97-text-muted { color: var(--gd97-text-muted); }

/* FAQ */
.gd97-faq-item { margin-bottom: 1.2rem; }
.gd97-faq-item h3 {
  font-size: 1.3rem; font-weight: 600; color: var(--gd97-accent);
  margin-bottom: 0.4rem;
}
.gd97-faq-item p {
  font-size: 1.2rem; color: var(--gd97-text-dim); line-height: 1.6rem;
}

/* Stats Grid */
.gd97-stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.gd97-stat-card {
  background: var(--gd97-bg-section); border-radius: var(--gd97-radius-sm);
  padding: 1rem; text-align: center;
  border: 1px solid var(--gd97-border);
}
.gd97-stat-card .gd97-stat-value {
  font-size: 2rem; font-weight: 700; color: var(--gd97-accent);
}
.gd97-stat-card .gd97-stat-label {
  font-size: 1rem; color: var(--gd97-text-muted); margin-top: 0.3rem;
}

/* Testimonials */
.gd97-testimonial {
  background: var(--gd97-bg-section); border-radius: var(--gd97-radius-sm);
  padding: 1rem 1.2rem; margin-bottom: 0.8rem;
  border-left: 3px solid var(--gd97-accent);
}
.gd97-testimonial p { font-size: 1.2rem; color: var(--gd97-text-dim); font-style: italic; }
.gd97-testimonial cite { font-size: 1.1rem; color: var(--gd97-text-muted); margin-top: 0.4rem; display: block; }

/* Footer */
.gd97-footer {
  background: var(--gd97-bg-card); padding: 2rem 1.2rem 1rem;
  border-top: 1px solid var(--gd97-border);
  margin-top: 2rem;
}
.gd97-footer-brand { font-size: 1.3rem; color: var(--gd97-text-dim); line-height: 1.6rem; margin-bottom: 1.2rem; }
.gd97-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem;
}
.gd97-footer-links a {
  padding: 0.4rem 0.8rem; background: var(--gd97-bg-section);
  border-radius: var(--gd97-radius-sm); font-size: 1.1rem;
  color: var(--gd97-text-dim); border: 1px solid var(--gd97-border);
}
.gd97-footer-links a:hover { color: var(--gd97-accent); border-color: var(--gd97-accent); }
.gd97-footer-copy { font-size: 1rem; color: var(--gd97-text-muted); text-align: center; padding-top: 1rem; border-top: 1px solid var(--gd97-border); }

/* Bottom Navigation */
.gd97-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: var(--gd97-bg-dark);
  border-top: 1px solid var(--gd97-border);
  display: flex; justify-content: space-around; align-items: center;
  height: 58px; max-width: 430px; margin: 0 auto;
}
.gd97-bottom-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 56px; background: none; border: none;
  cursor: pointer; color: var(--gd97-text-muted); transition: all 0.2s;
  gap: 0.2rem;
}
.gd97-bottom-btn:hover { color: var(--gd97-accent); transform: scale(1.05); }
.gd97-bottom-btn .gd97-btn-icon { font-size: 22px; }
.gd97-bottom-btn .gd97-btn-text { font-size: 10px; font-weight: 500; }
.gd97-bottom-active { color: var(--gd97-accent) !important; }
.gd97-bottom-active .gd97-btn-icon { transform: scale(1.1); }

/* Utility */
.gd97-mt-1 { margin-top: 0.5rem; }
.gd97-mt-2 { margin-top: 1rem; }
.gd97-mb-1 { margin-bottom: 0.5rem; }
.gd97-mb-2 { margin-bottom: 1rem; }
.gd97-text-center { text-align: center; }
.gd97-hidden { display: none !important; }

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