/* ace360 layout CSS - pge9 prefix */
:root {
  --pge9-primary: #2C3E50;
  --pge9-bg: #2C2C2C;
  --pge9-text: #ECF0F1;
  --pge9-accent: #D3D3D3;
  --pge9-highlight: #FFEBCD;
  --pge9-radius: 8px;
  --pge9-header-h: 52px;
  --pge9-bnav-h: 60px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: 'Hind Siliguri', sans-serif;
  background: var(--pge9-bg);
  color: var(--pge9-text);
  line-height: 1.6;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--pge9-highlight); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* === HEADER === */
.pge9-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--pge9-header-h);
  background: var(--pge9-primary); display: flex; align-items: center;
  justify-content: space-between; padding: 0 12px; z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.pge9-header-left { display: flex; align-items: center; gap: 8px; }
.pge9-header-logo { width: 28px; height: 28px; border-radius: 4px; }
.pge9-header-name { color: var(--pge9-highlight); font-size: 1.6rem; font-weight: 700; letter-spacing: .5px; }
.pge9-header-right { display: flex; align-items: center; gap: 6px; }
.pge9-btn-register, .pge9-btn-login {
  border: none; border-radius: 20px; padding: 6px 14px; font-size: 1.2rem;
  font-weight: 600; cursor: pointer; font-family: inherit;
  min-height: 32px; transition: transform .15s;
}
.pge9-btn-register { background: var(--pge9-highlight); color: var(--pge9-bg); }
.pge9-btn-login { background: transparent; color: var(--pge9-text); border: 1.5px solid var(--pge9-accent); }
.pge9-btn-register:active, .pge9-btn-login:active { transform: scale(.95); }
.pge9-menu-toggle {
  background: none; border: none; color: var(--pge9-text); font-size: 2rem;
  cursor: pointer; padding: 4px 8px; min-width: 36px; min-height: 36px;
  display: flex; align-items: center; justify-content: center;
}

/* === MOBILE MENU === */
.pge9-menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,.5); z-index: 9998; display: none;
}
.pge9-overlay-active { display: block; }
.pge9-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: var(--pge9-bg); z-index: 9999; transition: right .3s ease;
  overflow-y: auto; padding: 20px 16px;
}
.pge9-menu-active { right: 0; }
.pge9-mobile-menu a {
  display: block; padding: 12px 10px; color: var(--pge9-text);
  font-size: 1.4rem; border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .2s;
}
.pge9-mobile-menu a:hover { background: rgba(255,255,255,.06); }
.pge9-menu-close {
  background: none; border: none; color: var(--pge9-text); font-size: 2.4rem;
  cursor: pointer; float: right; margin-bottom: 16px;
}

/* === MAIN CONTENT === */
.pge9-main { padding-top: calc(var(--pge9-header-h) + 8px); padding-bottom: 20px; }
@media (max-width: 768px) {
  .pge9-main { padding-bottom: calc(var(--pge9-bnav-h) + 20px); }
}

/* === CAROUSEL === */
.pge9-carousel {
  position: relative; width: 100%; overflow: hidden; border-radius: var(--pge9-radius);
  margin-bottom: 16px;
}
.pge9-carousel-inner { position: relative; width: 100%; height: 180px; }
.pge9-carousel-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity .5s ease; cursor: pointer;
}
.pge9-slide-active { opacity: 1; }
.pge9-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.pge9-carousel-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.pge9-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4);
  border: none; cursor: pointer; transition: background .3s;
}
.pge9-dot-active { background: var(--pge9-highlight); }
.pge9-carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.4); color: #fff; border: none; padding: 10px;
  font-size: 1.4rem; cursor: pointer; z-index: 3;
}
.pge9-carousel-prev { left: 4px; border-radius: 50%; }
.pge9-carousel-next { right: 4px; border-radius: 50%; }

/* === SECTIONS === */
.pge9-section {
  padding: 16px 12px; margin-bottom: 8px;
}
.pge9-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--pge9-highlight);
  margin-bottom: 12px; padding-bottom: 6px;
  border-bottom: 2px solid var(--pge9-primary);
}

/* === GAME GRID === */
.pge9-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.pge9-game-card {
  text-align: center; cursor: pointer; transition: transform .15s;
  border-radius: var(--pge9-radius); overflow: hidden;
  background: rgba(255,255,255,.04);
}
.pge9-game-card:active { transform: scale(.95); }
.pge9-game-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--pge9-radius) var(--pge9-radius) 0 0;
}
.pge9-game-card span {
  display: block; font-size: 1.05rem; color: var(--pge9-accent);
  padding: 4px 2px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis;
}

/* === CONTENT CARDS === */
.pge9-card {
  background: rgba(255,255,255,.04); border-radius: var(--pge9-radius);
  padding: 16px; margin-bottom: 12px;
}
.pge9-card h2, .pge9-card h3 { color: var(--pge9-highlight); margin-bottom: 8px; }
.pge9-card p { font-size: 1.35rem; color: var(--pge9-accent); margin-bottom: 8px; line-height: 1.7; }

/* === CTA BUTTONS === */
.pge9-cta {
  display: inline-block; background: var(--pge9-highlight); color: var(--pge9-bg);
  padding: 10px 24px; border-radius: 24px; font-size: 1.4rem; font-weight: 700;
  cursor: pointer; border: none; text-align: center;
  font-family: inherit; transition: transform .15s;
}
.pge9-cta:active { transform: scale(.95); }

/* === PARTNERS === */
.pge9-partners {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  padding: 12px 0;
}
.pge9-partners span {
  background: rgba(255,255,255,.06); color: var(--pge9-accent);
  padding: 5px 12px; border-radius: 16px; font-size: 1.15rem;
  font-weight: 600;
}

/* === FOOTER === */
.pge9-footer {
  background: #1a1a1a; padding: 20px 12px 16px; text-align: center;
  border-top: 2px solid var(--pge9-primary);
}
.pge9-footer p { font-size: 1.2rem; color: var(--pge9-accent); margin-bottom: 8px; line-height: 1.6; }
.pge9-footer-links { display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: center; margin: 10px 0; }
.pge9-footer-links a { font-size: 1.15rem; color: var(--pge9-highlight); }
.pge9-footer-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 12px 0; }
.pge9-copy { font-size: 1.1rem; color: rgba(255,255,255,.35); margin-top: 10px; }

/* === BOTTOM NAV === */
.pge9-bnav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--pge9-bnav-h);
  background: var(--pge9-primary); display: flex; align-items: center;
  justify-content: space-around; z-index: 1000;
  box-shadow: 0 -2px 8px rgba(0,0,0,.4); border-top: 1px solid rgba(255,255,255,.08);
}
.pge9-bnav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: none; border: none; color: var(--pge9-accent);
  font-size: 1rem; cursor: pointer; min-width: 60px; min-height: 52px;
  font-family: inherit; transition: color .2s;
}
.pge9-bnav-btn .pge9-bnav-icon { font-size: 22px; margin-bottom: 2px; }
.pge9-bnav-btn span { font-size: 1rem; }
.pge9-bnav-btn:active { color: var(--pge9-highlight); }

@media (min-width: 769px) {
  .pge9-bnav { display: none; }
}

/* === BACK TO TOP === */
.pge9-back-top {
  position: fixed; bottom: 72px; right: 12px; width: 40px; height: 40px;
  border-radius: 50%; background: var(--pge9-highlight); color: var(--pge9-bg);
  border: none; font-size: 1.8rem; cursor: pointer; display: none;
  align-items: center; justify-content: center; z-index: 999;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}

/* === SCROLL REVEAL === */
.pge9-reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s; }
.pge9-revealed { opacity: 1; transform: translateY(0); }

/* === FAQ ACCORDION === */
.pge9-faq-item { margin-bottom: 8px; }
.pge9-faq-q {
  width: 100%; background: rgba(255,255,255,.06); border: none;
  color: var(--pge9-highlight); font-size: 1.35rem; font-weight: 600;
  padding: 12px; text-align: left; cursor: pointer; border-radius: var(--pge9-radius);
  font-family: inherit; display: flex; justify-content: space-between; align-items: center;
}
.pge9-faq-q::after { content: '+'; font-size: 1.6rem; transition: transform .2s; }
.pge9-faq-item.open .pge9-faq-q::after { content: '-'; }
.pge9-faq-a {
  max-height: 0; overflow: hidden; transition: max-height .3s;
  background: rgba(0,0,0,.15); border-radius: 0 0 var(--pge9-radius) var(--pge9-radius);
}
.pge9-faq-item.open .pge9-faq-a { max-height: 300px; }
.pge9-faq-a p { padding: 10px 12px; font-size: 1.3rem; color: var(--pge9-accent); line-height: 1.6; }

/* === INTERNAL LINKS IN CONTENT === */
.pge9-inline-link { color: var(--pge9-highlight); text-decoration: underline; font-weight: 500; }

/* === DESKTOP NAV (hidden on mobile) === */
.pge9-desktop-nav {
  display: none; gap: 16px; align-items: center;
}
@media (min-width: 769px) {
  .pge9-desktop-nav { display: flex; }
  .pge9-header { max-width: 100%; }
  .pge9-bnav { display: none; }
  body { max-width: 100%; }
  .pge9-main { max-width: 430px; margin: 0 auto; }
}
