/**
 * sakla game - Main Stylesheet
 * Class prefix: g246-
 * Palette: #006400 | #B8860B | #CD853F | #273746
 */

:root {
  --g246-primary: #006400;
  --g246-gold: #B8860B;
  --g246-accent: #CD853F;
  --g246-dark: #273746;
  --g246-bg: #0a0f0a;
  --g246-surface: #111a11;
  --g246-card: #162016;
  --g246-text: #e8e0d4;
  --g246-text-muted: #a09888;
  --g246-border: #2a3a2a;
  --g246-gradient: linear-gradient(135deg, #006400, #B8860B);
  --g246-radius: 8px;
  --g246-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

*, *::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(--g246-bg);
  color: var(--g246-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
.g246-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(180deg, #0d1a0d 0%, rgba(10,15,10,0.95) 100%);
  border-bottom: 1px solid var(--g246-border);
  backdrop-filter: blur(10px);
  padding: 0 1rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.g246-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.g246-logo-area img {
  width: 28px; height: 28px;
  border-radius: 4px;
}

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

.g246-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.g246-btn-register, .g246-btn-login {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.g246-btn-register {
  background: var(--g246-gradient);
  color: #fff;
}

.g246-btn-register:hover { transform: scale(1.05); }

.g246-btn-login {
  background: transparent;
  color: var(--g246-gold);
  border: 1px solid var(--g246-gold);
}

.g246-btn-login:hover { background: rgba(184,134,11,0.1); }

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

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

.g246-mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 260px;
  background: var(--g246-surface);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 1.5rem 0;
  overflow-y: auto;
}

.g246-menu-header {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid var(--g246-border);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}

.g246-menu-header img { width: 32px; height: 32px; border-radius: 6px; }
.g246-menu-header span { font-size: 1.6rem; font-weight: 700; color: var(--g246-gold); }

.g246-menu-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none; border: none;
  color: var(--g246-text-muted);
  font-size: 2rem; cursor: pointer;
}

.g246-menu-section { padding: 0.5rem 0; }

.g246-menu-section-title {
  padding: 0.8rem 1.5rem 0.4rem;
  font-size: 1.1rem;
  color: var(--g246-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.g246-menu-link {
  display: block;
  padding: 0.9rem 1.5rem;
  color: var(--g246-text);
  text-decoration: none;
  font-size: 1.4rem;
  transition: background 0.15s;
  border-left: 3px solid transparent;
}

.g246-menu-link:hover, .g246-menu-link:focus {
  background: rgba(0,100,0,0.15);
  border-left-color: var(--g246-gold);
  color: var(--g246-gold);
}

/* ===== MAIN CONTENT ===== */
.g246-main {
  padding-top: 52px;
  min-height: 100vh;
}

@media (max-width: 768px) {
  .g246-main { padding-bottom: 80px; }
}

/* ===== CAROUSEL ===== */
.g246-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 240px;
}

.g246-slide {
  display: none;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.g246-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g246-carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.g246-carousel-btn {
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.2s;
}

.g246-carousel-btn:hover { background: rgba(0,100,0,0.7); }

.g246-dots {
  position: absolute;
  bottom: 8px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 6px;
}

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

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

/* ===== SECTIONS ===== */
.g246-section {
  padding: 2rem 1.2rem;
}

.g246-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g246-gold);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--g246-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.g246-section-title i, .g246-section-title .material-icons {
  font-size: 2rem;
  color: var(--g246-gold);
}

/* ===== GAME GRID ===== */
.g246-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--g246-accent);
  margin: 1.5rem 0 0.8rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--g246-gold);
}

.g246-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.g246-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  background: var(--g246-card);
  border-radius: var(--g246-radius);
  padding: 0.4rem;
}

.g246-game-item:hover { transform: translateY(-2px); }

.g246-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
}

.g246-game-name {
  font-size: 1rem;
  color: var(--g246-text);
  margin-top: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

/* ===== CONTENT CARDS ===== */
.g246-card {
  background: var(--g246-card);
  border: 1px solid var(--g246-border);
  border-radius: var(--g246-radius);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
}

.g246-card h3 {
  font-size: 1.5rem;
  color: var(--g246-gold);
  margin-bottom: 0.8rem;
}

.g246-card p {
  color: var(--g246-text);
  line-height: 1.6;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

/* ===== PROMO BUTTON ===== */
.g246-promo-btn {
  display: inline-block;
  background: var(--g246-gradient);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 24px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: all 0.2s;
  text-decoration: none;
}

.g246-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,100,0,0.4);
}

.g246-promo-link {
  color: var(--g246-gold);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.g246-promo-link:hover { color: var(--g246-accent); }

/* ===== FOOTER ===== */
.g246-footer {
  background: var(--g246-surface);
  border-top: 1px solid var(--g246-border);
  padding: 2rem 1.2rem 1rem;
}

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

.g246-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.g246-footer-link {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--g246-card);
  border: 1px solid var(--g246-border);
  border-radius: 16px;
  color: var(--g246-text);
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.2s;
}

.g246-footer-link:hover {
  border-color: var(--g246-gold);
  color: var(--g246-gold);
}

.g246-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.g246-footer-promo-btn {
  padding: 0.5rem 1.2rem;
  background: var(--g246-gradient);
  color: #fff;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.g246-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: var(--g246-text-muted);
  padding-top: 0.8rem;
  border-top: 1px solid var(--g246-border);
}

/* ===== BOTTOM NAV ===== */
.g246-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  z-index: 1000;
  height: 60px;
  background: linear-gradient(180deg, #162016 0%, #0d150d 100%);
  border-top: 1px solid var(--g246-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.3rem;
}

.g246-bnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: var(--g246-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.3rem;
  border-radius: 8px;
  position: relative;
}

.g246-bnav-btn .material-icons,
.g246-bnav-btn i,
.g246-bnav-btn ion-icon,
.g246-bnav-btn .bi {
  font-size: 22px;
  transition: all 0.2s;
}

.g246-bnav-btn span {
  font-size: 1rem;
  margin-top: 2px;
  white-space: nowrap;
}

.g246-bnav-btn:hover,
.g246-bnav-active {
  color: var(--g246-gold);
}

.g246-bnav-active::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 2px;
  background: var(--g246-gold);
  border-radius: 1px;
}

@media (min-width: 769px) {
  .g246-bottom-nav { display: none; }
}

/* ===== TESTIMONIALS ===== */
.g246-testimonial {
  background: var(--g246-card);
  border: 1px solid var(--g246-border);
  border-radius: var(--g246-radius);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
}

.g246-testimonial-name {
  font-weight: 600;
  color: var(--g246-gold);
  font-size: 1.3rem;
}

.g246-testimonial-text {
  color: var(--g246-text);
  font-size: 1.2rem;
  margin-top: 0.4rem;
  line-height: 1.5;
}

/* ===== WINNERS ===== */
.g246-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--g246-border);
  font-size: 1.2rem;
}

.g246-winner-name { color: var(--g246-accent); font-weight: 600; }
.g246-winner-game { color: var(--g246-text-muted); }
.g246-winner-amount { color: var(--g246-gold); font-weight: 700; }

/* ===== PAYMENT ===== */
.g246-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.g246-payment-item {
  background: var(--g246-card);
  border: 1px solid var(--g246-border);
  border-radius: var(--g246-radius);
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  color: var(--g246-text);
  text-align: center;
}

/* ===== RTP TABLE ===== */
.g246-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}

.g246-rtp-table th {
  background: var(--g246-primary);
  color: #fff;
  padding: 0.6rem;
  text-align: left;
  font-weight: 600;
}

.g246-rtp-table td {
  padding: 0.6rem;
  border-bottom: 1px solid var(--g246-border);
  color: var(--g246-text);
}

.g246-rtp-table tr:nth-child(even) td {
  background: rgba(0,100,0,0.05);
}

/* ===== FEATURES GRID ===== */
.g246-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.g246-feature-item {
  background: var(--g246-card);
  border: 1px solid var(--g246-border);
  border-radius: var(--g246-radius);
  padding: 1rem;
  text-align: center;
}

.g246-feature-item i,
.g246-feature-item .material-icons {
  font-size: 2.4rem;
  color: var(--g246-gold);
  margin-bottom: 0.4rem;
}

.g246-feature-item h4 {
  font-size: 1.2rem;
  color: var(--g246-accent);
  margin-bottom: 0.3rem;
}

.g246-feature-item p {
  font-size: 1.1rem;
  color: var(--g246-text-muted);
  line-height: 1.4;
}

/* ===== FAQ ===== */
.g246-faq-item {
  margin-bottom: 0.8rem;
}

.g246-faq-q {
  font-weight: 600;
  color: var(--g246-gold);
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.g246-faq-a {
  color: var(--g246-text);
  font-size: 1.2rem;
  line-height: 1.5;
  padding-left: 1rem;
  border-left: 2px solid var(--g246-border);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 320px) {
  .g246-game-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 769px) {
  body { max-width: 480px; }
}

/* ===== UTILITY ===== */
.g246-text-center { text-align: center; }
.g246-mt-1 { margin-top: 1rem; }
.g246-mb-1 { margin-bottom: 1rem; }
.g246-hidden { display: none; }
