/**
 * 5775.click - Main Stylesheet
 * Prefix: gd5b-
 * Color Palette: #2E4057 (deep blue-gray), #6F4E37 (warm brown)
 * Mobile-first responsive design
 */

/* === CSS Variables === */
:root {
  --gd5b-primary: #2E4057;
  --gd5b-secondary: #6F4E37;
  --gd5b-bg: #1a2332;
  --gd5b-bg-light: #243447;
  --gd5b-bg-card: #1e2d3d;
  --gd5b-text: #e8dcc8;
  --gd5b-text-light: #b8a898;
  --gd5b-accent: #d4a574;
  --gd5b-accent-hover: #e0b98a;
  --gd5b-gold: #f0c860;
  --gd5b-border: #3a4f66;
  --gd5b-shadow: rgba(0,0,0,0.3);
  --gd5b-radius: 8px;
  --gd5b-radius-lg: 12px;
  font-size: 62.5%;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--gd5b-bg);
  color: var(--gd5b-text);
  font-size: 1.4rem;
  line-height: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--gd5b-accent); text-decoration: none; }
a:hover { color: var(--gd5b-accent-hover); }
img { max-width: 100%; height: auto; display: block; }

/* === Header === */
.gd5b-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--gd5b-primary), #1e2d3d);
  border-bottom: 2px solid var(--gd5b-secondary);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}
.gd5b-header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.gd5b-header-logo img {
  width: 32px; height: 32px;
  border-radius: 6px;
}
.gd5b-header-logo span {
  color: var(--gd5b-gold);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 1px;
}
.gd5b-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gd5b-btn-register, .gd5b-btn-login {
  padding: 6px 14px;
  border: none;
  border-radius: var(--gd5b-radius);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.gd5b-btn-register {
  background: linear-gradient(135deg, var(--gd5b-gold), #e0a830);
  color: #1a1a2e;
}
.gd5b-btn-register:hover { transform: scale(1.05); }
.gd5b-btn-login {
  background: transparent;
  border: 2px solid var(--gd5b-accent);
  color: var(--gd5b-accent);
}
.gd5b-btn-login:hover { background: var(--gd5b-accent); color: var(--gd5b-bg); }
.gd5b-menu-toggle {
  background: none;
  border: none;
  color: var(--gd5b-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

/* === Mobile Menu === */
.gd5b-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.gd5b-overlay-active { opacity: 1; pointer-events: auto; }
.gd5b-mobile-menu {
  position: fixed;
  top: 0; right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--gd5b-bg-light);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.gd5b-menu-open { right: 0; }
.gd5b-mobile-menu-close {
  background: none;
  border: none;
  color: var(--gd5b-text);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1rem; right: 1rem;
}
.gd5b-mobile-menu a {
  display: block;
  padding: 1rem 0;
  color: var(--gd5b-text);
  font-size: 1.5rem;
  border-bottom: 1px solid var(--gd5b-border);
  transition: color 0.2s;
}
.gd5b-mobile-menu a:hover { color: var(--gd5b-gold); }

/* === Main Content === */
.gd5b-main {
  margin-top: 56px;
  padding-bottom: 20px;
}
@media (max-width: 768px) {
  .gd5b-main { padding-bottom: 80px; }
}

/* === Carousel === */
.gd5b-carousel {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0 0 var(--gd5b-radius-lg) var(--gd5b-radius-lg);
}
.gd5b-carousel-inner { position: relative; width: 100%; height: 200px; }
.gd5b-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.gd5b-slide-active { opacity: 1; }
.gd5b-carousel-slide img {
  width: 100%; height: 200px;
  object-fit: cover;
}
.gd5b-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.gd5b-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}
.gd5b-dot-active { background: var(--gd5b-gold); }

/* === Section === */
.gd5b-section {
  padding: 2rem 1.2rem;
  max-width: 430px;
  margin: 0 auto;
}
.gd5b-section-title {
  font-size: 1.8rem;
  color: var(--gd5b-gold);
  margin-bottom: 1.2rem;
  font-weight: 800;
  border-left: 4px solid var(--gd5b-secondary);
  padding-left: 10px;
}
.gd5b-section-title i { margin-right: 6px; }

/* === Game Grid === */
.gd5b-game-category-title {
  font-size: 1.6rem;
  color: var(--gd5b-accent);
  margin: 1.5rem 0 0.8rem;
  font-weight: 700;
}
.gd5b-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.gd5b-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: var(--gd5b-radius);
  overflow: hidden;
}
.gd5b-game-item:hover { transform: translateY(-2px); }
.gd5b-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--gd5b-radius);
  border: 2px solid var(--gd5b-border);
}
.gd5b-game-item span {
  display: block;
  font-size: 1.1rem;
  color: var(--gd5b-text-light);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === Cards & Modules === */
.gd5b-card {
  background: var(--gd5b-bg-card);
  border-radius: var(--gd5b-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--gd5b-border);
}
.gd5b-card h3 {
  color: var(--gd5b-gold);
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}
.gd5b-card p {
  color: var(--gd5b-text-light);
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 0.6rem;
}
.gd5b-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--gd5b-gold), #e0a830);
  color: #1a1a2e;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: var(--gd5b-radius);
  font-size: 1.3rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
  margin: 8px 0;
}
.gd5b-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px var(--gd5b-shadow);
}
.gd5b-promo-text {
  color: var(--gd5b-accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}
.gd5b-promo-text:hover { color: var(--gd5b-gold); }

/* === Winner Table === */
.gd5b-winner-table { width: 100%; border-collapse: collapse; }
.gd5b-winner-table th, .gd5b-winner-table td {
  padding: 8px 6px;
  text-align: left;
  border-bottom: 1px solid var(--gd5b-border);
  font-size: 1.2rem;
}
.gd5b-winner-table th { color: var(--gd5b-gold); font-weight: 700; }
.gd5b-winner-table td { color: var(--gd5b-text-light); }
.gd5b-winner-table .gd5b-win-amount { color: #4ade80; font-weight: 700; }

/* === Payment Icons === */
.gd5b-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 1rem 0;
}
.gd5b-payment-item {
  background: var(--gd5b-bg-light);
  border: 1px solid var(--gd5b-border);
  border-radius: var(--gd5b-radius);
  padding: 8px 14px;
  font-size: 1.2rem;
  color: var(--gd5b-text-light);
}

/* === Footer === */
.gd5b-footer {
  background: var(--gd5b-bg-light);
  padding: 2rem 1.2rem;
  text-align: center;
  border-top: 2px solid var(--gd5b-secondary);
  max-width: 430px;
  margin: 0 auto;
}
.gd5b-footer-desc {
  color: var(--gd5b-text-light);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.gd5b-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 1rem;
}
.gd5b-footer-links a {
  background: var(--gd5b-bg-card);
  border: 1px solid var(--gd5b-border);
  padding: 6px 12px;
  border-radius: var(--gd5b-radius);
  color: var(--gd5b-accent);
  font-size: 1.1rem;
  transition: all 0.2s;
}
.gd5b-footer-links a:hover { border-color: var(--gd5b-gold); color: var(--gd5b-gold); }
.gd5b-footer-copy {
  color: var(--gd5b-text-light);
  font-size: 1.1rem;
  margin-top: 1rem;
}
.gd5b-footer-sitelinks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 1rem 0;
}
.gd5b-footer-sitelinks a {
  color: var(--gd5b-text-light);
  font-size: 1.1rem;
  text-decoration: underline;
}

/* === Bottom Navigation === */
.gd5b-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--gd5b-primary), #1a2332);
  border-top: 2px solid var(--gd5b-secondary);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px;
}
.gd5b-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--gd5b-text-light);
  cursor: pointer;
  transition: all 0.2s;
  border-radius: var(--gd5b-radius);
  padding: 4px 0;
}
.gd5b-bottom-nav-btn i,
.gd5b-bottom-nav-btn span.material-icons-outlined,
.gd5b-bottom-nav-btn span.material-icons,
.gd5b-bottom-nav-btn ion-icon {
  font-size: 24px;
}
.gd5b-bottom-nav-btn span.gd5b-nav-label {
  font-size: 1rem;
  margin-top: 2px;
}
.gd5b-bottom-nav-btn:hover,
.gd5b-nav-active {
  color: var(--gd5b-gold);
  transform: scale(1.08);
}
.gd5b-nav-active {
  background: rgba(240,200,96,0.1);
}
@media (min-width: 769px) {
  .gd5b-bottom-nav { display: none; }
  .gd5b-main { padding-bottom: 20px; }
}

/* === Utility === */
.gd5b-text-center { text-align: center; }
.gd5b-mt-1 { margin-top: 1rem; }
.gd5b-mb-1 { margin-bottom: 1rem; }
.gd5b-hidden { display: none; }
.gd5b-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Content Typography === */
.gd5b-content p {
  color: var(--gd5b-text-light);
  font-size: 1.3rem;
  line-height: 1.7;
  margin-bottom: 0.8rem;
}
.gd5b-content h2 {
  color: var(--gd5b-gold);
  font-size: 1.7rem;
  margin: 1.5rem 0 0.8rem;
  font-weight: 700;
}
.gd5b-content h3 {
  color: var(--gd5b-accent);
  font-size: 1.5rem;
  margin: 1.2rem 0 0.6rem;
}
.gd5b-content ul {
  padding-left: 1.8rem;
  margin-bottom: 1rem;
}
.gd5b-content ul li {
  color: var(--gd5b-text-light);
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 0.4rem;
}

/* === FAQ Accordion === */
.gd5b-faq-item {
  background: var(--gd5b-bg-card);
  border: 1px solid var(--gd5b-border);
  border-radius: var(--gd5b-radius);
  margin-bottom: 8px;
  overflow: hidden;
}
.gd5b-faq-q {
  padding: 12px 14px;
  font-weight: 700;
  color: var(--gd5b-accent);
  font-size: 1.3rem;
  cursor: pointer;
}
.gd5b-faq-a {
  padding: 0 14px 12px;
  color: var(--gd5b-text-light);
  font-size: 1.2rem;
  line-height: 1.6;
}

/* === Testimonial === */
.gd5b-testimonial {
  background: var(--gd5b-bg-card);
  border-radius: var(--gd5b-radius-lg);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--gd5b-secondary);
}
.gd5b-testimonial-name {
  color: var(--gd5b-gold);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.gd5b-testimonial-text {
  color: var(--gd5b-text-light);
  font-size: 1.2rem;
  line-height: 1.5;
  font-style: italic;
}

/* === App Download CTA === */
.gd5b-app-cta {
  background: linear-gradient(135deg, var(--gd5b-primary), var(--gd5b-secondary));
  border-radius: var(--gd5b-radius-lg);
  padding: 1.5rem;
  text-align: center;
}
.gd5b-app-cta h3 {
  color: var(--gd5b-gold);
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}
.gd5b-app-cta p {
  color: var(--gd5b-text);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* === Responsive Tweaks === */
@media (max-width: 320px) {
  .gd5b-game-grid { grid-template-columns: repeat(3, 1fr); }
  .gd5b-header-logo span { font-size: 1.5rem; }
}
