/* ===========================================================
   rbajer.click - Base Stylesheet (mobile-first, max 430px)
   Prefix: g328-
   Palette: #DDA0DD | #FF8C00 | #0D1117 | #CCCCCC | #FFD700 | #8470FF
   =========================================================== */

:root {
  --g328-bg: #0D1117;
  --g328-bg-2: #161B27;
  --g328-bg-3: #1F2533;
  --g328-card: #1A2030;
  --g328-text: #CCCCCC;
  --g328-text-light: #F5F6FA;
  --g328-plum: #DDA0DD;
  --g328-orange: #FF8C00;
  --g328-gold: #FFD700;
  --g328-purple: #8470FF;
  --g328-border: rgba(221, 160, 221, 0.18);
  --g328-gradient: linear-gradient(135deg, #8470FF 0%, #DDA0DD 55%, #FF8C00 100%);
  --g328-gradient-gold: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
}

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

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", Roboto, system-ui, sans-serif;
  background: var(--g328-bg);
  color: var(--g328-text);
  line-height: 1.5;
  font-size: 1.5rem;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--g328-plum); text-decoration: none; }

/* ===================== HEADER ===================== */
.g328-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--g328-border);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.g328-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}
.g328-logo img { width: 32px; height: 32px; border-radius: 8px; }
.g328-logo .g328-brand {
  font-size: 1.9rem;
  font-weight: 800;
  background: var(--g328-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.5px;
}

.g328-header-actions { display: flex; align-items: center; gap: 0.7rem; }

.g328-menu-btn {
  background: transparent;
  border: 1px solid var(--g328-border);
  color: var(--g328-text-light);
  width: 38px; height: 38px;
  border-radius: 10px;
  font-size: 2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

.g328-btn {
  border: none;
  border-radius: 10px;
  padding: 0.85rem 1.4rem;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  font-family: inherit;
}
.g328-btn:active { transform: scale(0.96); }

.g328-btn-login {
  background: var(--g328-bg-3);
  color: var(--g328-text-light);
  border: 1px solid var(--g328-border);
}
.g328-btn-register {
  background: var(--g328-gradient-gold);
  color: #1a1205;
  box-shadow: 0 4px 14px rgba(255, 140, 0, 0.35);
}

/* ===================== MOBILE MENU ===================== */
.g328-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.g328-menu-overlay.g328-open { opacity: 1; visibility: visible; }

.g328-side-menu {
  position: fixed;
  top: 0; right: -85%;
  width: 85%;
  max-width: 360px;
  height: 100%;
  background: var(--g328-bg-2);
  z-index: 9999;
  padding: 2rem 1.6rem;
  overflow-y: auto;
  transition: right 0.3s ease;
  border-left: 1px solid var(--g328-border);
}
.g328-side-menu.g328-open { right: 0; }
.g328-side-menu h3 {
  color: var(--g328-text-light);
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--g328-border);
}
.g328-side-menu a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1rem;
  color: var(--g328-text);
  font-size: 1.45rem;
  border-radius: 10px;
  margin-bottom: 0.4rem;
  transition: background 0.18s ease;
}
.g328-side-menu a:hover, .g328-side-menu a:active {
  background: var(--g328-bg-3);
  color: var(--g328-gold);
}
.g328-side-menu .material-icons,
.g328-side-menu i { font-size: 2rem; color: var(--g328-plum); }

.g328-menu-close {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  background: transparent;
  border: none;
  color: var(--g328-text-light);
  font-size: 2.4rem;
  cursor: pointer;
}

/* ===================== HERO ===================== */
.g328-hero {
  position: relative;
  padding: 2.5rem 1.4rem 2rem;
  text-align: center;
  background:
    radial-gradient(circle at 20% 10%, rgba(132, 112, 255, 0.25), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(255, 140, 0, 0.2), transparent 55%);
  overflow: hidden;
}
.g328-hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--g328-text-light);
  margin-bottom: 0.8rem;
}
.g328-hero h1 span {
  background: var(--g328-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.g328-hero p {
  font-size: 1.5rem;
  color: var(--g328-text);
  margin-bottom: 1.6rem;
}
.g328-hero-cta { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.g328-hero-cta .g328-btn { padding: 1.1rem 2rem; font-size: 1.5rem; }

.g328-hero-banner {
  margin: 1.6rem auto 0;
  max-width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--g328-border);
  box-shadow: 0 8px 30px rgba(132, 112, 255, 0.25);
}
.g328-hero-banner img { width: 100%; }

/* ===================== SECTION ===================== */
.g328-section { padding: 2rem 1.4rem; }
.g328-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}
.g328-section-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--g328-text-light);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.g328-section-title i,
.g328-section-title .material-icons { color: var(--g328-gold); font-size: 2.2rem; }
.g328-section-more { color: var(--g328-plum); font-size: 1.3rem; }

/* ===================== CATEGORY PILLS ===================== */
.g328-cats {
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  padding: 0.5rem 0 1.2rem;
  -webkit-overflow-scrolling: touch;
}
.g328-cats::-webkit-scrollbar { display: none; }
.g328-cat-pill {
  flex-shrink: 0;
  padding: 0.7rem 1.3rem;
  background: var(--g328-bg-3);
  border: 1px solid var(--g328-border);
  border-radius: 30px;
  color: var(--g328-text);
  font-size: 1.3rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
}
.g328-cat-pill.g328-active,
.g328-cat-pill:hover {
  background: var(--g328-gradient);
  color: #fff;
  border-color: transparent;
}

/* ===================== GAME GRID ===================== */
.g328-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.g328-game-card {
  background: var(--g328-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--g328-border);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.g328-game-card:active {
  transform: scale(0.96);
  box-shadow: 0 6px 18px rgba(255, 140, 0, 0.3);
}
.g328-game-thumb {
  aspect-ratio: 1 / 1;
  background: var(--g328-bg-3);
  position: relative;
  overflow: hidden;
}
.g328-game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g328-game-tag {
  position: absolute;
  top: 0.4rem; left: 0.4rem;
  background: var(--g328-gradient-gold);
  color: #1a1205;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}
.g328-game-play {
  position: absolute;
  inset: 0;
  background: rgba(13, 17, 23, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.g328-game-card:hover .g328-game-play,
.g328-game-card:active .g328-game-play { opacity: 1; }
.g328-game-play i,
.g328-game-play .material-icons { color: #fff; font-size: 2.8rem; }
.g328-game-name {
  padding: 0.6rem 0.5rem;
  font-size: 1.15rem;
  color: var(--g328-text-light);
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===================== PROMO BANNER ===================== */
.g328-promo {
  background: var(--g328-gradient);
  border-radius: 14px;
  padding: 1.6rem;
  margin: 1.4rem;
  color: #fff;
  text-align: center;
  box-shadow: 0 6px 20px rgba(132, 112, 255, 0.35);
}
.g328-promo h3 { font-size: 1.7rem; margin-bottom: 0.5rem; }
.g328-promo p { font-size: 1.3rem; margin-bottom: 1rem; opacity: 0.95; }
.g328-promo .g328-btn {
  background: #fff;
  color: var(--g328-purple);
}

/* ===================== SEO TEXT ===================== */
.g328-seo {
  padding: 2rem 1.4rem;
  background: var(--g328-bg-2);
  border-top: 1px solid var(--g328-border);
  border-bottom: 1px solid var(--g328-border);
}
.g328-seo h2 {
  color: var(--g328-text-light);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.g328-seo p {
  font-size: 1.4rem;
  color: var(--g328-text);
  margin-bottom: 1rem;
  line-height: 1.7;
}
.g328-seo a { color: var(--g328-gold); text-decoration: underline; }

/* ===================== FEATURES STRIP ===================== */
.g328-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  padding: 0 1.4rem 1rem;
}
.g328-feature {
  background: var(--g328-card);
  border: 1px solid var(--g328-border);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
}
.g328-feature i,
.g328-feature .material-icons {
  font-size: 2.6rem;
  color: var(--g328-orange);
  margin-bottom: 0.5rem;
}
.g328-feature h4 { color: var(--g328-text-light); font-size: 1.4rem; margin-bottom: 0.3rem; }
.g328-feature p { font-size: 1.2rem; color: var(--g328-text); }

/* ===================== FOOTER ===================== */
.g328-footer {
  background: var(--g328-bg-2);
  padding: 2.2rem 1.4rem 6rem;
  border-top: 1px solid var(--g328-border);
}
.g328-footer h4 {
  color: var(--g328-text-light);
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}
.g328-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  margin-bottom: 1.4rem;
}
.g328-footer-links a {
  color: var(--g328-text);
  font-size: 1.25rem;
}
.g328-footer-links a:hover { color: var(--g328-gold); }
.g328-footer-copy {
  font-size: 1.15rem;
  color: var(--g328-text);
  opacity: 0.7;
  margin-top: 1.2rem;
  border-top: 1px solid var(--g328-border);
  padding-top: 1.2rem;
  line-height: 1.6;
}

/* ===================== MOBILE BOTTOM NAV ===================== */
.g328-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 62px;
  background: rgba(22, 27, 39, 0.98);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--g328-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}
.g328-nav-item {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--g328-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
}
.g328-nav-item i,
.g328-nav-item .material-icons,
.g328-nav-item ion-icon { font-size: 2.2rem; }
.g328-nav-item:hover, .g328-nav-item:active { color: var(--g328-gold); transform: translateY(-2px); }
.g328-nav-item.g328-active { color: var(--g328-orange); }
.g328-nav-item.g328-nav-cta {
  background: var(--g328-gradient-gold);
  color: #1a1205;
  border-radius: 50%;
  width: 50px; height: 50px;
  min-width: auto; min-height: auto;
  margin-top: -22px;
  box-shadow: 0 4px 14px rgba(255, 140, 0, 0.45);
  font-size: 2.4rem;
}

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

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

@media (max-width: 360px) {
  .g328-game-grid { grid-template-columns: repeat(2, 1fr); }
  .g328-hero h1 { font-size: 2.2rem; }
}
