/**
 * kemei2299.click - Core Stylesheet
 * All classes use s31c- prefix for namespace isolation
 * Color Palette: #2E4057 | #F0F8FF | #708090 | #1E90FF | #0000CD
 * Mobile-first design, max-width 430px
 */

/* CSS Variables */
:root {
  --s31c-primary: #1E90FF;
  --s31c-primary-dark: #0000CD;
  --s31c-bg-dark: #2E4057;
  --s31c-bg-card: #1a2d42;
  --s31c-bg-section: #243b53;
  --s31c-text-light: #F0F8FF;
  --s31c-text-muted: #708090;
  --s31c-text-accent: #1E90FF;
  --s31c-gold: #FFD700;
  --s31c-green: #00C853;
  --s31c-red: #FF4444;
  --s31c-border: rgba(112, 128, 144, 0.3);
  --s31c-radius: 8px;
  --s31c-radius-lg: 12px;
  --s31c-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  font-size: 62.5%;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans Bengali', sans-serif;
  background: var(--s31c-bg-dark);
  color: var(--s31c-text-light);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--s31c-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--s31c-gold); }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.s31c-container { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.s31c-wrapper { width: 100%; position: relative; }

/* ===== HEADER ===== */
.s31c-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--s31c-bg-dark), #1a2d42);
  border-bottom: 1px solid var(--s31c-border);
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem;
}
.s31c-header-left { display: flex; align-items: center; gap: 8px; }
.s31c-logo { width: 28px; height: 28px; border-radius: 6px; }
.s31c-site-name { font-size: 1.6rem; font-weight: 700; color: var(--s31c-gold); white-space: nowrap; }
.s31c-header-right { display: flex; align-items: center; gap: 6px; }
.s31c-btn-register {
  background: linear-gradient(135deg, var(--s31c-primary), var(--s31c-primary-dark));
  color: #fff; border: none; padding: 6px 14px; border-radius: 20px;
  font-size: 1.2rem; font-weight: 700; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.s31c-btn-register:hover { transform: scale(1.05); box-shadow: 0 0 12px rgba(30,144,255,0.5); }
.s31c-btn-login {
  background: transparent; border: 1px solid var(--s31c-primary);
  color: var(--s31c-primary); padding: 5px 12px; border-radius: 20px;
  font-size: 1.2rem; font-weight: 600; cursor: pointer;
  transition: background .15s;
}
.s31c-btn-login:hover { background: rgba(30,144,255,0.15); }
.s31c-menu-btn {
  background: none; border: none; color: var(--s31c-text-light);
  font-size: 2.2rem; cursor: pointer; padding: 4px; line-height: 1;
}

/* ===== MOBILE MENU ===== */
.s31c-menu-overlay {
  display: none; position: fixed; top: 56px; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 9998;
}
.s31c-overlay-active { display: block; }
.s31c-mobile-menu {
  position: fixed; top: 56px; right: -280px; width: 280px; height: calc(100vh - 56px);
  background: var(--s31c-bg-card); z-index: 9999;
  transition: right .3s ease; overflow-y: auto;
  border-left: 1px solid var(--s31c-border);
}
.s31c-menu-active { right: 0; }
.s31c-menu-list { list-style: none; padding: 1rem 0; }
.s31c-menu-list li a {
  display: flex; align-items: center; gap: 10px;
  padding: 1rem 1.5rem; color: var(--s31c-text-light);
  font-size: 1.4rem; border-bottom: 1px solid var(--s31c-border);
  transition: background .2s;
}
.s31c-menu-list li a:hover { background: var(--s31c-bg-section); color: var(--s31c-primary); }
.s31c-menu-list li a .material-icons { font-size: 2rem; color: var(--s31c-primary); }

/* ===== CAROUSEL ===== */
.s31c-carousel { position: relative; width: 100%; overflow: hidden; border-radius: var(--s31c-radius-lg); margin-top: 60px; }
.s31c-slide {
  display: none; width: 100%; cursor: pointer;
  aspect-ratio: 16/7; object-fit: cover; border-radius: var(--s31c-radius-lg);
}
.s31c-slide-active { display: block; }
.s31c-dots { display: flex; justify-content: center; gap: 8px; padding: 8px 0; }
.s31c-dot {
  width: 10px; height: 10px; border-radius: 50%; border: none;
  background: var(--s31c-text-muted); cursor: pointer; transition: background .2s;
}
.s31c-dot-active { background: var(--s31c-primary); }

/* ===== SECTION TITLES ===== */
.s31c-section { padding: 1.5rem 0; }
.s31c-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--s31c-text-light);
  margin-bottom: 1rem; padding-left: 1rem;
  border-left: 3px solid var(--s31c-primary);
}
.s31c-section-title span { color: var(--s31c-gold); }

/* ===== GAME GRID ===== */
.s31c-cat-title {
  font-size: 1.5rem; font-weight: 600; color: var(--s31c-gold);
  margin: 1.2rem 0 0.8rem; padding-left: 0.5rem;
}
.s31c-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; padding: 0 0.5rem;
}
.s31c-game-card {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; transition: transform .15s;
  background: var(--s31c-bg-card); border-radius: var(--s31c-radius);
  padding: 6px; overflow: hidden;
}
.s31c-game-card:hover { transform: scale(1.05); }
.s31c-game-img {
  width: 100%; aspect-ratio: 1/1; border-radius: 6px;
  object-fit: cover; margin-bottom: 4px;
}
.s31c-game-name {
  font-size: 1rem; color: var(--s31c-text-light); text-align: center;
  line-height: 1.2; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; max-width: 100%;
}

/* ===== CONTENT CARDS ===== */
.s31c-card {
  background: var(--s31c-bg-card); border-radius: var(--s31c-radius-lg);
  padding: 1.5rem; margin-bottom: 1rem; border: 1px solid var(--s31c-border);
}
.s31c-card h2 { font-size: 1.6rem; color: var(--s31c-gold); margin-bottom: 0.8rem; }
.s31c-card h3 { font-size: 1.4rem; color: var(--s31c-primary); margin-bottom: 0.6rem; }
.s31c-card p { color: var(--s31c-text-light); margin-bottom: 0.6rem; font-size: 1.3rem; line-height: 1.6; }
.s31c-card ul { padding-left: 1.5rem; margin-bottom: 0.6rem; }
.s31c-card li { color: var(--s31c-text-light); font-size: 1.3rem; margin-bottom: 0.4rem; line-height: 1.5; }

/* ===== PROMO BUTTONS ===== */
.s31c-btn-promo {
  display: inline-block;
  background: linear-gradient(135deg, var(--s31c-primary), var(--s31c-primary-dark));
  color: #fff; padding: 10px 24px; border-radius: 25px;
  font-size: 1.3rem; font-weight: 700; cursor: pointer;
  border: none; transition: transform .15s, box-shadow .15s;
  text-align: center; margin: 0.5rem 0;
}
.s31c-btn-promo:hover { transform: scale(1.05); box-shadow: 0 4px 15px rgba(30,144,255,0.4); }
.s31c-btn-gold {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #1a1a1a; font-weight: 800;
}
.s31c-btn-gold:hover { box-shadow: 0 4px 15px rgba(255,215,0,0.4); }
.s31c-promo-link {
  color: var(--s31c-primary); font-weight: 700; cursor: pointer;
  border-bottom: 1px dashed var(--s31c-primary);
}
.s31c-promo-link:hover { color: var(--s31c-gold); }

/* ===== RTP BAR ===== */
.s31c-rtp-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.s31c-rtp-name { width: 40%; font-size: 1.1rem; color: var(--s31c-text-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s31c-rtp-bar-bg { flex: 1; height: 14px; background: var(--s31c-bg-section); border-radius: 7px; overflow: hidden; }
.s31c-rtp-bar-fill { height: 100%; border-radius: 7px; background: linear-gradient(90deg, var(--s31c-primary), var(--s31c-green)); transition: width .5s; }
.s31c-rtp-val { font-size: 1.1rem; font-weight: 600; color: var(--s31c-green); min-width: 36px; text-align: right; }

/* ===== WINNER TICKER ===== */
.s31c-winner-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; border-bottom: 1px solid var(--s31c-border);
}
.s31c-winner-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--s31c-bg-section); }
.s31c-winner-info { flex: 1; }
.s31c-winner-name { font-size: 1.1rem; color: var(--s31c-text-light); }
.s31c-winner-game { font-size: 1rem; color: var(--s31c-text-muted); }
.s31c-winner-amount { font-size: 1.2rem; font-weight: 700; color: var(--s31c-green); }

/* ===== FOOTER ===== */
.s31c-footer {
  background: var(--s31c-bg-card); padding: 2rem 1rem 6rem;
  border-top: 1px solid var(--s31c-border); margin-top: 2rem;
}
.s31c-footer-brand { font-size: 1.3rem; color: var(--s31c-text-muted); line-height: 1.6; margin-bottom: 1rem; }
.s31c-footer-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1rem; }
.s31c-footer-links a {
  background: var(--s31c-bg-section); color: var(--s31c-text-light);
  padding: 6px 12px; border-radius: 16px; font-size: 1.1rem;
  transition: background .2s, color .2s;
}
.s31c-footer-links a:hover { background: var(--s31c-primary); color: #fff; }
.s31c-footer-copy { font-size: 1.1rem; color: var(--s31c-text-muted); text-align: center; margin-top: 1rem; }

/* ===== BOTTOM NAV ===== */
.s31c-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 1000; height: 60px;
  background: linear-gradient(180deg, #1a2d42, #0f1c2b);
  border-top: 1px solid var(--s31c-border);
  display: flex; justify-content: space-around; align-items: center;
  padding: 0 4px;
}
.s31c-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(--s31c-text-muted); cursor: pointer; transition: color .15s, transform .1s;
  gap: 2px; padding: 4px 0;
}
.s31c-bottom-btn:hover, .s31c-bottom-btn-active { color: var(--s31c-primary); }
.s31c-bottom-btn-active .s31c-bottom-icon { color: var(--s31c-gold); }
.s31c-bottom-btn-active .s31c-bottom-label { color: var(--s31c-gold); }
.s31c-bottom-btn:active { transform: scale(0.92); }
.s31c-bottom-icon { font-size: 22px; line-height: 1; }
.s31c-bottom-label { font-size: 1rem; line-height: 1.2; }

/* ===== UTILITY ===== */
.s31c-text-center { text-align: center; }
.s31c-mt-1 { margin-top: 0.5rem; }
.s31c-mt-2 { margin-top: 1rem; }
.s31c-mb-1 { margin-bottom: 0.5rem; }
.s31c-mb-2 { margin-bottom: 1rem; }
.s31c-highlight { color: var(--s31c-gold); font-weight: 700; }
.s31c-divider { border: none; border-top: 1px solid var(--s31c-border); margin: 1rem 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}
@media (min-width: 769px) {
  .s31c-bottom-nav { display: none; }
  .s31c-menu-btn { display: none; }
  .s31c-container { max-width: 430px; }
}
