/* =========================================================
 * Tongits Wars - theme-8c27.css
 * All custom classes use the pg8c- prefix
 * Palette: #BAE1FF | #FF0000 | #FF91A4 | #1C2833 | #CD5C5C
 * Dark background, light text, mobile-first (max 430px)
 * ========================================================= */

:root {
  --pg8c-primary: #FF0000;
  --pg8c-accent: #FF91A4;
  --pg8c-blue: #BAE1FF;
  --pg8c-bg: #1C2833;
  --pg8c-bg-alt: #14202b;
  --pg8c-card: #20323f;
  --pg8c-text: #f3f7fb;
  --pg8c-muted: #9fb1c0;
  --pg8c-warm: #CD5C5C;
  --pg8c-gold: #f5c542;
  --pg8c-green: #2ecc71;
  --pg8c-radius: 14px;
  --pg8c-header-h: 60px;
  --pg8c-bottomnav-h: 62px;
}

* { box-sizing: border-box; }

html { font-size: 62.5%; }

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  background: var(--pg8c-bg);
  color: var(--pg8c-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--pg8c-blue); text-decoration: none; }
a:hover { color: var(--pg8c-accent); }

h1, h2, h3, h4 { color: #ffffff; margin: 0 0 .8rem; line-height: 1.25; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.65rem; }
h4 { font-size: 1.45rem; }
p  { margin: 0 0 1rem; }

.pg8c-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

/* ===== Header ===== */
.pg8c-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--pg8c-header-h);
  background: linear-gradient(90deg, #14202b 0%, #1C2833 60%, #2a1216 100%);
  border-bottom: 1px solid rgba(255,0,0,.35);
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.pg8c-header .pg8c-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}
.pg8c-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.6rem;
}
.pg8c-brand img { width: 28px; height: 28px; border-radius: 6px; }
.pg8c-brand small { color: var(--pg8c-accent); font-size: 1rem; }

.pg8c-header-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.pg8c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: 0;
  border-radius: 30px;
  padding: .7rem 1.2rem;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 38px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.pg8c-btn:active { transform: scale(.96); }
.pg8c-btn-login {
  background: transparent;
  color: #fff;
  border: 1px solid var(--pg8c-blue);
}
.pg8c-btn-register {
  background: linear-gradient(90deg, #FF0000, #FF91A4);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,0,0,.35);
}
.pg8c-btn-cta {
  background: linear-gradient(90deg, var(--pg8c-gold), var(--pg8c-warm));
  color: #1C2833;
  font-weight: 800;
  padding: 1rem 1.8rem;
  font-size: 1.4rem;
  box-shadow: 0 6px 18px rgba(205,92,92,.4);
}
.pg8c-menu-btn {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.6rem;
  padding: .5rem;
  cursor: pointer;
}

/* ===== Mobile Menu ===== */
.pg8c-mobile-menu {
  position: fixed;
  top: var(--pg8c-header-h);
  left: 0; right: 0;
  background: var(--pg8c-bg-alt);
  border-bottom: 1px solid rgba(255,145,164,.25);
  transform: translateY(-130%);
  transition: transform .28s ease;
  z-index: 9999;
  padding: .8rem 1rem 1.2rem;
  max-height: 70vh;
  overflow-y: auto;
}
.pg8c-mobile-menu.pg8c-menu-open { transform: translateY(0); }
.pg8c-mobile-menu a {
  display: block;
  padding: .9rem 1rem;
  color: var(--pg8c-text);
  border-bottom: 1px solid rgba(186,225,255,.08);
  font-size: 1.35rem;
}
.pg8c-mobile-menu a:hover { background: rgba(255,0,0,.12); color: #fff; }

/* ===== Hero carousel ===== */
.pg8c-hero {
  margin-top: var(--pg8c-header-h);
  position: relative;
  width: 100%;
  overflow: hidden;
}
.pg8c-hero-track { position: relative; width: 100%; aspect-ratio: 16/9; }
.pg8c-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
}
.pg8c-hero-slide.pg8c-active { opacity: 1; }
.pg8c-hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.pg8c-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,40,51,.15) 0%, rgba(28,40,51,.85) 100%);
}
.pg8c-hero-caption {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 2.4rem;
  z-index: 2;
}
.pg8c-hero-caption h2 { color: #fff; font-size: 1.9rem; }
.pg8c-hero-caption p { color: var(--pg8c-blue); font-size: 1.25rem; }
.pg8c-hero-dots {
  position: absolute;
  bottom: .8rem; left: 0; right: 0;
  text-align: center;
  z-index: 3;
}
.pg8c-hero-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  margin: 0 3px;
  cursor: pointer;
}
.pg8c-hero-dot.pg8c-active { background: var(--pg8c-primary); }

/* ===== Layout sections ===== */
.pg8c-section {
  padding: 1.6rem 1rem;
}
.pg8c-section-alt { background: var(--pg8c-bg-alt); }
.pg8c-section-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
}
.pg8c-section-title h2 { font-size: 1.75rem; color: #fff; }
.pg8c-section-title .pg8c-icon { color: var(--pg8c-accent); font-size: 1.6rem; }
.pg8c-pill {
  display: inline-block;
  background: rgba(255,0,0,.15);
  color: var(--pg8c-accent);
  font-size: 1.05rem;
  padding: .25rem .7rem;
  border-radius: 20px;
  margin-left: auto;
}

/* ===== Game grid ===== */
.pg8c-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .7rem;
}
.pg8c-game-card {
  background: var(--pg8c-card);
  border-radius: var(--pg8c-radius);
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  border: 1px solid rgba(186,225,255,.08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.pg8c-game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
  border-color: rgba(255,145,164,.4);
}
.pg8c-game-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: #0e1820;
}
.pg8c-game-name {
  font-size: 1.05rem;
  color: var(--pg8c-text);
  padding: .35rem .3rem .5rem;
  min-height: 3rem;
  line-height: 1.2;
  word-break: break-word;
}
.pg8c-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== Category badges ===== */
.pg8c-cat-strip {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: .5rem;
  margin-bottom: .8rem;
}
.pg8c-cat-strip::-webkit-scrollbar { display: none; }
.pg8c-cat-tag {
  flex: 0 0 auto;
  background: rgba(186,225,255,.1);
  color: var(--pg8c-blue);
  padding: .45rem 1rem;
  border-radius: 20px;
  font-size: 1.2rem;
  white-space: nowrap;
}
.pg8c-cat-tag.pg8c-on { background: var(--pg8c-primary); color: #fff; }

/* ===== Feature / info cards ===== */
.pg8c-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .8rem;
}
.pg8c-feature {
  background: var(--pg8c-card);
  padding: 1rem;
  border-radius: var(--pg8c-radius);
  border-left: 3px solid var(--pg8c-primary);
}
.pg8c-feature h3 { font-size: 1.4rem; }
.pg8c-feature p { font-size: 1.2rem; color: var(--pg8c-muted); margin: 0; }
.pg8c-feature i { color: var(--pg8c-accent); font-size: 1.5rem; }

/* ===== Stat tiles ===== */
.pg8c-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .6rem;
}
.pg8c-stat {
  background: linear-gradient(135deg, #20323f, #16232e);
  padding: .9rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(245,197,66,.15);
}
.pg8c-stat .pg8c-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--pg8c-gold);
}
.pg8c-stat .pg8c-label { font-size: 1.05rem; color: var(--pg8c-muted); }

/* ===== Testimonials ===== */
.pg8c-testimonial {
  background: var(--pg8c-card);
  border-radius: var(--pg8c-radius);
  padding: 1rem;
  margin-bottom: .8rem;
  border-left: 3px solid var(--pg8c-accent);
}
.pg8c-testimonial .pg8c-stars { color: var(--pg8c-gold); font-size: 1.1rem; }
.pg8c-testimonial p { margin: .4rem 0; font-size: 1.2rem; }
.pg8c-testimonial cite { color: var(--pg8c-blue); font-style: normal; font-size: 1.1rem; }

/* ===== Payments ===== */
.pg8c-pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
}
.pg8c-pay {
  background: var(--pg8c-card);
  border-radius: 10px;
  padding: .8rem .3rem;
  text-align: center;
  font-size: 1.05rem;
  color: var(--pg8c-blue);
}
.pg8c-pay i { font-size: 1.6rem; display: block; margin-bottom: .3rem; color: #fff; }

/* ===== Winners ===== */
.pg8c-winner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem .9rem;
  background: var(--pg8c-card);
  border-radius: 10px;
  margin-bottom: .5rem;
  font-size: 1.2rem;
}
.pg8c-winner .pg8c-amt { color: var(--pg8c-green); font-weight: 700; }

/* ===== FAQ ===== */
.pg8c-faq-item {
  background: var(--pg8c-card);
  border-radius: 10px;
  margin-bottom: .6rem;
  overflow: hidden;
}
.pg8c-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .9rem 1rem;
  cursor: pointer;
  font-weight: 700;
  color: #fff;
  font-size: 1.25rem;
}
.pg8c-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 1rem;
  color: var(--pg8c-muted);
  font-size: 1.18rem;
}
.pg8c-faq-open .pg8c-faq-a { max-height: 320px; padding: 0 1rem 1rem; }

/* ===== Promo anchor block ===== */
.pg8c-cta-block {
  background: linear-gradient(135deg, rgba(255,0,0,.18), rgba(255,145,164,.12));
  border: 1px solid rgba(255,145,164,.35);
  border-radius: var(--pg8c-radius);
  padding: 1.2rem;
  text-align: center;
  margin: 1rem 0;
}
.pg8c-cta-block h3 { color: #fff; }
.pg8c-cta-block p { color: var(--pg8c-blue); }
.pg8c-inline-link {
  color: var(--pg8c-accent);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* ===== Footer ===== */
.pg8c-footer {
  background: var(--pg8c-bg-alt);
  padding: 1.6rem 1rem calc(var(--pg8c-bottomnav-h) + 1.4rem);
  border-top: 1px solid rgba(255,145,164,.25);
  font-size: 1.2rem;
  color: var(--pg8c-muted);
}
.pg8c-footer h4 { color: #fff; margin-bottom: .5rem; }
.pg8c-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .4rem .8rem;
  margin: .8rem 0;
}
.pg8c-footer-links a { font-size: 1.15rem; color: var(--pg8c-blue); }
.pg8c-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .8rem 0;
}
.pg8c-footer-promo button {
  background: var(--pg8c-primary);
  color: #fff;
  border: 0;
  border-radius: 20px;
  padding: .5rem 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}
.pg8c-copy { margin-top: .8rem; color: var(--pg8c-muted); font-size: 1.05rem; text-align: center; }

/* ===== Bottom nav (mobile only) ===== */
.pg8c-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--pg8c-bottomnav-h);
  background: linear-gradient(180deg, #1C2833, #0e1820);
  border-top: 1px solid rgba(255,0,0,.35);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.pg8c-bottomnav-btn {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--pg8c-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  min-width: 60px;
  min-height: 60px;
  padding: .25rem;
  cursor: pointer;
  transition: color .15s ease, transform .15s ease;
}
.pg8c-bottomnav-btn .pg8c-ic { font-size: 22px; line-height: 1; }
.pg8c-bottomnav-btn .pg8c-tx { font-size: 11px; }
.pg8c-bottomnav-btn.pg8c-active,
.pg8c-bottomnav-btn:active { color: var(--pg8c-primary); transform: scale(.95); }
.pg8c-bottomnav-btn.pg8c-active .pg8c-ic { color: var(--pg8c-accent); }
.pg8c-nav-badge {
  position: absolute;
  top: 4px; right: 18px;
  background: var(--pg8c-gold);
  color: #1C2833;
  font-size: 9px;
  font-weight: 800;
  border-radius: 50%;
  width: 16px; height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Content padding for fixed bars ===== */
.pg8c-main {
  padding-top: var(--pg8c-header-h);
  padding-bottom: calc(var(--pg8c-bottomnav-h) + 1rem);
}

/* ===== Desktop adjustments ===== */
@media (min-width: 769px) {
  .pg8c-bottomnav { display: none; }
  .pg8c-footer { padding-bottom: 1.6rem; }
  .pg8c-main { padding-bottom: 1rem; }
  .pg8c-wrapper { max-width: 760px; }
  .pg8c-grid { grid-template-columns: repeat(6, 1fr); }
  .pg8c-cards { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .pg8c-main { padding-bottom: calc(var(--pg8c-bottomnav-h) + 1rem); }
}

/* ===== Helpers ===== */
.pg8c-text-blue { color: var(--pg8c-blue); }
.pg8c-text-gold { color: var(--pg8c-gold); }
.pg8c-text-accent { color: var(--pg8c-accent); }
.pg8c-list { padding-left: 1.2rem; }
.pg8c-list li { margin-bottom: .4rem; }
.pg8c-note { background: rgba(186,225,255,.08); padding: .8rem 1rem; border-radius: 10px; font-size: 1.18rem; color: var(--pg8c-muted); }
.pg8c-divider { height: 1px; background: rgba(255,255,255,.08); margin: 1.2rem 0; border: 0; }
