/* ============================================================
   PT Game - theme-2a20.css
   Prefix: pg2a-
   Palette: cream #F8F8FF / ink #3A3A3A / purple #9370DB
            forest #006400 / slate #778899
   Mobile-first, max-width: 430px
   ============================================================ */

:root {
  --pg2a-cream: #F8F8FF;
  --pg2a-ink: #3A3A3A;
  --pg2a-purple: #9370DB;
  --pg2a-forest: #006400;
  --pg2a-slate: #778899;
  --pg2a-bg: #15102a;
  --pg2a-bg-2: #1d1638;
  --pg2a-card: #221a42;
  --pg2a-card-2: #2b2153;
  --pg2a-border: rgba(147, 112, 219, 0.32);
  --pg2a-gold: #FFD36E;
  --pg2a-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
  --pg2a-radius: 16px;
}

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

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Roboto, -apple-system, sans-serif;
  color: var(--pg2a-cream);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(147,112,219,0.25), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(0,100,0,0.22), transparent 60%),
    var(--pg2a-bg);
  line-height: 1.5;
  font-size: 1.6rem;
  min-height: 100vh;
}

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

/* ---------- Layout ---------- */
.pg2a-page { max-width: 430px; margin: 0 auto; min-height: 100vh; position: relative; }

.pg2a-container { width: 100%; padding: 0 16px; }

/* ---------- Header ---------- */
.pg2a-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  max-width: 430px; margin: 0 auto;
  background: linear-gradient(180deg, rgba(21,16,42,0.98), rgba(21,16,42,0.88));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pg2a-border);
}
.pg2a-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 14px;
}
.pg2a-logo { display: flex; align-items: center; gap: 8px; color: var(--pg2a-cream); }
.pg2a-logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--pg2a-purple), var(--pg2a-forest));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(147,112,219,0.45);
}
.pg2a-logo-mark i { color: #fff; font-size: 20px; }
.pg2a-logo-text { font-weight: 800; font-size: 1.8rem; letter-spacing: .3px; }
.pg2a-logo-text span { color: var(--pg2a-purple); }

.pg2a-header-actions { display: flex; align-items: center; gap: 8px; }
.pg2a-icon-btn {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(147,112,219,0.14); color: var(--pg2a-cream);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--pg2a-border); cursor: pointer;
}
.pg2a-icon-btn i { font-size: 20px; }
.pg2a-btn {
  border: 0; cursor: pointer; font-weight: 700; border-radius: 12px;
  padding: 9px 16px; font-size: 1.4rem; letter-spacing: .3px;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s;
}
.pg2a-btn:active { transform: translateY(1px); }
.pg2a-btn-login {
  background: transparent; color: var(--pg2a-cream);
  border: 1px solid var(--pg2a-purple);
}
.pg2a-btn-register {
  background: linear-gradient(135deg, var(--pg2a-purple), #b48bff);
  color: #fff; box-shadow: 0 6px 18px rgba(147,112,219,0.5);
}
.pg2a-btn-promo {
  background: linear-gradient(135deg, var(--pg2a-gold), #ffb347);
  color: #2a1a05;
}

/* ---------- Hero / Carousel ---------- */
.pg2a-hero { padding-top: 76px; }
.pg2a-hero-inner { padding: 16px; }
.pg2a-carousel {
  position: relative; border-radius: 22px; overflow: hidden;
  box-shadow: var(--pg2a-shadow);
}
.pg2a-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pg2a-slides::-webkit-scrollbar { display: none; }
.pg2a-slide {
  min-width: 100%; scroll-snap-align: start;
  position: relative; padding: 24px 18px; min-height: 200px;
  background: linear-gradient(135deg, #2b1c5a, #1a3a1a);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
}
.pg2a-slide.s2 { background: linear-gradient(135deg, #5a1c5a, #3a1a1a); }
.pg2a-slide.s3 { background: linear-gradient(135deg, #1c2c5a, #1a3a3a); }
.pg2a-slide-tag {
  align-self: flex-start; background: rgba(255,211,110,0.95); color: #2a1a05;
  padding: 4px 10px; border-radius: 999px; font-size: 1.2rem; font-weight: 800;
}
.pg2a-slide h2 { font-size: 2.2rem; color: #fff; line-height: 1.2; }
.pg2a-slide p { font-size: 1.35rem; color: rgba(248,248,255,0.86); }
.pg2a-slide-cta {
  align-self: flex-start; margin-top: 4px;
  background: linear-gradient(135deg, var(--pg2a-gold), #ffb347);
  color: #2a1a05; padding: 8px 16px; border-radius: 999px;
  font-weight: 800; font-size: 1.3rem;
}
.pg2a-dots { display: flex; gap: 6px; justify-content: center; padding: 10px 0; }
.pg2a-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(147,112,219,0.4); }
.pg2a-dot.active { background: var(--pg2a-purple); width: 20px; border-radius: 4px; }

/* ---------- Stats strip ---------- */
.pg2a-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  padding: 0 16px 12px;
}
.pg2a-stat {
  background: var(--pg2a-card); border: 1px solid var(--pg2a-border);
  border-radius: 12px; padding: 10px 4px; text-align: center;
}
.pg2a-stat b { display: block; font-size: 1.5rem; color: var(--pg2a-purple); }
.pg2a-stat small { font-size: 1.05rem; color: var(--pg2a-slate); }

/* ---------- Section ---------- */
.pg2a-section { padding: 18px 16px; }
.pg2a-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pg2a-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.9rem; font-weight: 800; color: var(--pg2a-cream);
}
.pg2a-section-title i { color: var(--pg2a-purple); font-size: 22px; }
.pg2a-section-more { font-size: 1.3rem; color: var(--pg2a-purple); }

/* ---------- Category chips ---------- */
.pg2a-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; }
.pg2a-chips::-webkit-scrollbar { display: none; }
.pg2a-chip {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 999px;
  background: var(--pg2a-card); border: 1px solid var(--pg2a-border);
  color: var(--pg2a-cream); font-size: 1.3rem; font-weight: 600;
  display: flex; align-items: center; gap: 6px; cursor: pointer;
}
.pg2a-chip.active {
  background: linear-gradient(135deg, var(--pg2a-purple), #6a47b0);
  border-color: transparent; color: #fff;
}

/* ---------- Game grid ---------- */
.pg2a-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pg2a-card {
  background: var(--pg2a-card); border: 1px solid var(--pg2a-border);
  border-radius: 14px; overflow: hidden; position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}
.pg2a-card:active { transform: scale(0.97); }
.pg2a-card-img { aspect-ratio: 1 / 1; background: #0e0a1f; position: relative; }
.pg2a-card-img img { width: 100%; height: 100%; object-fit: cover; }
.pg2a-card-badge {
  position: absolute; top: 6px; left: 6px; z-index: 2;
  background: rgba(0,100,0,0.92); color: #fff;
  padding: 2px 8px; border-radius: 8px; font-size: 1.05rem; font-weight: 800;
}
.pg2a-card-badge.hot { background: rgba(220,60,60,0.92); }
.pg2a-card-badge.new { background: rgba(255,211,110,0.95); color: #2a1a05; }
.pg2a-card-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(15,10,30,0.55); opacity: 0; transition: opacity .18s;
}
.pg2a-card:hover .pg2a-card-play,
.pg2a-card:active .pg2a-card-play { opacity: 1; }
.pg2a-card-play i { color: #fff; font-size: 30px; }
.pg2a-card-title {
  padding: 8px 8px 10px; font-size: 1.25rem; font-weight: 700;
  color: var(--pg2a-cream); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Feature blocks ---------- */
.pg2a-feature {
  display: flex; gap: 12px; align-items: stretch;
  background: var(--pg2a-card); border: 1px solid var(--pg2a-border);
  border-radius: 16px; padding: 14px; margin-bottom: 12px;
}
.pg2a-feature-ico {
  flex: 0 0 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--pg2a-purple), var(--pg2a-forest));
  display: flex; align-items: center; justify-content: center;
}
.pg2a-feature-ico i { font-size: 26px; color: #fff; }
.pg2a-feature-body h3 { font-size: 1.5rem; color: var(--pg2a-cream); margin-bottom: 4px; }
.pg2a-feature-body p { font-size: 1.28rem; color: var(--pg2a-slate); line-height: 1.5; }

/* ---------- Promo banner ---------- */
.pg2a-promo {
  background: linear-gradient(135deg, #4a1f7a, #006400);
  border-radius: 18px; padding: 18px; color: #fff;
  display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--pg2a-border);
}
.pg2a-promo h3 { font-size: 1.9rem; }
.pg2a-promo p { font-size: 1.3rem; color: rgba(255,255,255,0.86); }
.pg2a-promo-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- SEO text ---------- */
.pg2a-seo {
  background: var(--pg2a-card); border: 1px solid var(--pg2a-border);
  border-radius: 16px; padding: 18px;
}
.pg2a-seo h2 { font-size: 1.9rem; color: var(--pg2a-cream); margin-bottom: 10px; }
.pg2a-seo h3 { font-size: 1.55rem; color: var(--pg2a-purple); margin: 14px 0 6px; }
.pg2a-seo p { font-size: 1.3rem; color: rgba(248,248,255,0.84); margin-bottom: 10px; line-height: 1.65; }
.pg2a-seo ul { padding-left: 20px; margin-bottom: 10px; }
.pg2a-seo li { font-size: 1.28rem; color: rgba(248,248,255,0.84); margin-bottom: 4px; }

/* ---------- FAQ ---------- */
.pg2a-faq-item {
  background: var(--pg2a-card); border: 1px solid var(--pg2a-border);
  border-radius: 12px; margin-bottom: 8px; overflow: hidden;
}
.pg2a-faq-q {
  width: 100%; text-align: left; background: transparent; color: var(--pg2a-cream);
  padding: 14px; font-size: 1.35rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; border: 0;
}
.pg2a-faq-q i { color: var(--pg2a-purple); transition: transform .2s; }
.pg2a-faq-item.open .pg2a-faq-q i { transform: rotate(45deg); }
.pg2a-faq-a {
  max-height: 0; overflow: hidden; transition: max-height .25s ease;
  padding: 0 14px; font-size: 1.25rem; color: rgba(248,248,255,0.82); line-height: 1.6;
}
.pg2a-faq-item.open .pg2a-faq-a { max-height: 320px; padding: 0 14px 14px; }

/* ---------- Footer ---------- */
.pg2a-footer {
  background: #0e0a1f; border-top: 1px solid var(--pg2a-border);
  padding: 22px 16px 30px;
}
.pg2a-footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 16px; }
.pg2a-footer h4 { font-size: 1.4rem; color: var(--pg2a-purple); margin-bottom: 8px; }
.pg2a-footer ul { list-style: none; }
.pg2a-footer li { margin-bottom: 6px; }
.pg2a-footer a { color: rgba(248,248,255,0.78); font-size: 1.25rem; }
.pg2a-footer a:hover { color: var(--pg2a-purple); }
.pg2a-footer-bottom {
  border-top: 1px solid var(--pg2a-border); padding-top: 14px;
  text-align: center; font-size: 1.15rem; color: var(--pg2a-slate);
}
.pg2a-footer-pay { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 10px 0; }
.pg2a-footer-pay span {
  background: var(--pg2a-card); border: 1px solid var(--pg2a-border);
  color: var(--pg2a-cream); padding: 4px 10px; border-radius: 8px; font-size: 1.1rem;
}

/* ---------- Bottom nav ---------- */
.pg2a-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  max-width: 430px; margin: 0 auto;
  background: linear-gradient(180deg, rgba(34,26,66,0.98), rgba(15,10,30,0.98));
  border-top: 1px solid var(--pg2a-border);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 64px; padding: 4px 0;
}
.pg2a-bottomnav-btn {
  flex: 1; min-width: 60px; min-height: 56px;
  background: transparent; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--pg2a-slate); gap: 2px;
}
.pg2a-bottomnav-btn i { font-size: 22px; }
.pg2a-bottomnav-btn span { font-size: 1.05rem; font-weight: 600; }
.pg2a-bottomnav-btn.active { color: var(--pg2a-purple); }
.pg2a-bottomnav-btn.promo {
  position: relative; transform: translateY(-12px);
  background: linear-gradient(135deg, var(--pg2a-purple), var(--pg2a-forest));
  border-radius: 50%; width: 52px; height: 52px; flex: 0 0 52px;
  box-shadow: 0 6px 16px rgba(147,112,219,0.55); margin-top: 4px;
  align-self: center;
}
.pg2a-bottomnav-btn.promo i { color: #fff; font-size: 26px; }
.pg2a-bottomnav-btn.promo span { display: none; }

/* ---------- Mobile menu drawer ---------- */
.pg2a-drawer {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(8,5,18,0.6); opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.pg2a-drawer.open { opacity: 1; pointer-events: auto; }
.pg2a-drawer-panel {
  position: absolute; top: 0; right: -80%; width: 80%; height: 100%;
  background: var(--pg2a-bg-2); padding: 20px; overflow-y: auto;
  transition: right .25s ease;
}
.pg2a-drawer.open .pg2a-drawer-panel { right: 0; }
.pg2a-drawer-close {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--pg2a-card); border: 1px solid var(--pg2a-border);
  color: var(--pg2a-cream); display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; margin-left: auto; cursor: pointer;
}
.pg2a-drawer a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; border-radius: 12px; color: var(--pg2a-cream);
  font-size: 1.4rem; border-bottom: 1px solid rgba(147,112,219,0.15);
}
.pg2a-drawer a:active { background: var(--pg2a-card); }
.pg2a-drawer a i { color: var(--pg2a-purple); font-size: 20px; }

/* ---------- CTA sticky ---------- */
.pg2a-cta-row { display: flex; gap: 8px; padding: 16px; }
.pg2a-cta-row .pg2a-btn { flex: 1; padding: 12px; font-size: 1.5rem; }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .pg2a-bottomnav { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Mobile padding ---------- */
@media (max-width: 768px) {
  main.pg2a-main { padding-bottom: 84px; }
}

.pg2a-hidden { display: none !important; }
