/*!
 * 8kbt.click theme (basefiles)
 * All custom classes use the pg6e- prefix per project convention.
 * Palette: #141414 / #FF4500 / #DCDCDC / #FF9500 / #BF360C
 * Root font-size: 62.5% -> 1rem = 10px (mobile-first).
 */

:root {
  --pg6e-bg: #141414;
  --pg6e-bg-soft: #1f1f1f;
  --pg6e-bg-card: #262626;
  --pg6e-primary: #FF4500;
  --pg6e-secondary: #FF9500;
  --pg6e-accent: #BF360C;
  --pg6e-text: #DCDCDC;
  --pg6e-text-dim: #9a9a9a;
  --pg6e-text-bright: #ffffff;
  --pg6e-border: rgba(255, 69, 0, 0.25);
  --pg6e-radius: 14px;
  --pg6e-radius-sm: 10px;
  --pg6e-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --pg6e-header-h: 6rem;
  --pg6e-bottomnav-h: 6.4rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(255, 69, 0, 0.18), transparent 60%),
    linear-gradient(180deg, #1a1410 0%, #141414 40%, #0f0f0f 100%);
  color: var(--pg6e-text);
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--pg6e-secondary); text-decoration: none; }
a:hover { color: var(--pg6e-primary); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { color: var(--pg6e-text-bright); line-height: 1.25; margin: 0 0 1rem; }
h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.7rem; }
p { margin: 0 0 1.2rem; }

/* ---- Layout helpers ---- */
.pg6e-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.pg6e-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }
.pg6e-section { padding: 2.4rem 0 1.6rem; }
.pg6e-section--alt { background: rgba(255, 255, 255, 0.02); }

/* ---- Header ---- */
.pg6e-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--pg6e-header-h);
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.98), rgba(20, 20, 20, 0.92));
  border-bottom: 1px solid var(--pg6e-border);
  backdrop-filter: blur(10px);
}
.pg6e-header-inner {
  max-width: 430px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem;
}
.pg6e-brand { display: flex; align-items: center; gap: 0.7rem; color: var(--pg6e-text-bright); }
.pg6e-brand img { width: 30px; height: 30px; border-radius: 8px; }
.pg6e-brand-name {
  font-size: 1.8rem; font-weight: 800; letter-spacing: 0.4px;
  background: linear-gradient(90deg, #FF9500, #FF4500);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.pg6e-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.pg6e-menu-toggle {
  background: transparent; border: 0; color: var(--pg6e-text-bright);
  font-size: 2.2rem; padding: 0.6rem; cursor: pointer; line-height: 1;
}
.pg6e-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 700; border: 0; border-radius: 999px; cursor: pointer;
  padding: 0.8rem 1.4rem; font-size: 1.3rem; min-height: 40px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.pg6e-btn:active { transform: scale(0.96); }
.pg6e-btn--login {
  background: transparent; color: var(--pg6e-text-bright);
  border: 1px solid var(--pg6e-primary);
}
.pg6e-btn--register {
  background: linear-gradient(90deg, #FF4500, #FF9500);
  color: #1a0f00; box-shadow: 0 6px 16px rgba(255, 69, 0, 0.35);
}
.pg6e-btn--block { width: 100%; padding: 1.2rem; font-size: 1.5rem; }
.pg6e-btn--lg { padding: 1.1rem 2rem; font-size: 1.5rem; }

/* ---- Mobile slide-down menu ---- */
.pg6e-menu-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55);
  opacity: 0; pointer-events: none; z-index: 9998; transition: opacity 0.25s ease;
}
.pg6e-backdrop-show { opacity: 1; pointer-events: auto; }
.pg6e-mobile-menu {
  position: fixed; top: var(--pg6e-header-h); left: 0; right: 0; z-index: 9999;
  background: #1a1a1a; border-bottom: 1px solid var(--pg6e-border);
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.pg6e-menu-open { max-height: 460px; }
.pg6e-mobile-menu ul { list-style: none; margin: 0; padding: 0.4rem 0; }
.pg6e-mobile-menu li a {
  display: block; padding: 1.1rem 1.6rem; color: var(--pg6e-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-weight: 600;
}
.pg6e-mobile-menu li a:hover { background: rgba(255, 69, 0, 0.1); color: var(--pg6e-secondary); }

/* ---- Main content ---- */
.pg6e-main { padding-top: calc(var(--pg6e-header-h) + 1rem); padding-bottom: 1rem; }

/* ---- Banner carousel ---- */
.pg6e-banner {
  position: relative; border-radius: var(--pg6e-radius); overflow: hidden;
  box-shadow: var(--pg6e-shadow); margin-bottom: 1.4rem;
}
.pg6e-banner-track { position: relative; }
.pg6e-banner-slide {
  display: none; cursor: pointer; position: relative;
}
.pg6e-banner-slide img { width: 100%; height: 180px; object-fit: cover; }
.pg6e-banner-active { display: block; }
.pg6e-banner-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
  color: #fff; font-size: 1.4rem; font-weight: 700;
}
.pg6e-banner-dots {
  position: absolute; bottom: 10px; left: 0; right: 0; display: flex;
  justify-content: center; gap: 6px;
}
.pg6e-banner-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.5); transition: background 0.2s ease;
}
.pg6e-dot-active { background: var(--pg6e-primary); }
.pg6e-banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4); color: #fff; border: 0;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  font-size: 1.6rem; line-height: 1;
}
.pg6e-banner-arrow--prev { left: 8px; }
.pg6e-banner-arrow--next { right: 8px; }

/* ---- Game grid ---- */
.pg6e-game-block { margin-bottom: 1.6rem; }
.pg6e-block-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 1.4rem 0 0.9rem;
}
.pg6e-block-title {
  font-size: 1.7rem; font-weight: 800; color: var(--pg6e-text-bright);
  display: flex; align-items: center; gap: 0.5rem;
}
.pg6e-block-title i { color: var(--pg6e-primary); }
.pg6e-block-link { font-size: 1.2rem; color: var(--pg6e-secondary); font-weight: 700; }
.pg6e-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem;
}
.pg6e-card {
  background: var(--pg6e-bg-card); border-radius: var(--pg6e-radius-sm);
  overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}
.pg6e-card:hover { transform: translateY(-3px); box-shadow: var(--pg6e-shadow); }
.pg6e-card img { width: 100%; height: 84px; object-fit: cover; }
.pg6e-card-name {
  font-size: 1.15rem; color: var(--pg6e-text); padding: 0.5rem 0.4rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-weight: 600;
}
.pg6e-card-tag {
  display: inline-block; font-size: 1rem; padding: 1px 7px;
  background: rgba(255, 69, 0, 0.18); color: var(--pg6e-secondary);
  border-radius: 6px; margin-bottom: 0.4rem;
}

/* ---- Info modules ---- */
.pg6e-card-panel {
  background: var(--pg6e-bg-card); border-radius: var(--pg6e-radius);
  padding: 1.4rem; border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--pg6e-shadow); margin-bottom: 1.4rem;
}
.pg6e-card-panel h2 { color: var(--pg6e-secondary); }
.pg6e-card-panel h3 { color: var(--pg6e-text-bright); }
.pg6e-list { padding-left: 1.6rem; margin: 0 0 1.2rem; }
.pg6e-list li { margin-bottom: 0.5rem; }
.pg6e-steps { counter-reset: step; list-style: none; padding: 0; }
.pg6e-steps li {
  position: relative; padding: 0.8rem 0.8rem 0.8rem 3.4rem;
  margin-bottom: 0.6rem; background: rgba(255, 255, 255, 0.03);
  border-radius: var(--pg6e-radius-sm);
}
.pg6e-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%);
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: linear-gradient(135deg, #FF4500, #FF9500); color: #1a0f00;
  font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}

/* ---- CTA banner ---- */
.pg6e-cta {
  background: linear-gradient(135deg, #BF360C 0%, #FF4500 60%, #FF9500 100%);
  border-radius: var(--pg6e-radius); padding: 1.6rem; text-align: center;
  color: #fff; margin: 1.6rem 0; box-shadow: var(--pg6e-shadow);
}
.pg6e-cta h2 { color: #fff; }
.pg6e-cta p { color: rgba(255, 255, 255, 0.92); }
.pg6e-cta .pg6e-btn { background: #fff; color: #BF360C; margin-top: 0.6rem; }

/* ---- Inline promo text link ---- */
.pg6e-promo-link {
  color: var(--pg6e-primary); font-weight: 800; cursor: pointer;
  border-bottom: 1px dashed var(--pg6e-primary);
}

/* ---- Stats grid ---- */
.pg6e-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.pg6e-stat {
  background: rgba(255, 255, 255, 0.04); border-radius: var(--pg6e-radius-sm);
  padding: 1rem; text-align: center;
}
.pg6e-stat-num { font-size: 2rem; font-weight: 800; color: var(--pg6e-secondary); }
.pg6e-stat-label { font-size: 1.2rem; color: var(--pg6e-text-dim); }

/* ---- Testimonials ---- */
.pg6e-quote {
  background: rgba(255, 255, 255, 0.03); border-left: 3px solid var(--pg6e-primary);
  padding: 0.9rem 1rem; border-radius: 0 var(--pg6e-radius-sm) var(--pg6e-radius-sm) 0;
  margin-bottom: 0.8rem;
}
.pg6e-quote-author { font-size: 1.15rem; color: var(--pg6e-secondary); font-weight: 700; margin-top: 0.4rem; }

/* ---- Payment chips ---- */
.pg6e-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pg6e-chip {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px; padding: 0.5rem 1rem; font-size: 1.15rem; color: var(--pg6e-text);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.pg6e-chip i { color: var(--pg6e-secondary); }

/* ---- Winners ---- */
.pg6e-winner-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
  font-size: 1.25rem;
}
.pg6e-winner-name { color: var(--pg6e-text-bright); font-weight: 700; }
.pg6e-winner-amount { color: #FF9500; font-weight: 800; }

/* ---- Footer ---- */
.pg6e-footer {
  background: #0f0f0f; border-top: 1px solid var(--pg6e-border);
  padding: 2rem 1.2rem; margin-top: 1.5rem; color: var(--pg6e-text-dim);
}
.pg6e-footer p { color: var(--pg6e-text-dim); font-size: 1.3rem; }
.pg6e-footer h4 { color: var(--pg6e-secondary); font-size: 1.4rem; margin-bottom: 0.6rem; }
.pg6e-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin: 0.8rem 0 1rem;
}
.pg6e-footer-links a { color: var(--pg6e-text); font-size: 1.2rem; }
.pg6e-footer-promos {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.6rem 0 1rem;
}
.pg6e-footer-copy { font-size: 1.1rem; color: var(--pg6e-text-dim); border-top: 1px solid rgba(255,255,255,0.06); padding-top: 0.8rem; }

/* ---- Mobile bottom navigation ---- */
.pg6e-bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  height: var(--pg6e-bottomnav-h);
  background: linear-gradient(180deg, #1c1c1c, #0e0e0e);
  border-top: 1px solid var(--pg6e-border);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.5);
}
.pg6e-bottomnav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: 0; color: var(--pg6e-text-dim);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer; font-size: 1rem; font-weight: 600;
  transition: color 0.2s ease, transform 0.15s ease;
}
.pg6e-bottomnav-btn i,
.pg6e-bottomnav-btn .material-icons-outlined,
.pg6e-bottomnav-btn .ion { font-size: 24px; }
.pg6e-bottomnav-btn:active { transform: scale(0.92); }
.pg6e-bottomnav-btn:hover { color: var(--pg6e-secondary); }
.pg6e-bottomnav-active { color: var(--pg6e-primary); }
.pg6e-bottomnav-active::after {
  content: ""; display: block; width: 26px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, #FF4500, #FF9500); margin-top: 2px;
}
.pg6e-bottomnav-badge {
  position: absolute; transform: translate(8px, -8px);
  background: #FF4500; color: #fff; font-size: 0.9rem;
  border-radius: 999px; padding: 0 5px; min-width: 16px; line-height: 16px;
}

/* ---- Reveal animation ---- */
.pg6e-reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.pg6e-revealed { opacity: 1; transform: none; }

/* ---- Desktop: hide bottom nav, widen container ---- */
@media (min-width: 769px) {
  .pg6e-bottomnav { display: none; }
  .pg6e-container, .pg6e-wrapper, .pg6e-header-inner { max-width: 760px; }
}

/* ---- Mobile bottom padding clearance ---- */
@media (max-width: 768px) {
  .pg6e-main { padding-bottom: calc(var(--pg6e-bottomnav-h) + 1.2rem); }
  .pg6e-footer { padding-bottom: calc(var(--pg6e-bottomnav-h) + 1.5rem); }
}
