/* 99jili - design.css
   Mobile-first stylesheet with w5b96- class prefix.
   Palette: #212F3D (dark bg) | #ADFF2F (lime accent) | #00FF7F (spring green text)
   Comments in English only.
*/

:root {
  --w5b96-bg: #212F3D;
  --w5b96-bg-light: #2C3E50;
  --w5b96-bg-dark: #1B2631;
  --w5b96-primary: #ADFF2F;
  --w5b96-secondary: #00FF7F;
  --w5b96-text: #ECF0F1;
  --w5b96-text-muted: #95A5A6;
  --w5b96-border: #34495E;
  --w5b96-gold: #F1C40F;
  --w5b96-red: #FF6B6B;
  --w5b96-radius: 0.8rem;
  --w5b96-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.35);
}

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

html {
  font-size: 62.5%;
}

body {
  font-family: 'Segoe UI', 'Roboto', system-ui, -apple-system, sans-serif;
  background: var(--w5b96-bg);
  color: var(--w5b96-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--w5b96-primary);
  text-decoration: none;
}

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

.w5b96-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.w5b96-logo {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.6rem;
  object-fit: cover;
}

.w5b96-site-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--w5b96-primary);
  white-space: nowrap;
}

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

.w5b96-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--w5b96-radius);
  font-weight: 700;
  font-size: 1.3rem;
  border: none;
  cursor: pointer;
  min-height: 4rem;
  min-width: 4.4rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.w5b96-btn:active {
  transform: scale(0.96);
}

.w5b96-btn-register {
  background: linear-gradient(135deg, var(--w5b96-primary), var(--w5b96-secondary));
  color: var(--w5b96-bg-dark);
}

.w5b96-btn-login {
  background: transparent;
  color: var(--w5b96-primary);
  border: 0.15rem solid var(--w5b96-primary);
}

.w5b96-menu-toggle {
  background: transparent;
  border: none;
  color: var(--w5b96-primary);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  min-width: 4.4rem;
  min-height: 4.4rem;
}

/* ===== Mobile Menu ===== */
.w5b96-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--w5b96-bg-dark);
  z-index: 9999;
  padding: 6rem 1.5rem 2rem;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.w5b96-mobile-menu.w5b96-active {
  right: 0;
}

.w5b96-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 ease;
}

.w5b96-menu-overlay.w5b96-active {
  opacity: 1;
  pointer-events: auto;
}

.w5b96-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--w5b96-primary);
  font-size: 2.4rem;
  cursor: pointer;
  min-width: 4.4rem;
  min-height: 4.4rem;
}

.w5b96-menu-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--w5b96-primary);
  margin-bottom: 1.5rem;
}

.w5b96-menu-link {
  display: block;
  padding: 1.2rem 1rem;
  color: var(--w5b96-text);
  border-bottom: 0.1rem solid var(--w5b96-border);
  font-weight: 600;
}

.w5b96-menu-link:hover,
.w5b96-menu-link:focus {
  color: var(--w5b96-primary);
  background: var(--w5b96-bg-light);
}

/* ===== Main content ===== */
.w5b96-main {
  margin-top: 5.6rem;
  padding: 1rem;
}

/* ===== Carousel ===== */
.w5b96-carousel {
  position: relative;
  width: 100%;
  height: 18rem;
  border-radius: var(--w5b96-radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--w5b96-shadow);
}

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

.w5b96-slide.w5b96-active {
  opacity: 1;
}

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

.w5b96-slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(27, 38, 49, 0.92));
  color: var(--w5b96-text);
}

.w5b96-slide-overlay h3 {
  font-size: 1.6rem;
  color: var(--w5b96-primary);
  margin-bottom: 0.3rem;
}

.w5b96-slide-overlay p {
  font-size: 1.2rem;
  color: var(--w5b96-text);
}

.w5b96-carousel-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}

.w5b96-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

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

/* ===== Section / Headings ===== */
.w5b96-section {
  margin-bottom: 2rem;
  padding: 1.2rem;
  background: var(--w5b96-bg-light);
  border-radius: var(--w5b96-radius);
  border-left: 0.3rem solid var(--w5b96-primary);
}

.w5b96-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--w5b96-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.w5b96-h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--w5b96-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.w5b96-h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--w5b96-secondary);
  margin: 1.5rem 0 0.8rem;
}

.w5b96-h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--w5b96-primary);
  margin: 1rem 0 0.5rem;
}

.w5b96-p {
  margin-bottom: 0.8rem;
  color: var(--w5b96-text);
}

/* ===== Game Grid ===== */
.w5b96-game-cat-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.5rem 0 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 0.15rem solid var(--w5b96-border);
}

.w5b96-game-cat-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w5b96-primary);
}

.w5b96-game-cat-icon {
  font-size: 1.8rem;
  color: var(--w5b96-secondary);
}

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

.w5b96-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--w5b96-bg-dark);
  border-radius: 0.6rem;
  padding: 0.5rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 0.1rem solid var(--w5b96-border);
}

.w5b96-game-card:hover,
.w5b96-game-card:active {
  transform: translateY(-0.3rem);
  border-color: var(--w5b96-primary);
  box-shadow: 0 0.4rem 1rem rgba(173, 255, 47, 0.25);
}

.w5b96-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.4rem;
  margin-bottom: 0.3rem;
}

.w5b96-game-card span {
  font-size: 1rem;
  color: var(--w5b96-text);
  text-align: center;
  line-height: 1.2;
  min-height: 2.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== CTA promo banner ===== */
.w5b96-cta {
  background: linear-gradient(135deg, var(--w5b96-primary), var(--w5b96-secondary));
  color: var(--w5b96-bg-dark);
  padding: 1.2rem;
  border-radius: var(--w5b96-radius);
  text-align: center;
  margin: 1.5rem 0;
  font-weight: 800;
  font-size: 1.5rem;
  cursor: pointer;
  border: none;
  width: 100%;
  display: block;
  box-shadow: var(--w5b96-shadow);
}

.w5b96-cta:hover {
  filter: brightness(1.05);
}

.w5b96-promo-link {
  color: var(--w5b96-primary);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* ===== Feature / module cards ===== */
.w5b96-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.w5b96-feature-card {
  background: var(--w5b96-bg-dark);
  border-radius: 0.6rem;
  padding: 1rem;
  border-left: 0.25rem solid var(--w5b96-secondary);
}

.w5b96-feature-card h3 {
  font-size: 1.4rem;
  color: var(--w5b96-primary);
  margin-bottom: 0.4rem;
}

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

.w5b96-stat-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 0.1rem solid var(--w5b96-border);
  font-size: 1.2rem;
}

.w5b96-stat-row span:first-child {
  color: var(--w5b96-text);
}

.w5b96-stat-row span:last-child {
  color: var(--w5b96-primary);
  font-weight: 700;
}

/* ===== Footer ===== */
.w5b96-footer {
  background: var(--w5b96-bg-dark);
  padding: 2rem 1rem 6rem;
  margin-top: 2rem;
  border-top: 0.2rem solid var(--w5b96-primary);
  text-align: center;
}

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

.w5b96-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.w5b96-footer-links a {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  background: var(--w5b96-bg-light);
  color: var(--w5b96-primary);
  border-radius: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.w5b96-footer-copy {
  color: var(--w5b96-text-muted);
  font-size: 1.1rem;
}

/* ===== Mobile Bottom Nav ===== */
.w5b96-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 6rem;
  background: var(--w5b96-bg-dark);
  border-top: 0.2rem solid var(--w5b96-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -0.2rem 0.8rem rgba(0, 0, 0, 0.4);
}

.w5b96-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 6rem;
  min-height: 6rem;
  background: transparent;
  border: none;
  color: var(--w5b96-text-muted);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  padding: 0.4rem;
}

.w5b96-bottom-nav-btn:active {
  transform: scale(0.9);
}

.w5b96-bottom-nav-btn .w5b96-nav-icon {
  font-size: 2.2rem;
}

.w5b96-bottom-nav-btn .material-icons-outlined,
.w5b96-bottom-nav-btn .material-icons {
  font-size: 2.2rem;
}

.w5b96-bottom-nav-btn:hover {
  color: var(--w5b96-primary);
}

.w5b96-bottom-nav-btn.w5b96-current {
  color: var(--w5b96-primary);
}

.w5b96-bottom-nav-btn.w5b96-current .w5b96-nav-icon {
  filter: drop-shadow(0 0 0.4rem var(--w5b96-primary));
}

/* ===== Utility ===== */
.w5b96-text-link {
  color: var(--w5b96-primary);
  font-weight: 600;
}

.w5b96-list {
  list-style: none;
  padding-left: 0;
}

.w5b96-list li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  color: var(--w5b96-text);
}

.w5b96-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--w5b96-primary);
}

/* ===== Responsive ===== */
@media (min-width: 769px) {
  .w5b96-bottom-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .w5b96-main {
    padding-bottom: 8rem;
  }
  .w5b96-footer {
    padding-bottom: 8rem;
  }
}

@media (max-width: 360px) {
  .w5b96-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .w5b96-feature-grid {
    grid-template-columns: 1fr;
  }
}
