/**
 * 1333 com - Theme Stylesheet
 * Class prefix: veb6-
 * Colors: #0097A7 (primary), #141414 (background)
 * Mobile-first responsive design
 */

/* CSS Variables */
:root {
  --veb6-primary: #0097A7;
  --veb6-primary-dark: #007B8A;
  --veb6-primary-light: #00BCD4;
  --veb6-bg: #141414;
  --veb6-bg-light: #1E1E1E;
  --veb6-bg-card: #1A1A2E;
  --veb6-text: #E8E8E8;
  --veb6-text-muted: #9E9E9E;
  --veb6-accent: #FF6B35;
  --veb6-success: #4CAF50;
  --veb6-gold: #FFD700;
  --veb6-border: #2A2A3E;
  --veb6-shadow: rgba(0, 151, 167, 0.15);
  --veb6-radius: 8px;
  --veb6-radius-lg: 14px;
}

/* Reset & Base */
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--veb6-bg);
  color: var(--veb6-text);
  font-family: 'Segoe UI', 'Noto Sans Bengali', Tahoma, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  overflow-x: hidden;
}

a { color: var(--veb6-primary); text-decoration: none; }
a:hover { color: var(--veb6-primary-light); }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.veb6-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; box-sizing: border-box; }
.veb6-wrapper { padding: 1rem 0; }
.veb6-grid { display: grid; gap: 1rem; }

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

.veb6-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.veb6-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.veb6-site-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--veb6-primary);
  letter-spacing: 0.5px;
}

.veb6-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.veb6-header-btn {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 32px;
}

.veb6-btn-register {
  background: var(--veb6-primary);
  color: #fff;
}

.veb6-btn-register:hover {
  background: var(--veb6-primary-dark);
}

.veb6-btn-login {
  background: transparent;
  color: var(--veb6-primary);
  border: 1.5px solid var(--veb6-primary);
}

.veb6-btn-login:hover {
  background: rgba(0, 151, 167, 0.1);
}

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

/* Mobile Menu */
.veb6-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--veb6-bg-light);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 1.5rem;
  overflow-y: auto;
  box-sizing: border-box;
}

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

.veb6-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.veb6-overlay-active {
  opacity: 1;
  pointer-events: all;
}

.veb6-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--veb6-border);
}

.veb6-menu-close {
  background: none;
  border: none;
  color: var(--veb6-text);
  font-size: 2rem;
  cursor: pointer;
}

.veb6-menu-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.veb6-menu-links li {
  margin-bottom: 0.3rem;
}

.veb6-menu-links a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 0.8rem;
  color: var(--veb6-text);
  font-size: 1.4rem;
  border-radius: var(--veb6-radius);
  transition: background 0.2s;
}

.veb6-menu-links a:hover {
  background: rgba(0, 151, 167, 0.1);
  color: var(--veb6-primary);
}

/* Carousel */
.veb6-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--veb6-radius-lg);
  margin-top: 56px;
}

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

.veb6-slide-active { display: block; }

.veb6-slide img {
  width: 100%;
  height: auto;
  border-radius: var(--veb6-radius-lg);
}

.veb6-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 0;
}

.veb6-slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--veb6-border);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.veb6-dot-active { background: var(--veb6-primary); }

/* Section Titles */
.veb6-section {
  margin: 1.5rem 0;
}

.veb6-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--veb6-text);
  margin: 0 0 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--veb6-primary);
}

.veb6-section-subtitle {
  font-size: 1.3rem;
  color: var(--veb6-text-muted);
  margin: 0 0 1rem 0;
}

/* Game Grid */
.veb6-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

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

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

.veb6-game-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--veb6-radius);
  object-fit: cover;
  border: 1px solid var(--veb6-border);
}

.veb6-game-name {
  font-size: 1.1rem;
  color: var(--veb6-text);
  margin-top: 0.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Buttons */
.veb6-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--veb6-radius);
  font-size: 1.4rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
}

.veb6-btn-primary {
  background: linear-gradient(135deg, var(--veb6-primary), var(--veb6-primary-dark));
  color: #fff;
}

.veb6-btn-primary:hover {
  background: linear-gradient(135deg, var(--veb6-primary-light), var(--veb6-primary));
}

.veb6-btn-accent {
  background: linear-gradient(135deg, var(--veb6-accent), #E55A2B);
  color: #fff;
}

.veb6-btn-gold {
  background: linear-gradient(135deg, var(--veb6-gold), #FFA000);
  color: #141414;
}

.veb6-btn-block { width: 100%; }

.veb6-touch-active { opacity: 0.8; transform: scale(0.97); }

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

.veb6-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--veb6-primary);
  margin: 0 0 0.8rem 0;
}

.veb6-card p {
  margin: 0 0 0.6rem 0;
  color: var(--veb6-text-muted);
  font-size: 1.3rem;
  line-height: 2rem;
}

/* Promo Link Styles */
.veb6-promo-link {
  color: var(--veb6-primary);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s;
}

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

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

.veb6-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  color: var(--veb6-text-muted);
  cursor: pointer;
  transition: all 0.25s;
  font-size: 1rem;
  gap: 0.2rem;
}

.veb6-bottom-nav-item .veb6-nav-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.veb6-bottom-nav-item .veb6-nav-label {
  font-size: 1rem;
  line-height: 1.2;
}

.veb6-bottom-nav-item:hover,
.veb6-nav-active {
  color: var(--veb6-primary);
}

.veb6-nav-active .veb6-nav-icon {
  transform: scale(1.1);
  text-shadow: 0 0 8px var(--veb6-shadow);
}

/* Footer */
.veb6-footer {
  background: var(--veb6-bg-light);
  border-top: 1px solid var(--veb6-border);
  padding: 2rem 1.2rem 8rem;
  text-align: center;
}

.veb6-footer-brand {
  font-size: 1.4rem;
  color: var(--veb6-text-muted);
  margin-bottom: 1.5rem;
  line-height: 2rem;
}

.veb6-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.veb6-footer-link {
  padding: 0.5rem 1rem;
  background: rgba(0, 151, 167, 0.1);
  border: 1px solid var(--veb6-border);
  border-radius: var(--veb6-radius);
  color: var(--veb6-primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
}

.veb6-footer-link:hover {
  background: rgba(0, 151, 167, 0.2);
  border-color: var(--veb6-primary);
}

.veb6-footer-sitemap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 1.5rem;
  margin-bottom: 1.5rem;
}

.veb6-footer-sitemap a {
  color: var(--veb6-text-muted);
  font-size: 1.2rem;
  transition: color 0.2s;
}

.veb6-footer-sitemap a:hover { color: var(--veb6-primary); }

.veb6-copyright {
  color: var(--veb6-text-muted);
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* Content Typography */
.veb6-content h2 {
  font-size: 1.6rem;
  color: var(--veb6-primary);
  margin: 1.5rem 0 0.8rem;
  font-weight: 700;
}

.veb6-content h3 {
  font-size: 1.4rem;
  color: var(--veb6-text);
  margin: 1.2rem 0 0.6rem;
  font-weight: 600;
}

.veb6-content p {
  color: var(--veb6-text-muted);
  font-size: 1.3rem;
  line-height: 2rem;
  margin: 0 0 0.8rem;
}

.veb6-content ul {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

.veb6-content li {
  color: var(--veb6-text-muted);
  font-size: 1.3rem;
  line-height: 2rem;
  margin-bottom: 0.3rem;
}

/* Utilities */
.veb6-text-center { text-align: center; }
.veb6-text-gold { color: var(--veb6-gold); }
.veb6-text-accent { color: var(--veb6-accent); }
.veb6-text-primary { color: var(--veb6-primary); }
.veb6-mt-1 { margin-top: 1rem; }
.veb6-mt-2 { margin-top: 2rem; }
.veb6-mb-1 { margin-bottom: 1rem; }
.veb6-mb-2 { margin-bottom: 2rem; }
.veb6-p-1 { padding: 1rem; }

/* Highlight badge */
.veb6-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--veb6-accent);
  color: #fff;
  font-size: 1rem;
  border-radius: 4px;
  font-weight: 600;
}

/* Winners table */
.veb6-winners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.veb6-winner-item {
  background: var(--veb6-bg-card);
  border: 1px solid var(--veb6-border);
  border-radius: var(--veb6-radius);
  padding: 0.8rem;
  text-align: center;
}

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

.veb6-winner-game {
  color: var(--veb6-text-muted);
  font-size: 1.1rem;
  margin-top: 0.2rem;
}

/* Payment icons row */
.veb6-payment-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}

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

/* Responsive: mobile bottom padding */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

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