/* ============================================================
 * Color Game Online - theme-d6c8.css
 * All custom classes use the dynamic "sd6c-" prefix.
 * Palette: #FFD700 (gold) | #9370DB (purple) | #FF8C00 (orange)
 *          #FFAA00 (amber) | #212F3D (dark navy bg)
 * Mobile-first. Root font 62.5% for rem scaling.
 * ============================================================ */

:root {
  --sd6c-bg: #212F3D;
  --sd6c-bg-2: #18222e;
  --sd6c-bg-3: #0f1822;
  --sd6c-text: #F5F7FA;
  --sd6c-text-dim: #b6c2cf;
  --sd6c-primary: #FFD700;
  --sd6c-secondary: #9370DB;
  --sd6c-accent: #FF8C00;
  --sd6c-amber: #FFAA00;
  --sd6c-success: #2ecc71;
  --sd6c-danger: #ff5e5e;
  --sd6c-card: #243244;
  --sd6c-border: rgba(255, 215, 0, 0.18);
  --sd6c-radius: 12px;
  --sd6c-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  --sd6c-gradient: linear-gradient(135deg, #FF8C00 0%, #FFD700 50%, #9370DB 100%);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  background: var(--sd6c-bg);
  color: var(--sd6c-text);
  line-height: 1.5;
  font-size: 1.5rem;
  overflow-x: hidden;
}

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

a {
  color: var(--sd6c-primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--sd6c-amber); }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  line-height: 1.3;
  font-weight: 700;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.8rem; }
p { margin: 0 0 1em; }

.sd6c-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}

.sd6c-wrapper { padding-bottom: 80px; }

/* ---------- Header / Navigation ---------- */
.sd6c-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(33,47,61,0.98) 0%, rgba(33,47,61,0.92) 100%);
  border-bottom: 1px solid var(--sd6c-border);
  backdrop-filter: blur(8px);
}
.sd6c-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 0 12px;
}
.sd6c-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sd6c-text);
  font-weight: 800;
  font-size: 1.55rem;
}
.sd6c-logo img { width: 30px; height: 30px; border-radius: 6px; }
.sd6c-logo span {
  background: var(--sd6c-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sd6c-header-actions { display: flex; align-items: center; gap: 8px; }
.sd6c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 16px;
  border: none;
  border-radius: 20px;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.sd6c-btn:hover { transform: translateY(-1px); opacity: 0.95; }
.sd6c-btn-primary {
  background: var(--sd6c-gradient);
  color: #1a1a1a;
  box-shadow: 0 4px 14px rgba(255,140,0,0.4);
}
.sd6c-btn-ghost {
  background: transparent;
  color: var(--sd6c-text);
  border: 1px solid var(--sd6c-border);
}
.sd6c-btn-block {
  display: flex;
  width: 100%;
  padding: 14px;
  font-size: 1.6rem;
  border-radius: 14px;
}

.sd6c-menu-btn {
  background: transparent;
  border: 0;
  color: var(--sd6c-text);
  font-size: 2.2rem;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

/* ---------- Mobile dropdown menu ---------- */
.sd6c-mobile-menu {
  position: fixed;
  top: 58px; left: 0; right: 0;
  background: var(--sd6c-bg-2);
  border-bottom: 1px solid var(--sd6c-border);
  padding: 10px 14px 18px;
  transform: translateY(-130%);
  transition: transform 0.3s ease;
  z-index: 9999;
  max-height: 70vh;
  overflow-y: auto;
}
.sd6c-mobile-menu.sd6c-menu-open { transform: translateY(0); }
.sd6c-mobile-menu a {
  display: block;
  padding: 11px 12px;
  color: var(--sd6c-text);
  border-radius: 8px;
  font-size: 1.4rem;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
}
.sd6c-mobile-menu a:hover { background: rgba(255,215,0,0.08); color: var(--sd6c-primary); }

/* ---------- Hero / Carousel ---------- */
.sd6c-hero {
  margin-top: 58px;
  position: relative;
  overflow: hidden;
}
.sd6c-carousel { position: relative; }
.sd6c-slides { position: relative; height: 200px; }
.sd6c-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--sd6c-transition, 600ms) ease;
  cursor: pointer;
}
.sd6c-slide img { width: 100%; height: 200px; object-fit: cover; }
.sd6c-slide.sd6c-slide-active { opacity: 1; }
.sd6c-slide-caption {
  position: absolute;
  left: 14px; bottom: 14px;
  background: rgba(15,24,34,0.7);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--sd6c-primary);
}
.sd6c-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0;
  background: var(--sd6c-bg-2);
}
.sd6c-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: 0; cursor: pointer; padding: 0;
}
.sd6c-dot.sd6c-dot-active { background: var(--sd6c-primary); width: 22px; border-radius: 4px; }

/* ---------- Section ---------- */
.sd6c-section { padding: 26px 0; }
.sd6c-section-alt { background: var(--sd6c-bg-2); }
.sd6c-section-title {
  font-size: 2rem;
  margin-bottom: 16px;
  padding-left: 10px;
  border-left: 4px solid var(--sd6c-primary);
}
.sd6c-section-title small {
  display: block;
  font-size: 1.25rem;
  color: var(--sd6c-text-dim);
  font-weight: 400;
  margin-top: 4px;
}

/* ---------- Filter tabs ---------- */
.sd6c-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 14px;
  -webkit-overflow-scrolling: touch;
}
.sd6c-filter-tab {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 18px;
  background: var(--sd6c-card);
  color: var(--sd6c-text);
  font-size: 1.3rem;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.sd6c-filter-tab.sd6c-filter-active {
  background: var(--sd6c-gradient);
  color: #1a1a1a;
  font-weight: 700;
}

/* ---------- Game grid ---------- */
.sd6c-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.sd6c-game-card {
  background: var(--sd6c-card);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.2s;
  border: 1px solid transparent;
}
.sd6c-game-card:hover {
  transform: translateY(-3px);
  border-color: var(--sd6c-border);
  box-shadow: var(--sd6c-shadow);
}
.sd6c-game-card img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  background: #0f1822;
}
.sd6c-game-card .sd6c-game-name {
  font-size: 1.18rem;
  padding: 6px 4px;
  color: var(--sd6c-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sd6c-game-card .sd6c-game-cta {
  display: block;
  font-size: 1.1rem;
  padding: 4px;
  background: rgba(255,215,0,0.12);
  color: var(--sd6c-primary);
}

.sd6c-group-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 4px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sd6c-primary);
}
.sd6c-group-head i { color: var(--sd6c-accent); }

/* ---------- Feature / Info cards ---------- */
.sd6c-card {
  background: var(--sd6c-card);
  border-radius: var(--sd6c-radius);
  padding: 16px;
  box-shadow: var(--sd6c-shadow);
  border: 1px solid var(--sd6c-border);
  margin-bottom: 14px;
}
.sd6c-card h3 { color: var(--sd6c-primary); }
.sd6c-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.sd6c-feature {
  background: var(--sd6c-card);
  padding: 14px;
  border-radius: 10px;
  text-align: center;
}
.sd6c-feature i {
  font-size: 2.6rem;
  color: var(--sd6c-accent);
  margin-bottom: 6px;
  display: block;
}
.sd6c-feature h4 { font-size: 1.4rem; margin: 0 0 4px; color: var(--sd6c-text); }
.sd6c-feature p { font-size: 1.2rem; color: var(--sd6c-text-dim); margin: 0; }

/* ---------- Promo / Play banner ---------- */
.sd6c-promo {
  background: var(--sd6c-gradient);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  color: #1a1a1a;
  margin: 18px 0;
}
.sd6c-promo h3 { color: #1a1a1a; font-size: 1.9rem; margin-bottom: 6px; }
.sd6c-promo p { margin-bottom: 12px; font-weight: 600; }
.sd6c-promo .sd6c-btn { background: #212F3D; color: #FFD700; }

/* ---------- Testimonials ---------- */
.sd6c-testimonials { display: grid; gap: 12px; }
.sd6c-testimonial {
  background: var(--sd6c-card);
  border-left: 3px solid var(--sd6c-secondary);
  border-radius: 8px;
  padding: 12px 14px;
}
.sd6c-testimonial .sd6c-stars { color: var(--sd6c-primary); font-size: 1.2rem; }
.sd6c-testimonial p { margin: 6px 0; font-size: 1.3rem; }
.sd6c-testimonial .sd6c-author { font-size: 1.2rem; color: var(--sd6c-text-dim); }

/* ---------- Payment methods ---------- */
.sd6c-payments {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.sd6c-pay {
  background: #fff;
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
  font-size: 1rem;
  color: #212F3D;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Winners ticker ---------- */
.sd6c-winner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--sd6c-card);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 1.25rem;
}
.sd6c-winner b { color: var(--sd6c-primary); }

/* ---------- FAQ ---------- */
.sd6c-faq-list { display: grid; gap: 8px; }
.sd6c-faq-item {
  background: var(--sd6c-card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid transparent;
}
.sd6c-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--sd6c-text);
  border: 0;
  padding: 12px 14px;
  font-size: 1.35rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sd6c-faq-q::after { content: "+"; font-size: 1.8rem; color: var(--sd6c-primary); }
.sd6c-faq-item.sd6c-faq-open .sd6c-faq-q::after { content: "-"; }
.sd6c-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 14px;
  color: var(--sd6c-text-dim);
  font-size: 1.25rem;
}
.sd6c-faq-item.sd6c-faq-open .sd6c-faq-a {
  max-height: 320px;
  padding: 0 14px 14px;
}

/* ---------- Tricks / list ---------- */
.sd6c-list { padding-left: 18px; margin: 0 0 12px; }
.sd6c-list li { margin-bottom: 6px; font-size: 1.3rem; }

/* ---------- Footer ---------- */
.sd6c-footer {
  background: var(--sd6c-bg-3);
  padding: 26px 14px 14px;
  margin-top: 20px;
  border-top: 2px solid var(--sd6c-primary);
}
.sd6c-footer h4 { color: var(--sd6c-primary); font-size: 1.5rem; margin-bottom: 10px; }
.sd6c-footer p { font-size: 1.25rem; color: var(--sd6c-text-dim); }
.sd6c-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 12px 0;
}
.sd6c-footer-links a {
  color: var(--sd6c-text);
  font-size: 1.2rem;
  padding: 4px 0;
}
.sd6c-footer-cta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.sd6c-footer-copy {
  text-align: center;
  font-size: 1.15rem;
  color: var(--sd6c-text-dim);
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ---------- Mobile Bottom Navigation ---------- */
.sd6c-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, var(--sd6c-bg-2), var(--sd6c-bg-3));
  border-top: 1px solid var(--sd6c-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.4);
}
.sd6c-bottomnav a, .sd6c-bottomnav button {
  flex: 1;
  background: transparent;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--sd6c-text-dim);
  font-size: 1rem;
  text-decoration: none;
  min-width: 60px;
  min-height: 60px;
  transition: color 0.2s, transform 0.18s;
  position: relative;
}
.sd6c-bottomnav a:active, .sd6c-bottomnav button:active { transform: scale(0.9); }
.sd6c-bottomnav i { font-size: 22px; }
.sd6c-bottomnav .material-icons { font-size: 24px; }
.sd6c-bottomnav a:hover, .sd6c-bottomnav button:hover { color: var(--sd6c-primary); }
.sd6c-bottomnav .sd6c-bn-active { color: var(--sd6c-primary); }
.sd6c-bottomnav .sd6c-bn-active::before {
  content: "";
  position: absolute;
  top: 0; left: 25%; right: 25%;
  height: 3px;
  background: var(--sd6c-gradient);
  border-radius: 0 0 4px 4px;
}

/* ---------- Back to top ---------- */
.sd6c-totop {
  position: fixed;
  right: 14px;
  bottom: 76px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sd6c-gradient);
  color: #1a1a1a;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.2s;
  z-index: 999;
}
.sd6c-totop.sd6c-totop-show { opacity: 1; pointer-events: auto; }

/* ---------- Reveal animation ---------- */
.sd6c-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}
.sd6c-reveal.sd6c-revealed { opacity: 1; transform: translateY(0); }

/* ---------- Desktop / tablet adjustments ---------- */
@media (min-width: 768px) {
  body { font-size: 1.6rem; }
  .sd6c-container { max-width: 960px; }
  .sd6c-grid { grid-template-columns: repeat(6, 1fr); }
  .sd6c-game-card img { height: 110px; }
  .sd6c-features { grid-template-columns: repeat(4, 1fr); }
  .sd6c-bottomnav { display: none; }
  .sd6c-menu-btn { display: inline-flex; }
  .sd6c-wrapper { padding-bottom: 0; }
  .sd6c-slides { height: 320px; }
  .sd6c-slide img { height: 320px; }
  .sd6c-payments { grid-template-columns: repeat(7, 1fr); }
  .sd6c-footer-links { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 992px) {
  .sd6c-grid { grid-template-columns: repeat(8, 1fr); }
}

/* Mobile: show hamburger, hide desktop inline menu (none used here) */
@media (max-width: 767px) {
  .sd6c-menu-btn { display: inline-flex; }
  main { padding-bottom: 80px; }
}
