/**
 * ac365 - Main Stylesheet
 * Prefix: s33a-
 * All classes use s33a- prefix for namespace isolation
 * Color palette: #FFCCCB #E0E0E0 #F8F8FF #708090 #1C2833 #FF9500
 */

:root {
  --s33a-primary: #FF9500;
  --s33a-secondary: #708090;
  --s33a-bg: #1C2833;
  --s33a-bg-light: #2C3E50;
  --s33a-bg-card: #34495E;
  --s33a-text: #F8F8FF;
  --s33a-text-muted: #E0E0E0;
  --s33a-accent: #FFCCCB;
  --s33a-border: #708090;
  --s33a-success: #2ECC71;
  --s33a-gold: #F1C40F;
  --s33a-radius: 8px;
  --s33a-radius-lg: 12px;
  --s33a-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --s33a-header-h: 56px;
  --s33a-bnav-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', 'Noto Sans Bengali', Tahoma, sans-serif;
  background: var(--s33a-bg);
  color: var(--s33a-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* === HEADER === */
.s33a-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--s33a-header-h);
  background: linear-gradient(135deg, #1C2833 0%, #2C3E50 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
  border-bottom: 2px solid var(--s33a-primary);
}

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

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

.s33a-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--s33a-primary);
  letter-spacing: 1px;
}

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

.s33a-btn-reg {
  background: var(--s33a-primary);
  color: var(--s33a-bg);
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: var(--s33a-radius);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s;
}

.s33a-btn-log {
  background: transparent;
  color: var(--s33a-primary);
  border: 1.5px solid var(--s33a-primary);
  padding: 0.45rem 1rem;
  border-radius: var(--s33a-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s;
}

.s33a-btn-reg:active, .s33a-btn-log:active { transform: scale(0.95); }

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

/* === MOBILE MENU === */
.s33a-menu-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
}

.s33a-mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 75%;
  max-width: 280px;
  height: 100%;
  background: var(--s33a-bg-light);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.s33a-mobile-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--s33a-primary);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--s33a-border);
}

.s33a-mobile-menu a {
  display: block;
  padding: 1rem 0;
  color: var(--s33a-text);
  text-decoration: none;
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(112,128,144,0.3);
  transition: color 0.2s;
}

.s33a-mobile-menu a:hover { color: var(--s33a-primary); }

/* === CAROUSEL === */
.s33a-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: var(--s33a-header-h);
  aspect-ratio: 16/9;
}

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

.s33a-slide-active { opacity: 1; z-index: 1; }

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

.s33a-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.s33a-carousel-prev { left: 8px; }
.s33a-carousel-next { right: 8px; }

/* === MAIN CONTENT === */
.s33a-main {
  padding: 1rem;
  padding-top: 0.5rem;
}

.s33a-section {
  margin-bottom: 2rem;
}

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

/* === GAME GRID === */
.s33a-cat-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--s33a-accent);
  margin: 1.2rem 0 0.8rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--s33a-primary);
}

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

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

.s33a-game-item:active { transform: scale(0.93); }

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

.s33a-game-item span {
  display: block;
  font-size: 1rem;
  color: var(--s33a-text-muted);
  margin-top: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === CARDS === */
.s33a-card {
  background: var(--s33a-bg-card);
  border-radius: var(--s33a-radius-lg);
  padding: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var(--s33a-shadow);
}

.s33a-card h3 {
  font-size: 1.4rem;
  color: var(--s33a-primary);
  margin-bottom: 0.6rem;
}

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

/* === CTA BUTTON === */
.s33a-cta {
  display: inline-block;
  background: linear-gradient(135deg, #FF9500, #FFB347);
  color: var(--s33a-bg);
  font-weight: 700;
  font-size: 1.3rem;
  padding: 0.7rem 1.8rem;
  border-radius: var(--s33a-radius);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s;
}

.s33a-cta:active { transform: scale(0.95); }

.s33a-promo-link {
  color: var(--s33a-primary);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

/* === FOOTER === */
.s33a-footer {
  background: var(--s33a-bg-light);
  padding: 2rem 1rem 3rem;
  border-top: 2px solid var(--s33a-primary);
}

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

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

.s33a-footer-links a {
  color: var(--s33a-text-muted);
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.3rem 0.6rem;
  background: var(--s33a-bg-card);
  border-radius: 4px;
  transition: color 0.2s;
}

.s33a-footer-links a:hover { color: var(--s33a-primary); }

.s33a-footer-copy {
  color: var(--s33a-border);
  font-size: 1.1rem;
  text-align: center;
  margin-top: 1rem;
}

/* === BOTTOM NAV === */
.s33a-bnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--s33a-bnav-h);
  background: linear-gradient(180deg, #2C3E50 0%, #1C2833 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 2px solid var(--s33a-primary);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.4);
}

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

.s33a-bnav-btn:active { transform: scale(0.9); }

.s33a-bnav-btn.s33a-bnav-active { color: var(--s33a-primary); }

.s33a-bnav-btn i, .s33a-bnav-btn span.material-symbols-outlined,
.s33a-bnav-btn ion-icon, .s33a-bnav-btn bi {
  font-size: 22px;
}

.s33a-bnav-btn span.s33a-bnav-label {
  font-size: 1rem;
  margin-top: 0.2rem;
}

/* === WINNERS TICKER === */
.s33a-ticker {
  background: var(--s33a-bg-card);
  border-radius: var(--s33a-radius);
  padding: 0.6rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow: hidden;
}

.s33a-ticker-icon { color: var(--s33a-gold); font-size: 1.6rem; }

.s33a-ticker-text {
  font-size: 1.1rem;
  color: var(--s33a-text-muted);
  white-space: nowrap;
  animation: s33a-scroll 12s linear infinite;
}

@keyframes s33a-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* === TESTIMONIAL === */
.s33a-testi {
  background: var(--s33a-bg-card);
  border-radius: var(--s33a-radius-lg);
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--s33a-primary);
}

.s33a-testi-name {
  font-weight: 600;
  color: var(--s33a-primary);
  font-size: 1.2rem;
}

.s33a-testi-text {
  color: var(--s33a-text-muted);
  font-size: 1.15rem;
  margin-top: 0.3rem;
}

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

.s33a-pay-item {
  background: var(--s33a-bg-card);
  padding: 0.5rem 1rem;
  border-radius: var(--s33a-radius);
  font-size: 1.1rem;
  color: var(--s33a-text-muted);
  border: 1px solid var(--s33a-border);
}

/* === FEATURE LIST === */
.s33a-feat-list {
  list-style: none;
}

.s33a-feat-list li {
  padding: 0.6rem 0;
  padding-left: 1.8rem;
  position: relative;
  color: var(--s33a-text-muted);
  font-size: 1.2rem;
  border-bottom: 1px solid rgba(112,128,144,0.2);
}

.s33a-feat-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 8px;
  height: 8px;
  background: var(--s33a-primary);
  border-radius: 50%;
}

/* === RESPONSIVE === */
@media (min-width: 769px) {
  .s33a-bnav { display: none; }
  body { max-width: 430px; }
}

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

/* === UTILITIES === */
.s33a-text-center { text-align: center; }
.s33a-mb-1 { margin-bottom: 1rem; }
.s33a-mb-2 { margin-bottom: 2rem; }
.s33a-mt-1 { margin-top: 1rem; }
.s33a-hidden { display: none; }
.s33a-tag {
  display: inline-block;
  background: var(--s33a-primary);
  color: var(--s33a-bg);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 1rem;
  font-weight: 600;
}
.s33a-rtp-bar {
  height: 6px;
  background: var(--s33a-bg-card);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.3rem;
}
.s33a-rtp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--s33a-primary), var(--s33a-success));
  border-radius: 3px;
}
