/* 35 bd - Core CSS Stylesheet */
/* All classes use g28b- prefix */

:root {
  --g28b-primary: #6F4E37;
  --g28b-bg: #0A0A0A;
  --g28b-bg-alt: #1A1A1A;
  --g28b-bg-card: #141414;
  --g28b-text: #FFFFFF;
  --g28b-text-muted: #AAAAAA;
  --g28b-accent: #6F4E37;
  --g28b-accent-light: #8B6F52;
  --g28b-border: #2A2A2A;
  --g28b-gold: #D4A853;
  --g28b-success: #4CAF50;
  --g28b-radius: 8px;
  --g28b-radius-lg: 12px;
  --g28b-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --g28b-header-h: 56px;
  --g28b-bottom-h: 60px;
}

*, *::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: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--g28b-bg);
  color: var(--g28b-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--g28b-gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.g28b-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--g28b-header-h);
  background: var(--g28b-bg);
  border-bottom: 1px solid var(--g28b-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
}

.g28b-logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.g28b-logo-wrap img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.g28b-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g28b-gold);
  white-space: nowrap;
}

.g28b-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.g28b-btn-reg {
  background: var(--g28b-accent);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--g28b-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.g28b-btn-reg:hover { background: var(--g28b-accent-light); }

.g28b-btn-login {
  background: transparent;
  color: var(--g28b-gold);
  border: 1px solid var(--g28b-gold);
  padding: 5px 12px;
  border-radius: var(--g28b-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.g28b-btn-login:hover { background: var(--g28b-gold); color: var(--g28b-bg); }

.g28b-menu-toggle {
  background: none;
  border: none;
  color: var(--g28b-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* Mobile Menu */
.g28b-menu-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  display: none;
}

.g28b-overlay-active { display: block; }

.g28b-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100%;
  background: var(--g28b-bg-alt);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 60px 0 20px;
  overflow-y: auto;
}

.g28b-menu-active { right: 0; }

.g28b-mobile-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--g28b-text);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--g28b-border);
  transition: background 0.2s;
}

.g28b-mobile-menu a:hover {
  background: var(--g28b-bg-card);
  text-decoration: none;
}

.g28b-menu-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--g28b-text);
  font-size: 2.2rem;
  cursor: pointer;
}

/* Main content */
.g28b-main {
  padding-top: var(--g28b-header-h);
  min-height: 100vh;
}

/* Carousel */
.g28b-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16/7;
  background: var(--g28b-bg-alt);
}

.g28b-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  cursor: pointer;
}

.g28b-slide img { width: 100%; height: 100%; object-fit: cover; }
.g28b-slide-active { opacity: 1; }

.g28b-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.g28b-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.g28b-dot-active { background: var(--g28b-gold); }

/* Container */
.g28b-container {
  width: 100%;
  padding: 0 12px;
  margin: 0 auto;
}

/* Section */
.g28b-section {
  padding: 16px 0;
}

.g28b-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g28b-gold);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--g28b-accent);
}

.g28b-section-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--g28b-text);
  margin: 12px 0 8px;
}

/* Game grid */
.g28b-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.g28b-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.g28b-game-item:hover { transform: scale(1.05); }

.g28b-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--g28b-radius);
  object-fit: cover;
  margin-bottom: 4px;
}

.g28b-game-name {
  font-size: 1.1rem;
  color: var(--g28b-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Card */
.g28b-card {
  background: var(--g28b-bg-card);
  border-radius: var(--g28b-radius-lg);
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid var(--g28b-border);
}

.g28b-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--g28b-gold);
  margin-bottom: 8px;
}

.g28b-card p {
  color: var(--g28b-text-muted);
  font-size: 1.3rem;
  line-height: 1.6;
}

/* Promo link styles */
.g28b-promo-link {
  display: inline-block;
  color: var(--g28b-gold);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}

.g28b-promo-link:hover {
  color: var(--g28b-accent-light);
  text-decoration: underline;
}

.g28b-promo-btn {
  display: inline-block;
  background: var(--g28b-accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--g28b-radius);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: background 0.2s;
}

.g28b-promo-btn:hover {
  background: var(--g28b-accent-light);
  text-decoration: none;
  color: #fff;
}

.g28b-promo-btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--g28b-gold);
  padding: 9px 18px;
  border-radius: var(--g28b-radius);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--g28b-gold);
  text-align: center;
  transition: all 0.2s;
}

.g28b-promo-btn-outline:hover {
  background: var(--g28b-gold);
  color: var(--g28b-bg);
  text-decoration: none;
}

/* Footer */
.g28b-footer {
  background: var(--g28b-bg-alt);
  padding: 20px 12px;
  border-top: 1px solid var(--g28b-border);
  text-align: center;
}

.g28b-footer-brand {
  font-size: 1.3rem;
  color: var(--g28b-text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.g28b-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.g28b-footer-links a {
  color: var(--g28b-gold);
  font-size: 1.2rem;
  padding: 4px 8px;
  border: 1px solid var(--g28b-border);
  border-radius: 4px;
  transition: all 0.2s;
}

.g28b-footer-links a:hover {
  background: var(--g28b-gold);
  color: var(--g28b-bg);
  text-decoration: none;
}

.g28b-copyright {
  font-size: 1.1rem;
  color: var(--g28b-text-muted);
  margin-top: 10px;
}

/* Bottom navigation */
.g28b-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--g28b-bottom-h);
  background: var(--g28b-bg-alt);
  border-top: 1px solid var(--g28b-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

.g28b-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  background: none;
  border: none;
  color: var(--g28b-text-muted);
  cursor: pointer;
  transition: color 0.2s, transform 0.15s;
  padding: 4px;
  text-decoration: none;
}

.g28b-bottom-btn:hover,
.g28b-bottom-btn:focus {
  color: var(--g28b-gold);
  transform: scale(1.08);
}

.g28b-bottom-btn .g28b-bnav-icon {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 2px;
}

.g28b-bottom-btn .g28b-bnav-label {
  font-size: 1rem;
  line-height: 1;
}

.g28b-bottom-active {
  color: var(--g28b-gold) !important;
}

/* Content text */
.g28b-content-text {
  color: var(--g28b-text-muted);
  font-size: 1.3rem;
  line-height: 1.7;
  margin-bottom: 10px;
}

.g28b-content-text strong {
  color: var(--g28b-text);
}

.g28b-list {
  list-style: none;
  padding: 0;
}

.g28b-list li {
  padding: 6px 0 6px 16px;
  position: relative;
  color: var(--g28b-text-muted);
  font-size: 1.3rem;
  line-height: 1.5;
}

.g28b-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  background: var(--g28b-gold);
  border-radius: 50%;
}

/* FAQ */
.g28b-faq-item {
  margin-bottom: 10px;
}

.g28b-faq-q {
  font-weight: 700;
  color: var(--g28b-gold);
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.g28b-faq-a {
  color: var(--g28b-text-muted);
  font-size: 1.2rem;
  line-height: 1.5;
}

/* Winner ticker */
.g28b-winner-ticker {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: none;
}

.g28b-winner-ticker::-webkit-scrollbar { display: none; }

.g28b-winner-item {
  flex-shrink: 0;
  background: var(--g28b-bg-card);
  border: 1px solid var(--g28b-border);
  border-radius: var(--g28b-radius);
  padding: 8px 12px;
  text-align: center;
  min-width: 120px;
}

.g28b-winner-name {
  font-size: 1.1rem;
  color: var(--g28b-text-muted);
}

.g28b-winner-amount {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--g28b-success);
}

/* Payment icons row */
.g28b-payment-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 0;
}

.g28b-payment-item {
  background: var(--g28b-bg-card);
  border: 1px solid var(--g28b-border);
  border-radius: var(--g28b-radius);
  padding: 8px 14px;
  font-size: 1.2rem;
  color: var(--g28b-text-muted);
}

/* Testimonial */
.g28b-testimonial {
  background: var(--g28b-bg-card);
  border: 1px solid var(--g28b-border);
  border-radius: var(--g28b-radius);
  padding: 12px;
  margin-bottom: 10px;
}

.g28b-testimonial-text {
  font-size: 1.2rem;
  color: var(--g28b-text-muted);
  font-style: italic;
  line-height: 1.5;
}

.g28b-testimonial-author {
  font-size: 1.1rem;
  color: var(--g28b-gold);
  margin-top: 6px;
  font-weight: 600;
}

/* App download CTA */
.g28b-app-cta {
  background: linear-gradient(135deg, var(--g28b-accent), var(--g28b-gold));
  border-radius: var(--g28b-radius-lg);
  padding: 16px;
  text-align: center;
  margin: 12px 0;
}

.g28b-app-cta h3 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 6px;
}

.g28b-app-cta p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 10px;
}

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

@media (max-width: 768px) {
  .g28b-main {
    padding-bottom: calc(var(--g28b-bottom-h) + 16px);
  }
}
