/* ============================================================
 * aqq9.click - design.css
 * Mobile-first HTML5 layout. All custom classes use the
 * "pgf7-" prefix. CSS variables use the --pgf7-* namespace.
 * Color palette:
 *   #FFC0CB (pink)  | #FFFFBA (light yellow)
 *   #FA8072 (salmon)| #CD853F (peru/bronze)
 *   #CCCCCC (gray)  | #262626 (dark)
 * Dark shades are backgrounds, light shades are text/accent.
 * ========================================================== */

:root {
  --pgf7-bg:        #1c130f;
  --pgf7-bg-soft:   #2a1c16;
  --pgf7-bg-card:   #262626;
  --pgf7-primary:   #FA8072;
  --pgf7-primary-2: #CD853F;
  --pgf7-pink:      #FFC0CB;
  --pgf7-yellow:    #FFFFBA;
  --pgf7-text:      #FFFFBA;
  --pgf7-text-soft: #CCCCCC;
  --pgf7-dark:      #262626;
  --pgf7-radius:    14px;
  --pgf7-shadow:    0 6px 18px rgba(0,0,0,.45);
  --pgf7-header-h:  56px;
  --pgf7-bottomnav-h: 62px;
  --pgf7-max:       430px;
}

* { box-sizing: border-box; }

html {
  font-size: 62.5%;            /* rem base: 1rem = 10px */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", Roboto, system-ui, sans-serif;
  background: radial-gradient(120% 60% at 50% 0%, #3a241b 0%, var(--pgf7-bg) 55%, #120c09 100%);
  color: var(--pgf7-text);
  line-height: 1.5;
  font-size: 1.5rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--pgf7-pink); text-decoration: none; }
a:hover { color: var(--pgf7-yellow); }
img { max-width: 100%; display: block; }

/* ---------- Layout containers ---------- */
.pgf7-wrapper {
  width: 100%;
  max-width: var(--pgf7-max);
  margin: 0 auto;
  padding: 0 12px;
}
.pgf7-container {
  width: 100%;
  max-width: var(--pgf7-max);
  margin: 0 auto;
}

/* ---------- Header ---------- */
.pgf7-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--pgf7-header-h);
  z-index: 1000;
  background: linear-gradient(180deg, #2a1c16 0%, #1c130f 100%);
  border-bottom: 1px solid rgba(205,133,63,.35);
  box-shadow: 0 2px 10px rgba(0,0,0,.55);
}
.pgf7-header-inner {
  height: 100%;
  max-width: var(--pgf7-max);
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pgf7-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.pgf7-logo img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 0 0 2px rgba(250,128,114,.5);
}
.pgf7-logo-name {
  font-size: 2rem;
  font-weight: 800;
  color: var(--pgf7-yellow);
  letter-spacing: .5px;
  white-space: nowrap;
}
.pgf7-logo-name span { color: var(--pgf7-primary); }

.pgf7-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pgf7-menu-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  color: var(--pgf7-text);
  width: 40px; height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
}
.pgf7-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 1.35rem;
  line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.pgf7-btn:active { transform: scale(.96); }
.pgf7-btn-login {
  background: transparent;
  color: var(--pgf7-yellow);
  border: 1.5px solid var(--pgf7-primary);
  padding: 8px 13px;
}
.pgf7-btn-register {
  background: linear-gradient(135deg, var(--pgf7-primary) 0%, var(--pgf7-primary-2) 100%);
  color: #1c130f;
  box-shadow: 0 4px 12px rgba(250,128,114,.45);
}

/* ---------- Mobile nav drawer ---------- */
.pgf7-nav-drawer {
  position: fixed;
  top: var(--pgf7-header-h);
  left: 0; right: 0;
  max-width: var(--pgf7-max);
  margin: 0 auto;
  background: var(--pgf7-bg-soft);
  border-bottom: 1px solid rgba(205,133,63,.3);
  max-height: 0;
  overflow: hidden;
  z-index: 9999;
  transition: max-height .28s ease;
}
.pgf7-nav-drawer.pgf7-nav-open {
  max-height: 460px;
  box-shadow: 0 10px 24px rgba(0,0,0,.55);
}
.pgf7-nav-list {
  list-style: none;
  margin: 0;
  padding: 8px 12px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.pgf7-nav-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pgf7-text);
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 1.45rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}
.pgf7-nav-list a:hover {
  background: rgba(250,128,114,.15);
  color: var(--pgf7-yellow);
}
.pgf7-nav-list .material-icons,
.pgf7-nav-list i { font-size: 20px; color: var(--pgf7-primary); }

/* ---------- Main content ---------- */
.pgf7-main {
  padding-top: calc(var(--pgf7-header-h) + 10px);
  padding-bottom: 0;
}
@media (max-width: 768px) {
  .pgf7-main { padding-bottom: 80px; }
}

/* ---------- Hero carousel ---------- */
.pgf7-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin: 10px 0 14px;
  box-shadow: var(--pgf7-shadow);
  aspect-ratio: 16 / 9;
  background: var(--pgf7-bg-card);
}
.pgf7-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .55s ease;
  cursor: pointer;
}
.pgf7-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.pgf7-slide-active { opacity: 1; }
.pgf7-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.pgf7-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: none; padding: 0; cursor: pointer;
}
.pgf7-dot-active { background: var(--pgf7-primary); width: 22px; border-radius: 4px; }

/* ---------- Section titles ---------- */
.pgf7-section { margin: 22px 0 8px; }
.pgf7-section-title {
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--pgf7-yellow);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pgf7-section-title::before {
  content: "";
  display: inline-block;
  width: 5px; height: 20px;
  background: linear-gradient(180deg, var(--pgf7-primary), var(--pgf7-primary-2));
  border-radius: 3px;
}
.pgf7-h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--pgf7-yellow);
  line-height: 1.3;
  margin: 8px 0 10px;
}
.pgf7-h1 span { color: var(--pgf7-primary); }

/* ---------- CTA strip ---------- */
.pgf7-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.pgf7-cta .pgf7-btn { flex: 1 1 auto; }
.pgf7-cta-link {
  font-weight: 700;
  color: var(--pgf7-pink);
  border-bottom: 1px dashed var(--pgf7-primary);
}

/* ---------- Game grid ---------- */
.pgf7-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (min-width: 380px) {
  .pgf7-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
.pgf7-card {
  background: linear-gradient(160deg, var(--pgf7-bg-soft) 0%, var(--pgf7-bg-card) 100%);
  border: 1px solid rgba(205,133,63,.22);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  text-align: center;
}
.pgf7-card:hover {
  transform: translateY(-3px);
  border-color: var(--pgf7-primary);
  box-shadow: 0 8px 18px rgba(250,128,114,.25);
}
.pgf7-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #120c09;
}
.pgf7-card-name {
  padding: 6px 4px 8px;
  font-size: 1.2rem;
  color: var(--pgf7-text);
  line-height: 1.25;
  min-height: 30px;
  word-break: break-word;
}
.pgf7-card-tag {
  position: absolute;
  top: 6px; left: 6px;
  background: var(--pgf7-primary);
  color: #1c130f;
  font-size: 1rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}

/* ---------- SEO text block ---------- */
.pgf7-seo {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(205,133,63,.18);
  border-radius: 12px;
  padding: 14px;
  margin: 16px 0;
  font-size: 1.45rem;
  color: var(--pgf7-text-soft);
}
.pgf7-seo h2 {
  font-size: 1.8rem;
  color: var(--pgf7-yellow);
  margin: 4px 0 8px;
}
.pgf7-seo h3 {
  font-size: 1.55rem;
  color: var(--pgf7-pink);
  margin: 12px 0 6px;
}
.pgf7-seo p { margin: 0 0 10px; }
.pgf7-seo a { color: var(--pgf7-pink); border-bottom: 1px dashed var(--pgf7-primary); }

/* ---------- Promo link inline ---------- */
.pgf7-promo-text {
  color: var(--pgf7-yellow);
  font-weight: 700;
  cursor: pointer;
  border-bottom: 1px solid var(--pgf7-primary);
}

/* ---------- Footer ---------- */
.pgf7-footer {
  background: var(--pgf7-dark);
  border-top: 1px solid rgba(205,133,63,.3);
  margin-top: 22px;
  padding: 22px 14px calc(var(--pgf7-bottomnav-h) + 24px);
}
.pgf7-footer-brand {
  color: var(--pgf7-text-soft);
  font-size: 1.4rem;
  margin: 0 0 12px;
  line-height: 1.6;
}
.pgf7-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 8px 0 12px;
}
.pgf7-footer-links a {
  color: var(--pgf7-pink);
  font-size: 1.3rem;
  padding: 4px 8px;
  background: rgba(255,255,255,.04);
  border-radius: 6px;
}
.pgf7-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.pgf7-copyright {
  color: #8a8a8a;
  font-size: 1.2rem;
  margin-top: 10px;
}

/* ---------- Mobile bottom navigation ---------- */
.pgf7-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--pgf7-bottomnav-h);
  z-index: 1000;
  background: linear-gradient(180deg, #2a1c16 0%, #1c130f 100%);
  border-top: 1px solid rgba(205,133,63,.4);
  box-shadow: 0 -3px 12px rgba(0,0,0,.5);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  padding: 0;
}
.pgf7-bottomnav-btn {
  flex: 1 1 0;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--pgf7-text-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: inherit;
  font-size: 1.05rem;
  cursor: pointer;
  position: relative;
  transition: color .15s ease, transform .15s ease;
}
.pgf7-bottomnav-btn .material-icons,
.pgf7-bottomnav-btn i,
.pgf7-bottomnav-btn ion-icon { font-size: 22px; }
.pgf7-bottomnav-btn:hover { color: var(--pgf7-yellow); }
.pgf7-bottomnav-btn:active { transform: scale(.92); }
.pgf7-bottomnav-btn.pgf7-bottomnav-active {
  color: var(--pgf7-yellow);
}
.pgf7-bottomnav-btn.pgf7-bottomnav-active::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 30px; height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--pgf7-primary), var(--pgf7-yellow));
}
.pgf7-bottomnav-center {
  flex: 1 1 0;
  min-width: 60px;
  position: relative;
}
.pgf7-bottomnav-center .pgf7-bottomnav-btn {
  background: linear-gradient(135deg, var(--pgf7-primary) 0%, var(--pgf7-primary-2) 100%);
  color: #1c130f;
  width: 52px; height: 52px;
  border-radius: 50%;
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 12px rgba(250,128,114,.55);
  border: 3px solid #1c130f;
}
.pgf7-bottomnav-center .pgf7-bottomnav-btn ion-icon { font-size: 26px; }
.pgf7-bottomnav-center-label {
  position: absolute;
  bottom: 4px;
  left: 0; right: 0;
  text-align: center;
  font-size: 1.05rem;
  color: var(--pgf7-yellow);
  font-weight: 700;
}

/* ---------- Desktop: hide bottom nav, show desktop nav ---------- */
@media (min-width: 769px) {
  .pgf7-bottomnav { display: none; }
  .pgf7-footer { padding-bottom: 22px; }
  .pgf7-wrapper, .pgf7-header-inner, .pgf7-container, .pgf7-nav-drawer {
    max-width: var(--pgf7-max);
  }
}

/* ---------- Utility ---------- */
.pgf7-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.pgf7-card-wrap { position: relative; }
