/**
 * happy end 1999 - Design Stylesheet
 * All classes use s555- prefix for namespace isolation
 * Color Palette: #ADB5BD | #AFEEEE | #00E5FF | #0F0F23
 * Mobile-first responsive design (max-width: 430px)
 */

/* === CSS Variables === */
:root {
  --s555-primary: #00E5FF;
  --s555-secondary: #AFEEEE;
  --s555-bg: #0F0F23;
  --s555-bg-light: #1a1a3e;
  --s555-bg-card: #161636;
  --s555-text: #ADB5BD;
  --s555-text-light: #e0e0e0;
  --s555-accent: #00E5FF;
  --s555-accent2: #AFEEEE;
  --s555-danger: #ff4757;
  --s555-success: #2ed573;
  --s555-warning: #ffa502;
  --s555-radius: 8px;
  --s555-radius-lg: 12px;
  --s555-shadow: 0 2px 12px rgba(0,229,255,0.15);
  --s555-transition: all 0.3s ease;
  --s555-font: 'Segoe UI', 'Noto Sans Bengali', sans-serif;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: var(--s555-font);
  background: var(--s555-bg);
  color: var(--s555-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--s555-primary); text-decoration: none; transition: var(--s555-transition); }
a:hover { color: var(--s555-accent2); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

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

/* === Header === */
.s555-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--s555-bg) 0%, var(--s555-bg-light) 100%);
  border-bottom: 1px solid rgba(0,229,255,0.15);
  backdrop-filter: blur(10px);
  height: 56px;
}
.s555-header-inner {
  max-width: 430px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem;
}
.s555-logo { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; }
.s555-logo img { width: 28px; height: 28px; border-radius: 4px; }
.s555-logo-text { font-size: 1.4rem; font-weight: 700; color: var(--s555-primary); white-space: nowrap; }
.s555-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.s555-btn-register, .s555-btn-login {
  padding: 0.5rem 1.2rem; border: none; border-radius: var(--s555-radius);
  font-size: 1.2rem; font-weight: 600; cursor: pointer; transition: var(--s555-transition);
  white-space: nowrap;
}
.s555-btn-register {
  background: linear-gradient(135deg, var(--s555-primary), #00b4d8);
  color: var(--s555-bg);
}
.s555-btn-register:hover { transform: scale(1.05); box-shadow: 0 0 12px rgba(0,229,255,0.4); }
.s555-btn-login {
  background: transparent; color: var(--s555-primary);
  border: 1px solid var(--s555-primary);
}
.s555-btn-login:hover { background: rgba(0,229,255,0.1); }
.s555-menu-btn {
  background: none; border: none; color: var(--s555-text-light);
  font-size: 2rem; cursor: pointer; padding: 0.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* === Mobile Menu === */
.s555-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 9998; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.s555-overlay-active { opacity: 1; pointer-events: auto; }
.s555-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
  background: var(--s555-bg-light); z-index: 9999;
  transition: right 0.3s ease; overflow-y: auto; padding: 2rem 1.5rem;
}
.s555-menu-active { right: 0; }
.s555-mobile-menu h3 { color: var(--s555-primary); font-size: 1.6rem; margin-bottom: 1.5rem; }
.s555-mobile-menu a {
  display: block; padding: 1rem 0; color: var(--s555-text-light);
  border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 1.4rem;
}
.s555-mobile-menu a:hover { color: var(--s555-primary); padding-left: 0.5rem; }
.s555-menu-close {
  position: absolute; top: 1rem; right: 1rem; background: none;
  border: none; color: var(--s555-text); font-size: 2rem; cursor: pointer;
}

/* === Carousel === */
.s555-carousel { position: relative; overflow: hidden; border-radius: var(--s555-radius-lg); margin-top: 0.8rem; }
.s555-slide {
  display: none; width: 100%; cursor: pointer; position: relative;
}
.s555-slide-active { display: block; }
.s555-slide img { width: 100%; height: auto; border-radius: var(--s555-radius-lg); }
.s555-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.s555-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer; transition: var(--s555-transition);
}
.s555-dot-active { background: var(--s555-primary); width: 20px; border-radius: 4px; }

/* === Section Headings === */
.s555-section { padding: 2rem 0; }
.s555-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--s555-text-light);
  margin-bottom: 1.2rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--s555-primary);
  display: flex; align-items: center; gap: 0.6rem;
}
.s555-section-title i { color: var(--s555-primary); font-size: 2rem; }

/* === Game Grid === */
.s555-game-category { margin-bottom: 2rem; }
.s555-cat-label {
  font-size: 1.5rem; font-weight: 600; color: var(--s555-accent2);
  margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem;
}
.s555-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.s555-game-item { text-align: center; cursor: pointer; transition: var(--s555-transition); }
.s555-game-item:hover { transform: translateY(-2px); }
.s555-game-item img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--s555-radius); border: 1px solid rgba(0,229,255,0.1);
  transition: var(--s555-transition);
}
.s555-game-item:hover img { border-color: var(--s555-primary); box-shadow: var(--s555-shadow); }
.s555-game-name {
  font-size: 1.1rem; color: var(--s555-text); margin-top: 0.3rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* === Content Cards === */
.s555-card {
  background: var(--s555-bg-card); border-radius: var(--s555-radius-lg);
  padding: 1.5rem; margin-bottom: 1.2rem;
  border: 1px solid rgba(0,229,255,0.08);
}
.s555-card h3 { color: var(--s555-primary); font-size: 1.5rem; margin-bottom: 0.8rem; }
.s555-card p { color: var(--s555-text); line-height: 1.6rem; margin-bottom: 0.6rem; font-size: 1.3rem; }
.s555-card ul { padding-left: 1.2rem; }
.s555-card li {
  color: var(--s555-text); font-size: 1.3rem; line-height: 1.6rem;
  margin-bottom: 0.4rem; list-style: disc;
}

/* === Promo Link === */
.s555-promo-text {
  color: var(--s555-primary); font-weight: 700; cursor: pointer;
  transition: var(--s555-transition); text-decoration: underline;
}
.s555-promo-text:hover { color: var(--s555-accent2); }
.s555-promo-btn {
  display: inline-block; padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--s555-primary), #00b4d8);
  color: var(--s555-bg); font-weight: 700; font-size: 1.5rem;
  border: none; border-radius: var(--s555-radius-lg); cursor: pointer;
  transition: var(--s555-transition); text-align: center;
}
.s555-promo-btn:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(0,229,255,0.4); }

/* === Footer === */
.s555-footer {
  background: var(--s555-bg-light); padding: 2rem 1rem 1rem;
  border-top: 1px solid rgba(0,229,255,0.1);
}
.s555-footer-brand { color: var(--s555-text); font-size: 1.2rem; line-height: 1.6rem; margin-bottom: 1.5rem; }
.s555-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem;
  margin-bottom: 1.5rem;
}
.s555-footer-links a { color: var(--s555-text); font-size: 1.2rem; }
.s555-footer-links a:hover { color: var(--s555-primary); }
.s555-partners {
  display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center;
  margin-bottom: 1.5rem; opacity: 0.7;
}
.s555-partners span {
  font-size: 1rem; color: var(--s555-text); padding: 0.3rem 0.6rem;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 4px;
}
.s555-copyright {
  text-align: center; font-size: 1.1rem; color: var(--s555-text);
  opacity: 0.6; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.05);
}

/* === Bottom Navigation === */
.s555-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #1a1a3e 0%, #0d0d2b 100%);
  border-top: 1px solid rgba(0,229,255,0.2);
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; padding: 0 0.5rem;
}
.s555-bottom-nav-item {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 60px; min-height: 60px;
  cursor: pointer; transition: var(--s555-transition);
  background: none; border: none; color: var(--s555-text);
  position: relative;
}
.s555-bottom-nav-item:hover, .s555-bottom-nav-item:focus {
  color: var(--s555-primary);
}
.s555-bottom-nav-item.s555-nav-active { color: var(--s555-primary); }
.s555-bottom-nav-item.s555-nav-active::before {
  content: ''; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%); width: 30px; height: 3px;
  background: var(--s555-primary); border-radius: 0 0 3px 3px;
}
.s555-bottom-nav-icon { font-size: 2.2rem; margin-bottom: 2px; }
.s555-bottom-nav-label { font-size: 1rem; white-space: nowrap; }

/* === Helpers === */
.s555-text-center { text-align: center; }
.s555-mt-1 { margin-top: 1rem; }
.s555-mt-2 { margin-top: 2rem; }
.s555-mb-1 { margin-bottom: 1rem; }
.s555-mb-2 { margin-bottom: 2rem; }
.s555-py-2 { padding: 2rem 0; }
.s555-hidden { display: none !important; }

/* === Internal Link === */
.s555-internal-link {
  color: var(--s555-accent2); text-decoration: underline;
  font-size: 1.3rem;
}
.s555-internal-link:hover { color: var(--s555-primary); }

/* === Winner Showcase === */
.s555-winner-list { display: flex; flex-direction: column; gap: 0.6rem; }
.s555-winner-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.8rem 1rem; background: rgba(0,229,255,0.05);
  border-radius: var(--s555-radius); font-size: 1.2rem;
}
.s555-winner-name { color: var(--s555-primary); font-weight: 600; }
.s555-winner-amount { color: var(--s555-success); font-weight: 700; }

/* === RTP Bar === */
.s555-rtp-bar {
  height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px;
  overflow: hidden; margin-top: 0.4rem;
}
.s555-rtp-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--s555-primary), var(--s555-accent2));
}

/* === FAQ === */
.s555-faq-item { margin-bottom: 1rem; }
.s555-faq-q {
  font-weight: 600; color: var(--s555-primary); font-size: 1.3rem;
  margin-bottom: 0.3rem;
}
.s555-faq-a { color: var(--s555-text); font-size: 1.2rem; line-height: 1.5rem; }

/* === Responsive === */
@media (max-width: 768px) {
  .s555-wrapper { max-width: 100%; }
  main { padding-bottom: 80px; }
}
@media (min-width: 769px) {
  .s555-bottom-nav { display: none; }
  .s555-header { max-width: 430px; left: 50%; transform: translateX(-50%); }
  .s555-bottom-nav { max-width: 430px; left: 50%; transform: translateX(-50%); }
}
