/* ============================================================
   color-game.sbs - theme.css
   Class prefix: pg00-
   Palette: #2D2D2D | #A9A9A9 | #9400D3 | #9932CC | #8470FF
   Mobile-first (max-width: 430px container)
   ============================================================ */

:root {
  --pg00-bg: #2D2D2D;
  --pg00-bg-soft: #35303c;
  --pg00-bg-card: #3a3344;
  --pg00-text: #f3f0fa;
  --pg00-muted: #A9A9A9;
  --pg00-primary: #9400D3;
  --pg00-primary-2: #9932CC;
  --pg00-accent: #8470FF;
  --pg00-gold: #ffd25c;
  --pg00-border: rgba(132,112,255,.25);
  --pg00-radius: 14px;
  --pg00-shadow: 0 6px 24px rgba(0,0,0,.35);
  --pg00-grad: linear-gradient(135deg, #9400D3 0%, #9932CC 45%, #8470FF 100%);
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--pg00-bg);
  color: var(--pg00-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--pg00-accent); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Layout */
.pg00-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--pg00-bg);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 60px rgba(0,0,0,.5);
}
.pg00-container { width: 100%; padding: 0 14px; }
main.pg00-main { padding-bottom: 90px; }

/* ===================== Header ===================== */
.pg00-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(45,45,45,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pg00-border);
}
.pg00-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pg00-logo { display: flex; align-items: center; gap: 8px; }
.pg00-logo img { width: 28px; height: 28px; border-radius: 6px; }
.pg00-logo .pg00-brand {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--pg00-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: .3px;
}
.pg00-header-actions { display: flex; align-items: center; gap: 6px; }
.pg00-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 1.25rem;
  font-weight: 700;
  min-height: 36px;
  transition: transform .15s ease, opacity .15s ease;
}
.pg00-btn:active { transform: scale(.95); }
.pg00-btn-login {
  background: transparent;
  color: var(--pg00-text);
  border: 1px solid var(--pg00-accent);
}
.pg00-btn-register {
  background: var(--pg00-grad);
  color: #fff;
  box-shadow: 0 4px 14px rgba(148,0,211,.45);
}
.pg00-menu-toggle {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--pg00-bg-card);
  color: var(--pg00-text);
  font-size: 1.8rem;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Mobile menu (expandable) */
.pg00-mobile-menu {
  position: fixed;
  top: 52px; left: 0; right: 0;
  background: var(--pg00-bg-soft);
  border-bottom: 1px solid var(--pg00-border);
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
  z-index: 9999;
}
.pg00-mobile-menu.pg00-menu-open { max-height: 460px; }
.pg00-mobile-menu ul { list-style: none; padding: 6px 14px; }
.pg00-mobile-menu li a {
  display: block;
  padding: 12px 6px;
  color: var(--pg00-text);
  border-bottom: 1px solid rgba(132,112,255,.12);
  font-size: 1.35rem;
  font-weight: 600;
}
.pg00-mobile-menu li a:active { color: var(--pg00-accent); }

/* ===================== Hero / Carousel ===================== */
.pg00-hero { margin-top: 52px; padding: 12px 0 0; }
.pg00-carousel {
  position: relative;
  border-radius: var(--pg00-radius);
  overflow: hidden;
  box-shadow: var(--pg00-shadow);
}
.pg00-slide {
  display: none;
  position: relative;
}
.pg00-slide.pg00-slide-active { display: block; }
.pg00-slide img { width: 100%; height: 180px; object-fit: cover; }
.pg00-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  background: linear-gradient(to top, rgba(45,45,45,.95), transparent);
  font-size: 1.3rem;
  font-weight: 700;
}
.pg00-slide-cap span { color: var(--pg00-gold); }
.pg00-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,.45);
  color: #fff; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
}
.pg00-carousel-arrow.prev { left: 8px; }
.pg00-carousel-arrow.next { right: 8px; }
.pg00-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.pg00-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.5);
}
.pg00-dot.pg00-dot-active { background: var(--pg00-gold); width: 18px; border-radius: 4px; }

/* ===================== Section base ===================== */
.pg00-section { padding: 18px 0; }
.pg00-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.pg00-section-title {
  font-size: 1.5rem; font-weight: 800;
  display: flex; align-items: center; gap: 6px;
}
.pg00-section-title i { color: var(--pg00-accent); }
.pg00-section-more { font-size: 1.15rem; color: var(--pg00-muted); }

/* H1 */
.pg00-h1 {
  font-size: 2rem; line-height: 2.4rem; font-weight: 800;
  margin: 6px 0 10px;
  background: var(--pg00-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pg00-lead { color: var(--pg00-muted); font-size: 1.3rem; margin-bottom: 10px; }

/* ===================== Game grid ===================== */
.pg00-cat-tabs {
  display: flex; gap: 6px; overflow-x: auto;
  padding: 4px 0 10px; -ms-overflow-style: none; scrollbar-width: none;
}
.pg00-cat-tabs::-webkit-scrollbar { display: none; }
.pg00-cat-tab {
  flex: 0 0 auto;
  padding: 6px 14px; border-radius: 999px;
  background: var(--pg00-bg-card);
  color: var(--pg00-text);
  font-size: 1.2rem; font-weight: 600;
  white-space: nowrap;
}
.pg00-cat-tab:active { background: var(--pg00-primary); }

.pg00-cat-block { margin-bottom: 18px; }
.pg00-cat-title {
  font-size: 1.35rem; font-weight: 800; margin: 6px 0 8px;
  color: var(--pg00-gold);
  display: flex; align-items: center; gap: 6px;
}

.pg00-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pg00-game-card {
  background: var(--pg00-bg-card);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: transform .15s;
  border: 1px solid transparent;
}
.pg00-game-card:active { transform: scale(.96); border-color: var(--pg00-accent); }
.pg00-game-card img {
  width: 100%; height: 78px; object-fit: cover;
}
.pg00-game-name {
  font-size: 1.05rem; font-weight: 600;
  padding: 5px 4px; color: var(--pg00-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ===================== Cards / Features ===================== */
.pg00-card {
  background: var(--pg00-bg-card);
  border-radius: var(--pg00-radius);
  padding: 14px;
  box-shadow: var(--pg00-shadow);
  margin-bottom: 12px;
  border: 1px solid var(--pg00-border);
}
.pg00-card h3 {
  font-size: 1.35rem; font-weight: 800; margin-bottom: 8px;
  color: var(--pg00-text);
}
.pg00-card h3 i { color: var(--pg00-accent); margin-right: 6px; }
.pg00-card p { color: var(--pg00-muted); font-size: 1.25rem; margin-bottom: 6px; }
.pg00-card p strong, .pg00-card strong { color: var(--pg00-text); }

.pg00-feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.pg00-feature-item {
  background: rgba(132,112,255,.08);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}
.pg00-feature-item i { font-size: 2.2rem; color: var(--pg00-accent); margin-bottom: 4px; }
.pg00-feature-item b { display: block; font-size: 1.2rem; color: var(--pg00-text); }
.pg00-feature-item span { font-size: 1.05rem; color: var(--pg00-muted); }

/* Steps list */
.pg00-steps { list-style: none; counter-reset: step; }
.pg00-steps li {
  position: relative;
  padding: 8px 8px 8px 36px;
  font-size: 1.25rem; color: var(--pg00-muted);
  counter-increment: step;
}
.pg00-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 8px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--pg00-grad); color: #fff;
  font-size: 1.15rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Rules / checklist list inside cards */
.pg00-rules { list-style: none; margin: 6px 0 10px; }
.pg00-rules li {
  position: relative;
  padding: 6px 8px 6px 26px;
  font-size: 1.25rem; color: var(--pg00-muted);
}
.pg00-rules li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 2px; top: 6px;
  color: var(--pg00-accent); font-size: 1.3rem;
}

/* Inline promo link inside content */
.pg00-promo-link {
  color: var(--pg00-gold);
  font-weight: 700;
  border-bottom: 1px dashed var(--pg00-gold);
}

/* Big CTA */
.pg00-cta {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: var(--pg00-grad);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 6px 20px rgba(148,0,211,.5);
}
.pg00-cta:active { transform: scale(.98); }

/* RTP table */
.pg00-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.pg00-rtp-table th, .pg00-rtp-table td {
  padding: 8px; border-bottom: 1px solid var(--pg00-border); text-align: left;
}
.pg00-rtp-table th { color: var(--pg00-accent); font-weight: 700; }
.pg00-rtp-table td b { color: var(--pg00-gold); }

/* Testimonials */
.pg00-testi {
  background: var(--pg00-bg-card);
  border-radius: 10px; padding: 10px;
  margin-bottom: 8px;
}
.pg00-testi-stars { color: var(--pg00-gold); font-size: 1.1rem; }
.pg00-testi p { color: var(--pg00-muted); font-size: 1.2rem; margin-top: 4px; }
.pg00-testi b { color: var(--pg00-text); font-size: 1.15rem; }

/* Payment chips */
.pg00-pay-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pg00-pay-chip {
  background: var(--pg00-bg-card);
  padding: 8px 12px; border-radius: 999px;
  font-size: 1.15rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--pg00-border);
}
.pg00-pay-chip i { color: var(--pg00-accent); }

/* Winners */
.pg00-winner {
  display: flex; justify-content: space-between;
  padding: 6px 10px;
  background: rgba(132,112,255,.08);
  border-radius: 8px; margin-bottom: 6px;
  font-size: 1.15rem;
}
.pg00-winner b { color: var(--pg00-gold); }

/* FAQ */
.pg00-faq { margin-bottom: 8px; }
.pg00-faq summary {
  cursor: pointer; padding: 10px; font-weight: 700;
  background: var(--pg00-bg-card); border-radius: 10px;
  font-size: 1.25rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.pg00-faq summary::-webkit-details-marker { display: none; }
.pg00-faq[open] summary { color: var(--pg00-accent); }
.pg00-faq p { padding: 8px 10px; color: var(--pg00-muted); font-size: 1.2rem; }

/* SEO text block */
.pg00-seo-block { font-size: 1.2rem; color: var(--pg00-muted); line-height: 2rem; }
.pg00-seo-block h2 { color: var(--pg00-text); font-size: 1.5rem; margin: 12px 0 6px; }
.pg00-seo-block h3 { color: var(--pg00-accent); font-size: 1.3rem; margin: 10px 0 4px; }
.pg00-seo-block p { margin-bottom: 8px; }

/* Back to top */
.pg00-back-top {
  position: fixed; right: 14px; bottom: 80px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--pg00-grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
  z-index: 999;
}
.pg00-back-top.pg00-back-top-show { opacity: 1; pointer-events: auto; }

/* ===================== Footer ===================== */
.pg00-footer {
  background: var(--pg00-bg-soft);
  border-top: 1px solid var(--pg00-border);
  padding: 18px 14px 24px;
  margin-top: 10px;
}
.pg00-footer-brand {
  font-size: 1.6rem; font-weight: 800; margin-bottom: 6px;
  background: var(--pg00-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pg00-footer-desc { color: var(--pg00-muted); font-size: 1.2rem; margin-bottom: 12px; line-height: 1.9rem; }
.pg00-footer-promos {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
}
.pg00-footer-promos button, .pg00-footer-promos a {
  flex: 1 1 45%;
  padding: 8px; border-radius: 8px;
  background: var(--pg00-grad); color: #fff;
  font-size: 1.15rem; font-weight: 700;
  text-align: center; min-width: 0;
}
.pg00-footer-links {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  margin-bottom: 12px;
}
.pg00-footer-links a {
  color: var(--pg00-muted); font-size: 1.15rem;
  border-bottom: 1px dotted transparent;
}
.pg00-footer-links a:active { color: var(--pg00-accent); }
.pg00-footer-copy {
  color: var(--pg00-muted); font-size: 1.1rem;
  border-top: 1px solid var(--pg00-border); padding-top: 10px;
  text-align: center;
}

/* ===================== Bottom Nav ===================== */
.pg00-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: rgba(45,45,45,.98);
  border-top: 1px solid var(--pg00-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
}
.pg00-bottomnav-btn {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  color: var(--pg00-muted);
  font-size: 1rem; font-weight: 600;
  min-width: 60px; min-height: 60px;
  position: relative;
  transition: color .2s, transform .15s;
}
.pg00-bottomnav-btn i, .pg00-bottomnav-btn span.material-icons-outlined {
  font-size: 22px;
}
.pg00-bottomnav-btn:active { transform: scale(.9); color: var(--pg00-text); }
.pg00-bottomnav-btn.pg00-bottomnav-active { color: var(--pg00-gold); }
.pg00-bottomnav-btn.pg00-bottomnav-promo {
  color: #fff;
}
.pg00-bottomnav-btn.pg00-bottomnav-promo i {
  background: var(--pg00-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pg00-bottomnav-badge {
  position: absolute; top: 6px; right: 18px;
  background: var(--pg00-gold); color: #2D2D2D;
  font-size: .85rem; font-weight: 800;
  border-radius: 999px; padding: 1px 5px;
}

/* ===================== Desktop ===================== */
@media (min-width: 769px) {
  .pg00-bottomnav { display: none; }
  main.pg00-main { padding-bottom: 30px; }
  .pg00-wrapper { box-shadow: 0 0 80px rgba(0,0,0,.6); }
}

@media (max-width: 768px) {
  main.pg00-main { padding-bottom: 90px; }
}
