/* ============================================================
   Color Game Online - theme-1eac.css
   Mobile-first responsive styles (prefix: w1eac-)
   Palette: #FFE135 | #1C2833 | #FFF8DC | #FFEBCD
   ============================================================ */

:root {
  --w1eac-primary: #FFE135;
  --w1eac-bg: #1C2833;
  --w1eac-text: #FFF8DC;
  --w1eac-soft: #FFEBCD;
  --w1eac-accent: #FFC107;
  --w1eac-card: #243447;
  --w1eac-card-2: #2b3e54;
  --w1eac-border: rgba(255, 225, 53, 0.25);
  --w1eac-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --w1eac-radius: 14px;
}

/* ---------- Base reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--w1eac-bg);
  color: var(--w1eac-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
}
a { color: var(--w1eac-primary); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- Layout container ---------- */
.w1eac-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--w1eac-bg);
  min-height: 100vh;
  position: relative;
}
.w1eac-container { width: 100%; padding: 0 14px; }

/* ---------- Header ---------- */
.w1eac-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #1C2833 0%, #243447 100%);
  border-bottom: 2px solid var(--w1eac-primary);
  box-shadow: var(--w1eac-shadow);
}
.w1eac-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  min-height: 54px;
}
.w1eac-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.w1eac-brand img {
  width: 30px; height: 30px; border-radius: 6px;
}
.w1eac-brand-text {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--w1eac-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.w1eac-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.w1eac-menu-btn {
  background: transparent;
  border: 1px solid var(--w1eac-border);
  color: var(--w1eac-primary);
  width: 38px; height: 38px;
  border-radius: 8px;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Buttons ---------- */
.w1eac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 1.25rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  min-height: 40px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.w1eac-btn:active { transform: scale(0.96); }
.w1eac-btn-primary {
  background: linear-gradient(135deg, #FFE135, #FFC107);
  color: #1C2833;
  box-shadow: 0 4px 12px rgba(255, 225, 53, 0.35);
}
.w1eac-btn-outline {
  background: transparent;
  color: var(--w1eac-primary);
  border: 1.5px solid var(--w1eac-primary);
}
.w1eac-btn-block {
  width: 100%;
  padding: 12px;
  font-size: 1.4rem;
}
.w1eac-link-text {
  color: var(--w1eac-primary);
  font-weight: 700;
  border-bottom: 1px dashed transparent;
}
.w1eac-link-text:hover { border-bottom-color: var(--w1eac-primary); }

/* ---------- Mobile slide-down menu ---------- */
.w1eac-mobile-menu {
  position: fixed;
  top: 54px; left: 0; right: 0;
  background: #1C2833;
  border-bottom: 2px solid var(--w1eac-primary);
  max-height: 0;
  overflow: hidden;
  z-index: 9999;
  transition: max-height .28s ease;
}
.w1eac-mobile-menu.w1eac-menu-open { max-height: 520px; }
.w1eac-mobile-menu ul { padding: 8px 12px; }
.w1eac-mobile-menu li { border-bottom: 1px solid rgba(255, 225, 53, 0.12); }
.w1eac-mobile-menu li:last-child { border-bottom: none; }
.w1eac-mobile-menu a {
  display: block;
  padding: 12px 6px;
  color: var(--w1eac-text);
  font-weight: 600;
  font-size: 1.35rem;
}
.w1eac-mobile-menu a:hover { color: var(--w1eac-primary); }

/* ---------- Hero carousel ---------- */
.w1eac-hero {
  margin-top: 56px;
  padding: 12px;
}
.w1eac-carousel {
  position: relative;
  border-radius: var(--w1eac-radius);
  overflow: hidden;
  box-shadow: var(--w1eac-shadow);
  aspect-ratio: 16 / 9;
  background: #000;
}
.w1eac-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
  cursor: pointer;
}
.w1eac-slide img { width: 100%; height: 100%; object-fit: cover; }
.w1eac-slide.w1eac-slide-active { opacity: 1; }
.w1eac-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.w1eac-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 248, 220, 0.5);
}
.w1eac-dot.w1eac-dot-active { background: var(--w1eac-primary); }

/* ---------- Sections ---------- */
.w1eac-section {
  padding: 18px 14px 8px;
}
.w1eac-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--w1eac-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.w1eac-section-title i { font-size: 2rem; }
.w1eac-section-sub {
  color: var(--w1eac-soft);
  font-size: 1.2rem;
  margin-bottom: 12px;
  opacity: .85;
}

/* ---------- Game grid ---------- */
.w1eac-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 10px;
  padding: 0 14px;
}
.w1eac-cat-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--w1eac-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.w1eac-cat-tag {
  font-size: 1.05rem;
  color: var(--w1eac-soft);
  background: var(--w1eac-card);
  padding: 3px 8px;
  border-radius: 10px;
}
.w1eac-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 14px;
}
.w1eac-game-card {
  background: var(--w1eac-card);
  border: 1px solid var(--w1eac-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  text-align: center;
}
.w1eac-game-card:hover {
  transform: translateY(-3px);
  border-color: var(--w1eac-primary);
  box-shadow: 0 8px 18px rgba(255, 225, 53, 0.18);
}
.w1eac-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0e1620;
}
.w1eac-game-name {
  padding: 6px 4px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--w1eac-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Feature cards ---------- */
.w1eac-card {
  background: var(--w1eac-card);
  border: 1px solid var(--w1eac-border);
  border-radius: var(--w1eac-radius);
  padding: 14px;
  margin-bottom: 12px;
}
.w1eac-card h3 {
  color: var(--w1eac-primary);
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.w1eac-card p { font-size: 1.25rem; color: var(--w1eac-soft); line-height: 1.5; }

.w1eac-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 14px;
  margin-bottom: 12px;
}
.w1eac-feature {
  background: var(--w1eac-card);
  border: 1px solid var(--w1eac-border);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
}
.w1eac-feature i {
  font-size: 2.4rem;
  color: var(--w1eac-primary);
  margin-bottom: 6px;
}
.w1eac-feature h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--w1eac-text);
  margin-bottom: 4px;
}
.w1eac-feature p { font-size: 1.1rem; color: var(--w1eac-soft); line-height: 1.35; }

/* ---------- Stats ---------- */
.w1eac-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 14px;
  margin-bottom: 14px;
}
.w1eac-stat {
  background: var(--w1eac-card);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  border-top: 3px solid var(--w1eac-primary);
}
.w1eac-stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--w1eac-primary);
}
.w1eac-stat-label {
  font-size: 1.1rem;
  color: var(--w1eac-soft);
  margin-top: 2px;
}

/* ---------- Testimonials ---------- */
.w1eac-review {
  background: var(--w1eac-card);
  border-left: 3px solid var(--w1eac-primary);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
}
.w1eac-review-stars { color: #FFD24A; font-size: 1.2rem; margin-bottom: 4px; }
.w1eac-review p { font-size: 1.2rem; color: var(--w1eac-soft); font-style: italic; }
.w1eac-review .w1eac-review-author {
  margin-top: 6px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--w1eac-primary);
}

/* ---------- Payment icons ---------- */
.w1eac-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px;
}
.w1eac-payment {
  flex: 1 1 28%;
  background: var(--w1eac-card);
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  font-size: 1.1rem;
  color: var(--w1eac-text);
  border: 1px solid var(--w1eac-border);
  min-width: 80px;
}
.w1eac-payment i { font-size: 1.8rem; color: var(--w1eac-primary); display: block; margin-bottom: 4px; }

/* ---------- Winners ticker ---------- */
.w1eac-winner {
  display: flex;
  justify-content: space-between;
  background: var(--w1eac-card);
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 1.15rem;
}
.w1eac-winner .w1eac-winner-name { color: var(--w1eac-soft); font-weight: 600; }
.w1eac-winner .w1eac-winner-amount { color: var(--w1eac-primary); font-weight: 800; }

/* ---------- FAQ ---------- */
.w1eac-faq-item {
  background: var(--w1eac-card);
  border: 1px solid var(--w1eac-border);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
}
.w1eac-faq-item h4 {
  color: var(--w1eac-primary);
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.w1eac-faq-item p { color: var(--w1eac-soft); font-size: 1.2rem; line-height: 1.45; }

/* ---------- CTA banner ---------- */
.w1eac-cta {
  background: linear-gradient(135deg, #FFE135, #FFC107);
  color: #1C2833;
  border-radius: var(--w1eac-radius);
  padding: 18px 14px;
  margin: 14px;
  text-align: center;
  box-shadow: var(--w1eac-shadow);
}
.w1eac-cta h3 { font-size: 1.8rem; font-weight: 800; margin-bottom: 4px; }
.w1eac-cta p { font-size: 1.2rem; margin-bottom: 10px; }
.w1eac-cta .w1eac-btn { background: #1C2833; color: var(--w1eac-primary); }

/* ---------- Content prose ---------- */
.w1eac-prose {
  padding: 0 14px;
  margin-bottom: 14px;
}
.w1eac-prose h2 {
  color: var(--w1eac-primary);
  font-size: 1.7rem;
  font-weight: 800;
  margin: 14px 0 6px;
}
.w1eac-prose h3 {
  color: var(--w1eac-accent);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 10px 0 4px;
}
.w1eac-prose p {
  font-size: 1.25rem;
  color: var(--w1eac-soft);
  margin-bottom: 8px;
  line-height: 1.55;
}
.w1eac-prose ol, .w1eac-prose ul {
  padding-left: 18px;
  margin-bottom: 10px;
  color: var(--w1eac-soft);
}
.w1eac-prose ol li, .w1eac-prose ul li {
  font-size: 1.2rem;
  margin-bottom: 4px;
  line-height: 1.5;
}

/* ---------- Footer ---------- */
.w1eac-footer {
  background: #0e1620;
  border-top: 2px solid var(--w1eac-primary);
  padding: 18px 14px 90px;
  margin-top: 20px;
}
.w1eac-footer-brand {
  color: var(--w1eac-soft);
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 12px;
}
.w1eac-footer-promos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.w1eac-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 12px;
  margin-bottom: 12px;
}
.w1eac-footer-links a {
  color: var(--w1eac-soft);
  font-size: 1.15rem;
  padding: 4px 0;
}
.w1eac-footer-links a:hover { color: var(--w1eac-primary); }
.w1eac-copyright {
  border-top: 1px solid rgba(255, 225, 53, 0.15);
  padding-top: 10px;
  text-align: center;
  font-size: 1.1rem;
  color: var(--w1eac-soft);
  opacity: .7;
}

/* ---------- Mobile bottom nav ---------- */
.w1eac-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, #243447, #1C2833);
  border-top: 2px solid var(--w1eac-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.4);
}
.w1eac-bottomnav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--w1eac-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 60px;
  min-width: 60px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: color .15s ease, transform .15s ease;
  position: relative;
  padding: 0 2px;
}
.w1eac-bottomnav-btn i,
.w1eac-bottomnav-btn .material-icons,
.w1eac-bottomnav-btn ion-icon {
  font-size: 22px;
}
.w1eac-bottomnav-btn:active { transform: scale(0.92); }
.w1eac-bottomnav-btn:hover { color: var(--w1eac-primary); }
.w1eac-bottomnav-btn.is-promo {
  color: var(--w1eac-primary);
}
.w1eac-bottomnav-btn.is-promo::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 3px;
  background: var(--w1eac-primary);
  border-radius: 0 0 4px 4px;
}
.w1eac-bottomnav-active {
  color: var(--w1eac-primary);
}

/* ---------- Responsive ---------- */
@media (min-width: 769px) {
  .w1eac-bottomnav { display: none; }
  .w1eac-footer { padding-bottom: 24px; }
}
@media (max-width: 768px) {
  .w1eac-main { padding-bottom: 80px; }
}
@media (max-width: 360px) {
  .w1eac-grid { grid-template-columns: repeat(2, 1fr); }
  .w1eac-feature-grid { grid-template-columns: 1fr; }
}
